Skip to content
This repository was archived by the owner on Jan 26, 2019. It is now read-only.

Commit b6acada

Browse files
committed
Disable some ESLint rules that are broken in TS files
1 parent e72746f commit b6acada

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

Diff for: packages/react-scripts/config/webpack.config.dev.js

+12
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,18 @@ module.exports = {
149149
baseConfig: {
150150
extends: [require.resolve('eslint-config-react-app')],
151151
parser: 'typescript-eslint-parser',
152+
overrides: [
153+
{
154+
files: ['*.ts', '*.tsx'],
155+
rules: {
156+
'no-array-constructor': 'off',
157+
'no-multi-str': 'off',
158+
'no-restricted-globals': 'off',
159+
'no-undef': 'off',
160+
'no-unused-vars': 'off',
161+
},
162+
},
163+
],
152164
},
153165
// @remove-on-eject-begin
154166
ignore: false,

Diff for: packages/react-scripts/config/webpack.config.prod.js

+12
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,18 @@ module.exports = {
158158
baseConfig: {
159159
extends: [require.resolve('eslint-config-react-app')],
160160
parser: 'typescript-eslint-parser',
161+
overrides: [
162+
{
163+
files: ['*.ts', '*.tsx'],
164+
rules: {
165+
'no-array-constructor': 'off',
166+
'no-multi-str': 'off',
167+
'no-restricted-globals': 'off',
168+
'no-undef': 'off',
169+
'no-unused-vars': 'off',
170+
},
171+
},
172+
],
161173
},
162174
// @remove-on-eject-begin
163175
ignore: false,

0 commit comments

Comments
 (0)