summaryrefslogtreecommitdiff
path: root/.eslintrc.yml
diff options
context:
space:
mode:
authorBrandon Labuschagne <blabuschagne@gitlab.com>2019-06-13 19:15:25 +0000
committerMike Greiling <mike@pixelcog.com>2019-06-13 19:15:25 +0000
commit3d8163dcf6070a9e73fa1e8e31a65375ff5770d2 (patch)
treea4958573eccc885abde1fd924b559c5eca6eacc7 /.eslintrc.yml
parentea9fcebfdf2aff296d3176ae57b909849d036c0b (diff)
downloadgitlab-ce-3d8163dcf6070a9e73fa1e8e31a65375ff5770d2.tar.gz
Disable unnecessary ESLint i18n offences
Unnecessary offences include false positives as well as flagged errors which have follow up issues in order to be addressed. Not all issues have been addressed before this being submitted in the spirit of results and iteration.
Diffstat (limited to '.eslintrc.yml')
-rw-r--r--.eslintrc.yml10
1 files changed, 10 insertions, 0 deletions
diff --git a/.eslintrc.yml b/.eslintrc.yml
index 98a497aa12a..2b881d5f201 100644
--- a/.eslintrc.yml
+++ b/.eslintrc.yml
@@ -8,11 +8,13 @@ globals:
plugins:
- import
- html
+ - "@gitlab/i18n"
settings:
import/resolver:
webpack:
config: './config/webpack.config.js'
rules:
+ "@gitlab/i18n/no-non-i18n-strings": error
import/no-commonjs: error
no-underscore-dangle:
- error
@@ -31,3 +33,11 @@ rules:
vue/no-use-v-if-with-v-for: off
vue/no-v-html: off
vue/use-v-on-exact: off
+overrides:
+ files:
+ # Vue is temporarily being disabled until the autofix errors are resolved
+ # Follow up issue https://gitlab.com/gitlab-org/gitlab-ce/issues/57969
+ - '*.vue'
+ - '**/spec/**/*'
+ rules:
+ "@gitlab/i18n/no-non-i18n-strings": off