From 7398379ef8789a49d19f07dd7fe41f480db7a4f8 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Wed, 1 Apr 2020 13:52:40 +0400 Subject: fix(typescript): type-annotation-spacing Signed-off-by: Valentin Popov --- src/rules/typescript/default.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/rules/typescript/default.json b/src/rules/typescript/default.json index fe556bc..2b45050 100644 --- a/src/rules/typescript/default.json +++ b/src/rules/typescript/default.json @@ -222,7 +222,7 @@ "error", { "after": true, - "before": true, + "before": false, "overrides": { "arrow": { "after": true, @@ -234,19 +234,19 @@ }, "parameter": { "after": true, - "before": true + "before": false }, "property": { "after": true, - "before": true + "before": false }, "returnType": { "after": true, - "before": true + "before": false }, "variable": { "after": true, - "before": true + "before": false } } } -- cgit v1.2.3 From a3a2934e43d09e81635e2cf7495f8488f7841f44 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Wed, 1 Apr 2020 14:48:54 +0400 Subject: feat(vue): Added overrides Signed-off-by: Valentin Popov --- src/rules/vue/overrides.json | 5 +++++ src/vue-javascript.ts | 9 +++++++++ src/vue-typescript.ts | 9 +++++++++ 3 files changed, 23 insertions(+) create mode 100644 src/rules/vue/overrides.json (limited to 'src') 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, -- cgit v1.2.3 From fd0218c01eee01ce937c505df11d860504258ffc Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Wed, 1 Apr 2020 14:51:51 +0400 Subject: feat(vue): no-multi-spaces Signed-off-by: Valentin Popov --- ROADMAP.md | 2 +- src/rules/vue/default.json | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/ROADMAP.md b/ROADMAP.md index 89a27b1..d16e2bb 100644 --- a/ROADMAP.md +++ b/ROADMAP.md @@ -568,7 +568,7 @@ - [ ] "no-duplicate-attributes" - [ ] "no-empty-pattern" - [ ] "no-irregular-whitespace" -- [ ] "no-multi-spaces" +- [X] "no-multi-spaces" - [ ] "no-parsing-error" - [ ] "no-reserved-component-names" - [ ] "no-reserved-keys" diff --git a/src/rules/vue/default.json b/src/rules/vue/default.json index 376b47c..145c8f2 100644 --- a/src/rules/vue/default.json +++ b/src/rules/vue/default.json @@ -76,6 +76,12 @@ "singleline": 8 } ], + "vue/no-multi-spaces": [ + "error", + { + "ignoreProperties": false + } + ], "vue/no-unused-vars": [ "error" ], -- cgit v1.2.3