forked from Polymer/polymer-starter-kit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
46 lines (46 loc) · 924 Bytes
/
.eslintrc.js
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
39
40
41
42
43
44
45
46
module.exports = {
extends: ['eslint:recommended', 'google'],
env: {
'browser': true,
'es6': true,
},
plugins: [
'html',
],
rules: {
'arrow-parens': [2, 'always'],
'indent': [2, 2, {
SwitchCase: 1,
VariableDeclarator: 2,
}],
'prefer-const': 2,
'max-len': [2, {
code: 120,
tabWidth: 2,
ignoreUrls: true,
ignorePattern: '^goog\.(module|require)',
}],
'new-cap': ['error', {
'capIsNewExceptions': ['Polymer'],
'capIsNewExceptionPattern': 'Mixin$',
}],
'no-unused-expressions': [2, {
allowShortCircuit: true,
allowTernary: false,
}],
'no-unused-vars': [2, {
vars: 'all',
args: 'after-used',
}],
},
settings: {
// Plugin HTML
'html/indent': '+2',
'html/report-bad-indent': 2,
},
globals: {
'customElements': false,
'hc': false,
'Polymer': false
},
};