2020-02-18 08:57:00 +01:00
|
|
|
module.exports = {
|
|
|
|
root: true,
|
|
|
|
|
|
|
|
env: {
|
|
|
|
node: true,
|
|
|
|
},
|
|
|
|
|
|
|
|
extends: [
|
|
|
|
"plugin:vue/essential",
|
|
|
|
"eslint:recommended",
|
2020-12-14 09:23:29 +01:00
|
|
|
"@vue/typescript/recommended",
|
2021-11-09 08:53:04 +01:00
|
|
|
"plugin:prettier/recommended",
|
2020-02-18 08:57:00 +01:00
|
|
|
],
|
|
|
|
|
|
|
|
plugins: ["prettier"],
|
|
|
|
|
|
|
|
parserOptions: {
|
|
|
|
ecmaVersion: 2020,
|
2020-12-14 09:23:29 +01:00
|
|
|
parser: "@typescript-eslint/parser",
|
2020-02-18 08:57:00 +01: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 10:21:04 +01:00
|
|
|
"off",
|
2020-02-18 08:57:00 +01:00
|
|
|
{
|
|
|
|
ignoreStrings: true,
|
2020-11-30 10:24:11 +01:00
|
|
|
ignoreHTMLTextContents: true,
|
|
|
|
ignoreTemplateLiterals: true,
|
|
|
|
ignoreComments: true,
|
2020-02-18 08:57:00 +01:00
|
|
|
template: 170,
|
2020-11-30 10:24:11 +01:00
|
|
|
code: 80,
|
2020-02-18 08:57:00 +01:00
|
|
|
},
|
|
|
|
],
|
|
|
|
"prettier/prettier": "error",
|
|
|
|
"@typescript-eslint/interface-name-prefix": "off",
|
|
|
|
"@typescript-eslint/no-use-before-define": "off",
|
2020-08-31 12:40:30 +02:00
|
|
|
"import/extensions": "off",
|
|
|
|
"import/no-unresolved": "off",
|
2020-11-27 19:27:44 +01:00
|
|
|
"no-shadow": "off",
|
|
|
|
"@typescript-eslint/no-shadow": ["error"],
|
2020-02-18 08:57:00 +01:00
|
|
|
},
|
|
|
|
|
|
|
|
ignorePatterns: ["src/typings/*.d.ts", "vue.config.js"],
|
|
|
|
};
|