-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
executable file
·95 lines (92 loc) · 2.26 KB
/
.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
{
"env": {
"node": true,
"mocha": true
},
"parserOptions": {
"ecmaVersion": 9
},
"globals": {
"Promise": true,
"_": true,
"async": true
},
"rules": {
"callback-return": [
"error", ["done", "proceed", "next", "onwards", "callback", "cb"]
],
"camelcase": ["warn", {
"properties": "always"
}],
"comma-style": ["warn", "last"],
"curly": ["error"],
"eqeqeq": ["error", "always"],
"eol-last": ["warn"],
"no-undef": 2,
"handle-callback-err": ["error"],
"arrow-body-style": ["off", 2],
"indent": ["off", 2],
"linebreak-style": ["error", "unix"],
"no-dupe-keys": ["error"],
"no-duplicate-case": ["error"],
"no-extra-semi": ["warn"],
"no-labels": ["error"],
"no-mixed-spaces-and-tabs": [2, "smart-tabs"],
"no-redeclare": ["warn"],
"no-return-assign": ["error", "always"],
"no-sequences": ["error"],
"no-trailing-spaces": ["warn"],
"no-unexpected-multiline": ["warn"],
"no-unreachable": ["warn"],
"no-magic-numbers": ["off"],
"max-params": ["off"],
"max-len": ["off"],
"max-nested-callbacks": ["off"],
"new-cap": ["off"],
"consistent-this": ["error", "that"],
"no-unused-vars": [
"warn",
{
"caughtErrors": "all",
"caughtErrorsIgnorePattern": "^unused($|[A-Z].*$)"
}
],
"no-use-before-define": ["error", {
"functions": false
}],
"no-var": 2,
"one-var": ["warn", "never"],
"prefer-arrow-callback": ["warn", {
"allowNamedFunctions": true
}],
"quotes": [
"warn",
"single",
{
"avoidEscape": false,
"allowTemplateLiterals": true
}
],
"semi": ["error", "never"],
"semi-spacing": ["warn", {
"before": false,
"after": true
}],
"semi-style": ["warn", "last"],
"space-before-function-paren": ["off", 2],
"prettier/prettier": "error"
},
"extends": [
"formidable/rules/eslint/best-practices/on",
"formidable/rules/eslint/es6/on",
"formidable/rules/eslint/errors/off",
"formidable/rules/eslint/strict/on",
"formidable/rules/eslint/node/off",
"formidable/rules/eslint/style/on",
"formidable/rules/eslint/variables/on",
"prettier"
],
"plugins": [
"prettier"
]
}