eslint-config-react-app 5.1.0-next.61 → 5.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +9 -2
- package/package.json +3 -3
package/index.js
CHANGED
|
@@ -81,7 +81,6 @@ module.exports = {
|
|
|
81
81
|
'@typescript-eslint/consistent-type-assertions': 'warn',
|
|
82
82
|
'no-array-constructor': 'off',
|
|
83
83
|
'@typescript-eslint/no-array-constructor': 'warn',
|
|
84
|
-
'@typescript-eslint/no-namespace': 'error',
|
|
85
84
|
'no-use-before-define': 'off',
|
|
86
85
|
'@typescript-eslint/no-use-before-define': [
|
|
87
86
|
'warn',
|
|
@@ -92,6 +91,15 @@ module.exports = {
|
|
|
92
91
|
typedefs: false,
|
|
93
92
|
},
|
|
94
93
|
],
|
|
94
|
+
'no-unused-expressions': 'off',
|
|
95
|
+
'@typescript-eslint/no-unused-expressions': [
|
|
96
|
+
'error',
|
|
97
|
+
{
|
|
98
|
+
allowShortCircuit: true,
|
|
99
|
+
allowTernary: true,
|
|
100
|
+
allowTaggedTemplates: true,
|
|
101
|
+
},
|
|
102
|
+
],
|
|
95
103
|
'no-unused-vars': 'off',
|
|
96
104
|
'@typescript-eslint/no-unused-vars': [
|
|
97
105
|
'warn',
|
|
@@ -179,7 +187,6 @@ module.exports = {
|
|
|
179
187
|
'no-throw-literal': 'warn',
|
|
180
188
|
'no-undef': 'error',
|
|
181
189
|
'no-restricted-globals': ['error'].concat(restrictedGlobals),
|
|
182
|
-
'no-unexpected-multiline': 'warn',
|
|
183
190
|
'no-unreachable': 'warn',
|
|
184
191
|
'no-unused-expressions': [
|
|
185
192
|
'error',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-config-react-app",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.2.0",
|
|
4
4
|
"description": "ESLint configuration used by Create React App",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"eslint-plugin-react-hooks": "1.x"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"confusing-browser-globals": "1.
|
|
29
|
+
"confusing-browser-globals": "^1.0.9"
|
|
30
30
|
},
|
|
31
|
-
"gitHead": "
|
|
31
|
+
"gitHead": "d7c68420f7ca1c03b50a2c6b9ecd9c7bf94a10f6"
|
|
32
32
|
}
|