forked from immutable-js/immutable-js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
123 lines (122 loc) · 3.3 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
{
"root": true,
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module"
},
"extends": [
"airbnb",
"plugin:@typescript-eslint/recommended",
"plugin:import/typescript",
"prettier"
],
"plugins": ["react", "prettier", "@typescript-eslint"],
"rules": {
"array-callback-return": "off",
"block-scoped-var": "off",
"class-methods-use-this": "off",
"consistent-return": "off",
"constructor-super": "off",
"default-case": "off",
"func-names": "off",
"max-classes-per-file": "off",
"no-bitwise": "off",
"no-cond-assign": "off",
"no-constant-condition": "off",
"no-continue": "off",
"no-else-return": "error",
"no-empty": "error",
"no-lonely-if": "error",
"no-multi-assign": "off",
"no-nested-ternary": "off",
"no-param-reassign": "off",
"no-plusplus": "off",
"no-prototype-builtins": "off",
"no-restricted-syntax": "off",
"no-return-assign": "off",
"no-self-compare": "off",
"no-sequences": "off",
"no-shadow": "off",
"no-this-before-super": "off",
"no-underscore-dangle": "off",
"no-unused-expressions": "off",
"no-unused-vars": "off",
"no-use-before-define": "off",
"no-useless-concat": "error",
"no-var": "error",
"object-shorthand": "off",
"one-var": "error",
"operator-assignment": "error",
"prefer-destructuring": "off",
"prefer-rest-params": "off",
"prefer-spread": "off",
"prefer-template": "off",
"spaced-comment": "off",
"vars-on-top": "off",
"react/destructuring-assignment": "off",
"react/jsx-boolean-value": "off",
"react/jsx-curly-brace-presence": "off",
"react/jsx-filename-extension": "off",
"react/no-array-index-key": "off",
"react/no-danger": "off",
"react/no-multi-comp": "off",
"react/prefer-es6-class": "off",
"react/prefer-stateless-function": "off",
"react/prop-types": "off",
"react/self-closing-comp": "error",
"react/sort-comp": "off",
"react/jsx-props-no-spreading": "off",
"react/require-default-props": [
"error",
{
"functions": "ignore"
}
],
"jsx-a11y/no-static-element-interactions": "off",
"import/extensions": [
"error",
{ "js": "never", "ts": "never", "tsx": "never" }
],
"import/newline-after-import": "error",
"import/no-cycle": "off",
"import/no-extraneous-dependencies": "off",
"import/no-mutable-exports": "error",
"import/no-unresolved": "error",
"import/no-useless-path-segments": "off",
"import/prefer-default-export": "off",
"prettier/prettier": "error",
"@typescript-eslint/no-unused-vars": [
"error",
{ "argsIgnorePattern": "^_" }
]
},
"overrides": [
{
"files": ["__tests__/*"],
"rules": {
"import/no-unresolved": [
"error",
{
"ignore": ["immutable"]
}
]
}
},
{
"files": ["type-definitions/ts-tests/*"],
"rules": {
"no-lone-blocks": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unused-vars": "off",
"prefer-const": "off",
"import/no-unresolved": [
"error",
{
"ignore": ["immutable"]
}
]
}
}
]
}