-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.OFF
40 lines (40 loc) · 1.06 KB
/
.eslintrc.OFF
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
module.exports = {
parserOptions: {
ecmaVersion: 2017,
sourceType: "script"
},
extends: ["eslint:recommended", "airbnb-base", "prettier"],
rules: {
"block-scoped-var": "error",
"consistent-this": ["error", "self"],
"func-style": ["error", "declaration"],
"no-param-reassign": ["error", {props: false}],
"global-require": "off",
"import/no-extraneous-dependencies": [
"error",
{devDependencies: ["tests/**/*.js"]}
],
"import/extensions": "always",
"lines-around-directive": "off",
"max-len": [
"warn",
{
ignoreStrings: true,
ignoreTemplateLiterals: true,
ignoreTrailingComments: true,
ignoreComments: true,
ignoreRegExpLiterals: true
}
],
"max-nested-callbacks": ["error", 4],
"no-else-return": "error",
"no-global-require": "off",
"no-nested-ternary": "error",
"no-process-exit": 1,
"no-sync": 1,
"no-undefined": "error",
"no-underscore-dangle": "off",
"no-warning-comments": "warn",
strict: ["off", "safe"]
}
};