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

Commit

Permalink
Disable some ESLint rules that are broken in TS files
Browse files Browse the repository at this point in the history
  • Loading branch information
nickserv committed Jul 25, 2018
1 parent e72746f commit b6acada
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
12 changes: 12 additions & 0 deletions packages/react-scripts/config/webpack.config.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,18 @@ module.exports = {
baseConfig: {
extends: [require.resolve('eslint-config-react-app')],
parser: 'typescript-eslint-parser',
overrides: [
{
files: ['*.ts', '*.tsx'],
rules: {
'no-array-constructor': 'off',
'no-multi-str': 'off',
'no-restricted-globals': 'off',
'no-undef': 'off',
'no-unused-vars': 'off',
},
},
],
},
// @remove-on-eject-begin
ignore: false,
Expand Down
12 changes: 12 additions & 0 deletions packages/react-scripts/config/webpack.config.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,18 @@ module.exports = {
baseConfig: {
extends: [require.resolve('eslint-config-react-app')],
parser: 'typescript-eslint-parser',
overrides: [
{
files: ['*.ts', '*.tsx'],
rules: {
'no-array-constructor': 'off',
'no-multi-str': 'off',
'no-restricted-globals': 'off',
'no-undef': 'off',
'no-unused-vars': 'off',
},
},
],
},
// @remove-on-eject-begin
ignore: false,
Expand Down

0 comments on commit b6acada

Please sign in to comment.