diff options
-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, |