Commit f88459df authored by Vitaly Slobodin's avatar Vitaly Slobodin

Use Jest config from @gitlab/eslint-plugin

parent a3f59b1f
--- ---
env:
jest/globals: true
plugins:
- jest
extends: extends:
- 'plugin:jest/recommended' - "plugin:@gitlab/jest"
settings: settings:
# We have to teach eslint-plugin-import what node modules we use # We have to teach eslint-plugin-import what node modules we use
# otherwise there is an error when it tries to resolve them # otherwise there is an error when it tries to resolve them
...@@ -14,9 +10,18 @@ settings: ...@@ -14,9 +10,18 @@ settings:
- path - path
import/resolver: import/resolver:
jest: jest:
jestConfigFile: 'jest.config.js' jestConfigFile: "jest.config.js"
globals: globals:
getJSONFixture: false getJSONFixture: false
loadFixtures: false loadFixtures: false
preloadFixtures: false preloadFixtures: false
setFixtures: false setFixtures: false
rules:
jest/expect-expect:
- off
- assertFunctionNames:
- "expect*"
- "assert*"
- "testAction"
jest/no-test-callback:
- off
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