debian-mirror-gitlab/spec/frontend/.eslintrc.yml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

29 lines
778 B
YAML
Raw Normal View History

2019-02-15 15:39:39 +05:30
---
2019-07-31 22:56:46 +05:30
extends:
2020-05-24 23:13:21 +05:30
- 'plugin:@gitlab/jest'
2019-02-15 15:39:39 +05:30
settings:
2020-03-13 15:44:24 +05:30
# 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
2019-02-15 15:39:39 +05:30
import/resolver:
jest:
2020-06-23 00:09:42 +05:30
jestConfigFile: 'jest.config.js'
2020-05-24 23:13:21 +05:30
rules:
jest/expect-expect:
- off
- assertFunctionNames:
- 'expect*'
- 'assert*'
- 'testAction'
2021-02-22 17:27:13 +05:30
"@gitlab/no-global-event-off":
- off
2021-11-18 22:05:49 +05:30
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']