diff options
author | Ezekiel Kigbo <ekigbo@gitlab.com> | 2019-06-18 00:51:17 +1000 |
---|---|---|
committer | Ezekiel Kigbo <ekigbo@gitlab.com> | 2019-07-10 16:42:43 +1000 |
commit | 9b2d8e0593e730e6ebbc9cf0c4fc3ff91b16818b (patch) | |
tree | 0196398f6d9d068536aa9106b2208557d989725e | |
parent | 9e0a66c4f196f16c040577663458337639ee8f16 (diff) | |
download | gitlab-ce-9b2d8e0593e730e6ebbc9cf0c4fc3ff91b16818b.tar.gz |
Added no-bare-strings rule
-rw-r--r-- | .eslintrc.yml | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/.eslintrc.yml b/.eslintrc.yml index 2612fd3371d..2dbefa97f73 100644 --- a/.eslintrc.yml +++ b/.eslintrc.yml @@ -10,10 +10,13 @@ plugins: - import - html - "@gitlab/i18n" + - vue-i18n settings: import/resolver: webpack: config: './config/webpack.config.js' + vue-i18n: + localeDir: './app/assets/javascripts/locale/gitlab.pot' rules: "@gitlab/i18n/no-non-i18n-strings": error import/no-commonjs: error @@ -34,11 +37,18 @@ rules: vue/no-use-v-if-with-v-for: off vue/no-v-html: off vue/use-v-on-exact: off + # disable additional rules appearing with vue-i18n + vue/attributes-order: off + vue/valid-template-root: off + vue/require-component-is: off + vue-i18n/no-missing-keys: error + vue-i18n/no-dynamic-keys: error + vue-i18n/no-unused-keys: + - error + - extensions: [.vue] + vue-i18n/no-bare-strings: error 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 |