-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
100 lines (100 loc) · 2.63 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
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
96
97
98
99
100
{
"extends": "airbnb",
"parser": "babel-eslint",
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 6,
"ecmaFeatures": {
"spread": true
}
},
"env": {
"es6": true,
"node": true
},
"rules": {
// Style
"indent": ["error", 4],
"quotes": [2, "double"],
"comma-dangle": ["error", "never"],
"no-param-reassign": 0,
"no-shadow": ["warn"],
"max-len": ["error", 200],
// Possible errors
"no-cond-assign": [2],
"no-console": [0],
"no-constant-condition": [2],
"no-control-regex": [2],
"no-debugger": [2],
"no-dupe-args": [2],
"no-dupe-keys": [2],
"no-duplicate-case": [2],
"no-empty-character-class": [2],
"no-empty": [2],
"no-ex-assign": [2],
"no-extra-boolean-cast": [2],
"no-extra-parens": [0],
"no-extra-semi": [2],
"no-func-assign": [2],
"no-inner-declarations": [2],
"no-invalid-regexp": [2],
"no-irregular-whitespace": [2],
"no-obj-calls": [2],
"no-prototype-builtins": [0],
"no-regex-spaces": [2],
"no-sparse-arrays": [2],
"no-template-curly-in-string": [0],
"no-unexpected-multiline": [2],
"no-unreachable": [2],
"no-unsafe-finally": [2],
"no-unsafe-negation": [0],
"use-isnan": [2],
"valid-jsdoc": [0],
"valid-typeof": [2],
// Node.js and CommonJS
"callback-return": [0],
"global-require": [0],
"handle-callback-err": [2],
"import/prefer-default-export": [0],
"no-mixed-requires": [0],
"no-new-require": [2],
"no-path-concat": [2],
"no-plusplus": [0],
"no-process-env": [0],
"no-process-exit": [0],
"no-restricted-modules": [0],
"no-restricted-properties": [0],
"no-sync": [0],
// es6
"arrow-body-style": [0],
"arrow-parens": [2, "as-needed"],
"arrow-spacing": [2],
"constructor-super": [2],
"generator-star-spacing": [2],
"no-class-assign": [2],
"no-confusing-arrow": [2, { "allowParens": true }],
"no-const-assign": [2],
"no-dupe-class-members": [2],
"no-duplicate-imports": [2],
"no-new-symbol": [2],
"no-restricted-imports": [0],
"no-this-before-super": [2],
"no-useless-computed-key": [2],
"no-useless-constructor": [2],
"no-useless-rename": [2],
"no-var": [0],
"prefer-arrow-callback": [2],
"prefer-const": [2],
"prefer-numeric-literals": [0],
"prefer-reflect": [0],
"prefer-rest-params": [0],
"prefer-spread": [0],
"prefer-template": [2],
"require-yield": [2],
"rest-spread-spacing": [2],
"sort-imports": [0],
"symbol-description": [0],
"template-curly-spacing": [2],
"yield-star-spacing": [2]
}
}