summaryrefslogtreecommitdiff
path: root/spec/frontend/.eslintrc.yml
blob: e12c4e5e8205436462c901dd0b6d849c0eb4782c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
---
extends:
  - 'plugin:@gitlab/jest'
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:
    jest:
      jestConfigFile: 'jest.config.js'
globals:
  loadFixtures: false
  setFixtures: false
rules:
  jest/expect-expect:
    - off
    - assertFunctionNames:
        - 'expect*'
        - 'assert*'
        - 'testAction'
  jest/no-test-callback:
    - off
  "@gitlab/no-global-event-off":
    - off
  import/no-unresolved:
    - error
    # The test fixtures and graphql schema are dynamically generated in CI
    # during the `frontend-fixtures` and `graphql-schema-dump` jobs.
    # They may not be present during linting.
    - ignore: ['^test_fixtures\/', 'tmp/tests/graphql/gitlab_schema.graphql']