2019-05-05 18:10:48 +05:30
|
|
|
extends:
|
2020-04-22 19:07:51 +05:30
|
|
|
- plugin:@gitlab/default
|
|
|
|
- plugin:@gitlab/i18n
|
2020-01-01 13:55:28 +05:30
|
|
|
- plugin:no-jquery/slim
|
|
|
|
- plugin:no-jquery/deprecated-3.4
|
2021-10-27 15:23:28 +05:30
|
|
|
- ./tooling/eslint-config/conditionally_ignore.js
|
2019-05-05 18:10:48 +05:30
|
|
|
globals:
|
|
|
|
__webpack_public_path__: true
|
|
|
|
gl: false
|
|
|
|
gon: false
|
|
|
|
localStorage: false
|
2019-09-30 21:07:59 +05:30
|
|
|
IS_EE: false
|
2019-05-05 18:10:48 +05:30
|
|
|
plugins:
|
2019-12-21 20:55:43 +05:30
|
|
|
- no-jquery
|
2019-05-05 18:10:48 +05:30
|
|
|
settings:
|
|
|
|
import/resolver:
|
|
|
|
webpack:
|
|
|
|
config: './config/webpack.config.js'
|
|
|
|
rules:
|
|
|
|
import/no-commonjs: error
|
2020-11-24 15:15:51 +05:30
|
|
|
import/no-default-export: off
|
2019-05-05 18:10:48 +05:30
|
|
|
no-underscore-dangle:
|
|
|
|
- error
|
|
|
|
- allow:
|
|
|
|
- __
|
|
|
|
- _links
|
2020-01-01 13:55:28 +05:30
|
|
|
import/no-unresolved:
|
|
|
|
- error
|
2020-05-24 23:13:21 +05:30
|
|
|
# Disabled for now, to make the airbnb-base 12.1.0 -> 13.1.0 update smoother
|
|
|
|
no-else-return:
|
|
|
|
- error
|
|
|
|
- allowElseIf: true
|
2019-05-05 18:10:48 +05:30
|
|
|
lines-between-class-members: off
|
2020-01-01 13:55:28 +05:30
|
|
|
# all offenses of no-jquery/no-animate-toggle are false positives ( $toast.show() )
|
|
|
|
no-jquery/no-animate-toggle: off
|
|
|
|
no-jquery/no-event-shorthand: off
|
2019-12-21 20:55:43 +05:30
|
|
|
no-jquery/no-serialize: error
|
|
|
|
promise/always-return: off
|
|
|
|
promise/no-callback-in-promise: off
|
2021-03-11 19:13:27 +05:30
|
|
|
'@gitlab/no-global-event-off': error
|
2021-04-17 20:07:23 +05:30
|
|
|
no-param-reassign:
|
|
|
|
- error
|
|
|
|
- props: true
|
|
|
|
ignorePropertyModificationsFor:
|
|
|
|
- acc
|
|
|
|
- accumulator
|
|
|
|
- el
|
|
|
|
- element
|
|
|
|
- state
|
|
|
|
ignorePropertyModificationsForRegex:
|
|
|
|
- '^draft'
|
2021-03-11 19:13:27 +05:30
|
|
|
import/order:
|
|
|
|
- error
|
|
|
|
- groups:
|
|
|
|
- builtin
|
|
|
|
- external
|
|
|
|
- internal
|
|
|
|
- parent
|
|
|
|
- sibling
|
|
|
|
- index
|
|
|
|
pathGroups:
|
|
|
|
- pattern: ~/**
|
|
|
|
group: internal
|
|
|
|
- pattern: emojis/**
|
|
|
|
group: internal
|
|
|
|
- pattern: '{ee_,}empty_states/**'
|
|
|
|
group: internal
|
|
|
|
- pattern: '{ee_,}icons/**'
|
|
|
|
group: internal
|
|
|
|
- pattern: '{ee_,}images/**'
|
|
|
|
group: internal
|
|
|
|
- pattern: vendor/**
|
|
|
|
group: internal
|
|
|
|
- pattern: shared_queries/**
|
|
|
|
group: internal
|
|
|
|
- pattern: '{ee_,}spec/**'
|
|
|
|
group: internal
|
|
|
|
- pattern: '{ee_,}jest/**'
|
|
|
|
group: internal
|
|
|
|
- pattern: ee_else_ce/**
|
|
|
|
group: internal
|
|
|
|
- pattern: ee/**
|
|
|
|
group: internal
|
|
|
|
- pattern: ee_component/**
|
|
|
|
group: internal
|
|
|
|
- pattern: '{test_,}helpers/**'
|
|
|
|
group: internal
|
|
|
|
- pattern: test_fixtures/**
|
|
|
|
group: internal
|
|
|
|
alphabetize:
|
2021-11-18 22:05:49 +05:30
|
|
|
order: ignore
|
2019-09-04 21:01:54 +05:30
|
|
|
overrides:
|
2020-03-13 15:44:24 +05:30
|
|
|
- files:
|
|
|
|
- '**/spec/**/*'
|
|
|
|
rules:
|
2021-03-11 19:13:27 +05:30
|
|
|
'@gitlab/require-i18n-strings': off
|
|
|
|
'@gitlab/no-runtime-template-compiler': off
|
2021-04-17 20:07:23 +05:30
|
|
|
- files:
|
|
|
|
- 'config/**/*'
|
|
|
|
- 'scripts/**/*'
|
|
|
|
- '*.config.js'
|
|
|
|
- '*.config.*.js'
|
2021-11-18 22:05:49 +05:30
|
|
|
- 'jest_resolver.js'
|
|
|
|
- storybook/config/*.js
|
2021-04-17 20:07:23 +05:30
|
|
|
rules:
|
|
|
|
'@gitlab/require-i18n-strings': off
|
|
|
|
import/no-extraneous-dependencies: off
|
|
|
|
import/no-commonjs: off
|
|
|
|
import/no-nodejs-modules: off
|
|
|
|
filenames/match-regex: off
|
|
|
|
no-console: off
|
2021-09-30 23:02:18 +05:30
|
|
|
- files:
|
|
|
|
- '*.stories.js'
|
|
|
|
rules:
|
|
|
|
filenames/match-regex: off
|