aboutsummaryrefslogtreecommitdiffstats
path: root/src/.eslintrc.json
blob: 21a0225a764fcb59ee2d4ca64e309340580ec534 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{
	"root": true,

	"extends": "../.eslintrc-browser.json",

	"rules": {
		"indent": [ "error", "tab", {
			"outerIIFEBody": 0,

			// Ignore the top level function defining an AMD module
			"ignoredNodes": [
				"Program > ExpressionStatement > CallExpression > :last-child > *"
			]
		} ]
	},

	"overrides": [
		{
			"files": "wrapper.js",
			"rules": {
				"no-unused-vars": "off",
				"indent": [ "error", "tab", {

					// Unlike other codes, "wrapper.js" is implemented in UMD.
					// So it required a specific exception for jQuery's UMD
					// Code Style. This makes that indentation check is not
					// performed for 1 depth of outer FunctionExpressions
					"ignoredNodes": [
						"Program > ExpressionStatement > CallExpression > :last-child > *"
					]
				} ]
			},
			"globals": {
				"jQuery": false
			}
		}
	]
}