2020-02-18 07:57:00 +00:00
|
|
|
module.exports = {
|
|
|
|
root: true,
|
|
|
|
|
|
|
|
env: {
|
|
|
|
node: true,
|
|
|
|
},
|
|
|
|
|
|
|
|
extends: [
|
|
|
|
"plugin:vue/essential",
|
|
|
|
"eslint:recommended",
|
2020-12-14 08:23:29 +00:00
|
|
|
"@vue/typescript/recommended",
|
2021-11-09 07:53:04 +00:00
|
|
|
"plugin:prettier/recommended",
|
2020-02-18 07:57:00 +00:00
|
|
|
],
|
|
|
|
|
|
|
|
plugins: ["prettier"],
|
|
|
|
|
|
|
|
parserOptions: {
|
|
|
|
ecmaVersion: 2020,
|
2020-12-14 08:23:29 +00:00
|
|
|
parser: "@typescript-eslint/parser",
|
2020-02-18 07:57:00 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
rules: {
|
|
|
|
"no-console": process.env.NODE_ENV === "production" ? "warn" : "off",
|
|
|
|
"no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off",
|
|
|
|
"no-underscore-dangle": [
|
|
|
|
"error",
|
|
|
|
{
|
|
|
|
allow: ["__typename"],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
"@typescript-eslint/no-explicit-any": "off",
|
|
|
|
"vue/max-len": [
|
2020-12-14 09:21:04 +00:00
|
|
|
"off",
|
2020-02-18 07:57:00 +00:00
|
|
|
{
|
|
|
|
ignoreStrings: true,
|
2020-11-30 09:24:11 +00:00
|
|
|
ignoreHTMLTextContents: true,
|
|
|
|
ignoreTemplateLiterals: true,
|
|
|
|
ignoreComments: true,
|
2020-02-18 07:57:00 +00:00
|
|
|
template: 170,
|
2020-11-30 09:24:11 +00:00
|
|
|
code: 80,
|
2020-02-18 07:57:00 +00:00
|
|
|
},
|
|
|
|
],
|
|
|
|
"prettier/prettier": "error",
|
|
|
|
"@typescript-eslint/interface-name-prefix": "off",
|
|
|
|
"@typescript-eslint/no-use-before-define": "off",
|
2020-08-31 10:40:30 +00:00
|
|
|
"import/extensions": "off",
|
|
|
|
"import/no-unresolved": "off",
|
2020-11-27 18:27:44 +00:00
|
|
|
"no-shadow": "off",
|
|
|
|
"@typescript-eslint/no-shadow": ["error"],
|
2020-02-18 07:57:00 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
ignorePatterns: ["src/typings/*.d.ts", "vue.config.js"],
|
|
|
|
};
|