35 lines
1.0 KiB
JavaScript
35 lines
1.0 KiB
JavaScript
/* eslint-env node */
|
|
/* Vue ESLint Rules: https://eslint.vuejs.org/rules/ */
|
|
/* TS ESLint Rules: https://typescript-eslint.io/rules/ */
|
|
require("@rushstack/eslint-patch/modern-module-resolution");
|
|
module.exports = {
|
|
root: true,
|
|
parser: "vue-eslint-parser",
|
|
extends: [
|
|
"eslint:recommended",
|
|
"plugin:vue/vue3-recommended",
|
|
"@vue/eslint-config-typescript/recommended",
|
|
"@vue/eslint-config-prettier",
|
|
],
|
|
env: {
|
|
"vue/setup-compiler-macros": true,
|
|
},
|
|
ignorePatterns: [
|
|
"versionize.js",
|
|
"tailwind.config.js",
|
|
"postcss.config.js",
|
|
"src/gql/**/*.ts",
|
|
],
|
|
rules: {
|
|
"@typescript-eslint/ban-ts-comment": "warn",
|
|
"@typescript-eslint/no-explicit-any": "warn",
|
|
"@typescript-eslint/no-unused-vars": "error",
|
|
"@typescript-eslint/no-non-null-asserted-optional-chain": "error",
|
|
"@typescript-eslint/no-this-alias": "error",
|
|
"vue/require-toggle-inside-transition": "warn",
|
|
"vue/no-deprecated-filter": "warn",
|
|
"vue/no-v-html": "error",
|
|
"vue/no-required-prop-with-default": "error",
|
|
},
|
|
};
|