-
Notifications
You must be signed in to change notification settings - Fork 17
/
eslintrc.browser
29 lines (28 loc) · 1.07 KB
/
eslintrc.browser
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
// These are rules that apply to javascript snippets that are
// included in html inside <script> tags. These snippets must
// use ES5, since browsers do not support ES6 natively yet.
//
// If you want to adjust/add a rule that is not specific to what
// browsers do or do not support, modify eslintrc.shared instead.
{
"rules": {
// NOTE: we can support 'const' one day; though cf. 'let'.
// http://caniuse.com/#feat=const
// ---------------------------------------
// ES5 rules that we disable for 'embedded' javascript.
// For instance, we don't indent inside the IIFE-wrapper we have
// inside every <script> block, so we can't test for indentation.
// And the way we remove template tags often introduces weird
// whitespace and line-joins, so we can't check for whitespace or
// too-long-line errors either.
"indent": 0,
"max-len": 0,
"max-lines": 0,
"no-trailing-spaces": 0
},
"globals": {},
"env": {
"browser": true
},
"extends": "./eslintrc.shared"
}