Skip to content

Commit

Permalink
Adjust ESLint configuration for v5 (#5051)
Browse files Browse the repository at this point in the history
  • Loading branch information
Timer authored Sep 21, 2018
1 parent 58e00a3 commit ca2e9f0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/eslint-config-react-app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,10 @@ module.exports = {
},

parserOptions: {
ecmaVersion: 6,
ecmaVersion: 2018,
sourceType: 'module',
ecmaFeatures: {
jsx: true,
generators: true,
experimentalObjectRestSpread: true,
},
},

Expand All @@ -53,7 +51,7 @@ module.exports = {
'array-callback-return': 'warn',
'default-case': ['warn', { commentPattern: '^no default$' }],
'dot-location': ['warn', 'property'],
eqeqeq: ['warn', 'allow-null'],
eqeqeq: ['warn', 'smart'],
'new-parens': 'warn',
'no-array-constructor': 'warn',
'no-caller': 'warn',
Expand Down

0 comments on commit ca2e9f0

Please sign in to comment.