diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/rules/vue/default.json | 1 | ||||
-rw-r--r-- | src/vue-javascript.ts | 19 | ||||
-rw-r--r-- | src/vue-typescript.ts | 20 |
3 files changed, 40 insertions, 0 deletions
diff --git a/src/rules/vue/default.json b/src/rules/vue/default.json new file mode 100644 index 0000000..0967ef4 --- /dev/null +++ b/src/rules/vue/default.json @@ -0,0 +1 @@ +{} diff --git a/src/vue-javascript.ts b/src/vue-javascript.ts new file mode 100644 index 0000000..a3c7a46 --- /dev/null +++ b/src/vue-javascript.ts @@ -0,0 +1,19 @@ +import rDefault from "./rules/vue/default.json"; + +module.exports = { + "extends": [ + "./javascript", + "plugin:vue/base", + "plugin:vue/essential", + "plugin:vue/recommended", + "plugin:vue/strongly-recommended", + ], + "parser": "vue-eslint-parser", + "parserOptions": { + extraFileExtensions: [ + ".vue", + ], + }, + "plugins": ["vue"], + "rules": { ...rDefault }, +}; diff --git a/src/vue-typescript.ts b/src/vue-typescript.ts new file mode 100644 index 0000000..bbef943 --- /dev/null +++ b/src/vue-typescript.ts @@ -0,0 +1,20 @@ +import rDefault from "./rules/vue/default.json"; + +module.exports = { + "extends": [ + "./typescript", + "plugin:vue/base", + "plugin:vue/essential", + "plugin:vue/recommended", + "plugin:vue/strongly-recommended", + ], + "parser": "vue-eslint-parser", + "parserOptions": { + extraFileExtensions: [ + ".vue", + ], + parser: "@typescript-eslint/parser", + }, + "plugins": ["vue"], + "rules": { ...rDefault }, +}; |