summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2020-04-01 13:48:54 +0300
committerValentin Popov <info@valentineus.link>2020-04-01 13:49:17 +0300
commita3a2934e43d09e81635e2cf7495f8488f7841f44 (patch)
tree530acbe00f704093a142af6a2646d984362c5c09 /src
parent28516614a3904be3d81f6645bc39dadf469613be (diff)
downloadeslint-config-a3a2934e43d09e81635e2cf7495f8488f7841f44.tar.xz
eslint-config-a3a2934e43d09e81635e2cf7495f8488f7841f44.zip
feat(vue): Added overrides
Signed-off-by: Valentin Popov <info@valentineus.link>
Diffstat (limited to 'src')
-rw-r--r--src/rules/vue/overrides.json5
-rw-r--r--src/vue-javascript.ts9
-rw-r--r--src/vue-typescript.ts9
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,