aboutsummaryrefslogtreecommitdiffstats
path: root/.eslintrc-browser.json
blob: c704209ab37fec1c9ee519f348f513d555f4d78a (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
{
	"root": true,

	"extends": "jquery",

	// Support: IE <=9 only, Android <=4.0 only
	// The above browsers are failing a lot of tests in the ES5
	// test suite at http://test262.ecmascript.org.
	"parserOptions": {
		"ecmaVersion": 3
	},

	// The browser env is not enabled on purpose so that code takes
	// all browser-only globals from window instead of assuming
	// they're available as globals. This makes it possible to use
	// jQuery with tools like jsdom which provide a custom window
	// implementation.
	"env": {},

	"globals": {
		"window": true,
		"jQuery": true,
		"define": true,
		"module": true,
		"noGlobal": true
	},

	"rules": {
		"strict": ["error", "function"]
	}
}