/
.eslintrc
47 lines (47 loc) · 1.12 KB
/
.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
40
41
42
43
44
45
46
47
{
"env": {
"browser": true,
"es6": true,
"jquery": true
},
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module"
},
"extends": [
// eslint-config-airbnb-base: https://github.com/airbnb/javascript
"airbnb-base",
// eslint-plugin-prettier + eslint-config-prettier
"plugin:prettier/recommended"
],
"rules": {
"consistent-return": ["error", { "treatUndefinedAsUnspecified": true }],
"func-names": "off",
"no-console": "off",
"no-param-reassign": ["error", { "props": false }],
"no-unused-expressions": [
"error",
{ "allowShortCircuit": true, "allowTernary": true }
],
"import/prefer-default-export": "off"
},
"overrides": [
{
"files": ["docs/**/*.js", "test/**/*.js"],
"env": {
"es6": false
},
"parserOptions": {
"ecmaVersion": 5,
"sourceType": "script"
},
"extends": ["eslint:recommended", "plugin:prettier/recommended"],
"rules": {
"no-undef": "off",
"no-use-before-define": "off",
"no-var": "off",
"object-shorthand": "off"
}
}
]
}