-
Notifications
You must be signed in to change notification settings - Fork 15
/
.eslintrc.json
43 lines (38 loc) · 863 Bytes
/
.eslintrc.json
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
{
"env": {
"browser": true,
"node": false,
"es6": true,
"amd": true
},
"extends": "airbnb-base",
"globals": {
"hexo": true,
"theme": true,
"config": true
},
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module"
},
"rules": {
"comma-dangle": 0,
"no-use-before-define": ["error", { "functions": false, "classes": true }],
"no-console": ["error", { "allow": ["warn", "error", "info", "debug", "log"] }],
"no-param-reassign": ["error", { "props": false }],
"radix": ["error", "as-needed"],
"import/no-extraneous-dependencies": ["error", { "devDependencies": true }],
"import/no-amd": "off",
"strict": "off"
},
"overrides": [
{
"files": ["Gruntfile.js"],
"env": {
"browser": false,
"node": true,
"amd": false
}
}
]
}