-
Notifications
You must be signed in to change notification settings - Fork 1.3k
/
.eslintrc.js
69 lines (62 loc) · 1.64 KB
/
.eslintrc.js
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
module.exports = {
"extends": [
"eslint:recommended",
// "plugin:import/errors",
// "plugin:import/warnings",
// "kentcdodds/possible-errors",
// "kentcdodds/best-practices",
// "kentcdodds/es6/possible-errors",
// "kentcdodds/import",
// "plugin:promise/recommended",
// "xo/esnext",
// "plugin:unicorn/recommended",
// "google"
],
"plugins": [
// "unicorn",
// "import",
// "json",
// "eslint-comments",
// "optimize-regex",
// "promise"
],
"env": {
"browser": true,
"es6": true,
"node": true
},
"rules": {
"no-console": "off",
"indent": ["error", 2, {
"SwitchCase": 1,
"VariableDeclarator": 2
}],
"max-len": ["error", 120, {
"ignoreComments": true,
"ignoreUrls": true,
"tabWidth": 2
}],
"no-unused-vars": ["error", {
"vars": "all",
"args": "after-used",
"argsIgnorePattern": "(^reject$|^_$)",
"varsIgnorePattern": "(^_$)"
}],
// "eslint-comments/disable-enable-pair": "error",
// "eslint-comments/no-duplicate-disable": "error",
// "eslint-comments/no-unlimited-disable": "error",
// "eslint-comments/no-unused-disable": "error",
// "eslint-comments/no-unused-enable": "error",
// "optimize-regex/optimize-regex": "warn",
"valid-jsdoc": "off", // it's wrong pretty often
"comma-dangle": "off",
"strict": "off",
"curly": "off",
"arrow-parens": ["error", "as-needed"],
"no-return-assign": "off",
// "unicorn/prefer-type-error": "off",
"require-jsdoc": "off",
"no-implicit-coercion": "off",
"capitalized-comments": "warn"
}
};