-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.eslintrc
66 lines (66 loc) · 2.49 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
{
extends: [
"eslint:all", // List of rules: https://eslint.org/docs/rules
"prettier", // Configuration: https://github.com/prettier/eslint-config-prettier
],
env: {
browser: true,
node: true,
es6: true
},
parser: "babel-eslint",
parserOptions: {
sourceType: "module",
ecmaFeatures: {
impliedStrict: true
}
},
plugins: [],
settings: {},
rules: {
arrow-body-style: "off",
capitalized-comments: "warn",
consistent-this: "off",
default-case: ["warn", { "commentPattern": "^eslint\\sskip\\sdefault" }],
eqeqeq: ["error", "smart"],
func-style: ["error", "declaration", { allowArrowFunctions: true }],
function-call-argument-newline: "off",
id-length: "off",
init-declarations: "off",
max-lines-per-function: ["error", { skipComments: true, skipBlankLines: true }],
max-statements-per-line: "off",
max-statements: "off",
multiline-ternary: "off",
no-continue: "off",
no-inline-comments: "warn",
no-magic-numbers: ["warn", { "ignore": [-1, 0, 1] }],
no-plusplus: ["warn", { "allowForLoopAfterthoughts": true }],
no-ternary: "off",
no-underscore-dangle: "off",
no-unused-vars: ["error", { argsIgnorePattern: "^_", varsIgnorePattern: "^_" }],
object-shorthand: "off",
one-var: "off",
prefer-destructuring: "off",
sort-imports: ["warn", { ignoreCase: true }],
sort-keys: "off"
},
overrides: [
{
files: [
"src/**/*test.js"
],
env: {
jest: true
},
rules: {
line-comment-position: "off",
max-lines: "off",
max-lines-per-function: "off",
no-inline-comments: "off",
no-magic-numbers: "off",
no-unused-expressions: "off",
no-use-before-define: "off"
}
}
]
}