44 lines
1.0 KiB
JavaScript
44 lines
1.0 KiB
JavaScript
// https://github.com/typescript-eslint/typescript-eslint/issues/251
|
|
module.exports = {
|
|
root: true,
|
|
env: {
|
|
browser: true,
|
|
es2021: true,
|
|
node: true,
|
|
},
|
|
extends: [
|
|
"eslint:recommended",
|
|
"plugin:vue/vue3-recommended",
|
|
"plugin:@typescript-eslint/recommended",
|
|
"plugin:prettier/recommended",
|
|
],
|
|
overrides: [],
|
|
parser: "vue-eslint-parser",
|
|
parserOptions: {
|
|
ecmaVersion: "latest",
|
|
extraFileExtensions: [".vue"],
|
|
parser: "@typescript-eslint/parser",
|
|
tsconfigRootDir: __dirname,
|
|
project: ["./tsconfig.node.json", "./tsconfig.json", "./tests/tsconfig.json"],
|
|
sourceType: "module",
|
|
},
|
|
plugins: ["vue", "@typescript-eslint", "prettier"],
|
|
rules: {
|
|
// Override/add rules' settings here
|
|
"vue/valid-v-slot": [
|
|
"error",
|
|
{
|
|
allowModifiers: true,
|
|
},
|
|
],
|
|
"@typescript-eslint/no-unused-vars": [
|
|
"error",
|
|
{
|
|
argsIgnorePattern: "^_",
|
|
varsIgnorePattern: "^_",
|
|
caughtErrorsIgnorePattern: "^_",
|
|
},
|
|
],
|
|
},
|
|
}
|