-
Notifications
You must be signed in to change notification settings - Fork 24
/
.eslintrc
39 lines (39 loc) · 903 Bytes
/
.eslintrc
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
{
"parser": "@babel/eslint-parser",
"parserOptions": {
"sourceType": "module",
"ecmaVersion": "2021",
"requireConfigFile": false
},
"env": {
"browser": true,
"phantomjs": true,
"jasmine": true,
"amd": true,
"node": true,
"es6": true,
},
"rules": {
# "camelcase": 2,
"comma-dangle": 2,
"no-dupe-args": 2,
"no-dupe-keys": 2,
"no-mixed-spaces-and-tabs": [2, "smart-tabs"],
"no-shadow": 2,
"no-trailing-spaces": 2,
"no-undef": 2,
"semi": 2,
"no-debugger": "error",
# Helps ensure we don't require unused modules.
"no-unused-vars": [2, {
"args": "all",
"argsIgnorePattern": "^(e|err|error)$|__$",
}],
# Prevents usage of things before they're defined (except for hoisted function declarations).
"no-use-before-define": [2, "nofunc"]
},
"plugins": [
"json",
"markdown"
]
}