1---
2extends:
3  - 'plugin:@gitlab/jest'
4settings:
5  # We have to teach eslint-plugin-import what node modules we use
6  # otherwise there is an error when it tries to resolve them
7  import/core-modules:
8    - events
9    - fs
10    - path
11  import/resolver:
12    jest:
13      jestConfigFile: 'jest.config.js'
14globals:
15  loadFixtures: false
16  setFixtures: false
17rules:
18  jest/expect-expect:
19    - off
20    - assertFunctionNames:
21        - 'expect*'
22        - 'assert*'
23        - 'testAction'
24  jest/no-test-callback:
25    - off
26  "@gitlab/no-global-event-off":
27    - off
28  import/no-unresolved:
29    - error
30    # The test fixtures and graphql schema are dynamically generated in CI
31    # during the `frontend-fixtures` and `graphql-schema-dump` jobs.
32    # They may not be present during linting.
33    - ignore: ['^test_fixtures\/', 'tmp/tests/graphql/gitlab_schema.graphql']
34