-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
56 lines (45 loc) · 1.09 KB
/
.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
47
48
49
50
51
52
53
54
55
56
module.exports = {
// http://eslint.org/docs/user-guide/configuring
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 2016,
"sourceType": "module",
"ecmaFeatures": {
"impliedStrict": true,
}
},
"env": {
"browser": true,
"es6": true, // Necessary for ES global symbols like Set, Symbol
"mocha": true, // adds all of the Mocha testing global variables.
},
"globals": {
"chrome": true,
},
"plugins": [
"babel", // Adapts rules to better handle ES2016+ code
],
"settings": {
},
"extends": [
"eslint:recommended",
],
// http://eslint.org/docs/rules/
"rules": {
// Possible errors
"comma-dangle": ["error", "only-multiline"],
"eqeqeq": ["error", "smart"],
// Best practices
"no-alert": "error",
"no-unused-vars": "warn",
"no-console": "warn",
// ES2015
"no-var": "error",
// Style
"indent": ["error", 2],
"semi": ["error", "always"],
"curly": ["error", "multi-line"],
// Warn on FIXME/TODO comments
"no-warning-comments": ["warn", { "location": "anywhere" }],
}
};