Commit 4b5f8afa authored by Lukas Eipert's avatar Lukas Eipert

Update to eslint 6

This updates eslint and related plugins to the next major version so
that we can make use of new features.
parent 1fe90d1b
...@@ -51,8 +51,10 @@ rules: ...@@ -51,8 +51,10 @@ rules:
no-jquery/no-serialize: error no-jquery/no-serialize: error
promise/always-return: off promise/always-return: off
promise/no-callback-in-promise: off promise/no-callback-in-promise: off
# Make update to eslint@6 smoother:
prefer-object-spread: off
overrides: overrides:
files: - files:
- '**/spec/**/*' - '**/spec/**/*'
rules: rules:
"@gitlab/i18n/no-non-i18n-strings": off "@gitlab/i18n/no-non-i18n-strings": off
...@@ -6,6 +6,12 @@ plugins: ...@@ -6,6 +6,12 @@ plugins:
extends: extends:
- 'plugin:jest/recommended' - 'plugin:jest/recommended'
settings: settings:
# We have to teach eslint-plugin-import what node modules we use
# otherwise there is an error when it tries to resolve them
import/core-modules:
- events
- fs
- path
import/resolver: import/resolver:
jest: jest:
jestConfigFile: 'jest.config.js' jestConfigFile: 'jest.config.js'
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment