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

30 lines
829 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:
2023-05-27 22:25:52 +05:30
'@gitlab/vtu-no-explicit-wrapper-destroy': error
2020-05-24 23:13:21 +05:30
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']