Skip to content

Commit ca2e9f0

Browse files
authored
Adjust ESLint configuration for v5 (facebook#5051)
1 parent 58e00a3 commit ca2e9f0

File tree

1 file changed

+2
-4
lines changed
  • packages/eslint-config-react-app

1 file changed

+2
-4
lines changed

packages/eslint-config-react-app/index.js

+2-4
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,10 @@ module.exports = {
3939
},
4040

4141
parserOptions: {
42-
ecmaVersion: 6,
42+
ecmaVersion: 2018,
4343
sourceType: 'module',
4444
ecmaFeatures: {
4545
jsx: true,
46-
generators: true,
47-
experimentalObjectRestSpread: true,
4846
},
4947
},
5048

@@ -53,7 +51,7 @@ module.exports = {
5351
'array-callback-return': 'warn',
5452
'default-case': ['warn', { commentPattern: '^no default$' }],
5553
'dot-location': ['warn', 'property'],
56-
eqeqeq: ['warn', 'allow-null'],
54+
eqeqeq: ['warn', 'smart'],
5755
'new-parens': 'warn',
5856
'no-array-constructor': 'warn',
5957
'no-caller': 'warn',

0 commit comments

Comments
 (0)