Adjust ESLint configuration for v5 (#5051)

This commit is contained in:
Joe Haddad
2018-09-21 08:07:12 -04:00
committed by GitHub
parent 58e00a3109
commit ca2e9f0f3c

View File

@@ -39,12 +39,10 @@ module.exports = {
},
parserOptions: {
ecmaVersion: 6,
ecmaVersion: 2018,
sourceType: 'module',
ecmaFeatures: {
jsx: true,
generators: true,
experimentalObjectRestSpread: true,
},
},
@@ -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',