-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
82 lines (73 loc) · 1.94 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
{
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"extends": [
"airbnb"
],
"rules": {
// Possible errors
"no-cond-assign": "error",
"no-console": "error",
"no-constant-condition": "error",
"no-debugger": "error",
"no-dupe-args": "error",
"no-dupe-keys": "error",
"no-duplicate-case": "error",
"no-empty-character-class": "error",
"no-empty": "error",
"no-ex-assign": "error",
"no-extra-boolean-cast": "error",
"no-extra-semi": "error",
"no-func-assign": "error",
"no-inner-declarations": "error",
"no-invalid-regexp": "error",
"no-irregular-whitespace": "error",
"no-obj-calls": "error",
"no-regex-spaces": "error",
"no-sparse-arrays": "error",
"no-unexpected-multiline": "error",
"no-unreachable": "error",
"no-unsafe-finally": "error",
"use-isnan": "error",
"valid-typeof": "error",
"no-control-regex": "off",
// Best practices
"no-case-declarations": "error",
"no-empty-pattern": "error",
"no-fallthrough": "error",
"no-octal": "error",
"no-redeclare": "error",
"no-self-assign": "error",
"no-unused-labels": "error",
// Variables
"no-delete-var": "error",
"no-unused-vars": "error",
"no-undef": "off",
// Stylistic
"no-mixed-spaces-and-tabs": "error",
// ES6
"constructor-super": "off",
"no-class-assign": "off",
"no-const-assign": "off",
"no-dupe-class-members": "off",
"no-new-symbol": "off",
"no-this-before-super": "off",
"require-yield": "off",
// Deprecated
"no-native-reassign": "off",
"no-negated-in-lhs": "off",
// React
"react/jsx-filename-extension": "off",
"react/prop-types": "off",
// Absolute path imports
"import/no-extraneous-dependencies": "off",
"import/no-unresolved": "off",
"import/extensions": "off"
}
}