diff options
author | Valentin Popov <info@valentineus.link> | 2020-04-01 13:48:54 +0300 |
---|---|---|
committer | Valentin Popov <info@valentineus.link> | 2020-04-01 13:49:17 +0300 |
commit | a3a2934e43d09e81635e2cf7495f8488f7841f44 (patch) | |
tree | 530acbe00f704093a142af6a2646d984362c5c09 | |
parent | 28516614a3904be3d81f6645bc39dadf469613be (diff) | |
download | eslint-config-a3a2934e43d09e81635e2cf7495f8488f7841f44.tar.xz eslint-config-a3a2934e43d09e81635e2cf7495f8488f7841f44.zip |
feat(vue): Added overrides
Signed-off-by: Valentin Popov <info@valentineus.link>
-rw-r--r-- | src/rules/vue/overrides.json | 5 | ||||
-rw-r--r-- | src/vue-javascript.ts | 9 | ||||
-rw-r--r-- | src/vue-typescript.ts | 9 |
3 files changed, 23 insertions, 0 deletions
diff --git a/src/rules/vue/overrides.json b/src/rules/vue/overrides.json new file mode 100644 index 0000000..8927171 --- /dev/null +++ b/src/rules/vue/overrides.json @@ -0,0 +1,5 @@ +{ + "sort-keys": [ + "off" + ] +} diff --git a/src/vue-javascript.ts b/src/vue-javascript.ts index a3c7a46..39fba7d 100644 --- a/src/vue-javascript.ts +++ b/src/vue-javascript.ts @@ -1,4 +1,5 @@ import rDefault from "./rules/vue/default.json"; +import rOverrides from "./rules/vue/overrides.json"; module.exports = { "extends": [ @@ -8,6 +9,14 @@ module.exports = { "plugin:vue/recommended", "plugin:vue/strongly-recommended", ], + "overrides": [ + { + files: [ + "*.vue", + ], + rules: { ...rOverrides }, + }, + ], "parser": "vue-eslint-parser", "parserOptions": { extraFileExtensions: [ diff --git a/src/vue-typescript.ts b/src/vue-typescript.ts index f44c6f2..11d4d61 100644 --- a/src/vue-typescript.ts +++ b/src/vue-typescript.ts @@ -1,4 +1,5 @@ import rDefault from "./rules/vue/default.json"; +import rOverrides from "./rules/vue/overrides.json"; module.exports = { "extends": [ @@ -8,6 +9,14 @@ module.exports = { "plugin:vue/recommended", "plugin:vue/strongly-recommended", ], + "overrides": [ + { + files: [ + "*.vue", + ], + rules: { ...rOverrides }, + }, + ], "parser": "vue-eslint-parser", "parserOptions": { createDefaultProgram: true, |