2020-02-18 08:57:00 +01:00
|
|
|
module.exports = {
|
|
|
|
root: true,
|
|
|
|
|
|
|
|
env: {
|
|
|
|
node: true,
|
|
|
|
},
|
|
|
|
|
|
|
|
extends: [
|
|
|
|
"plugin:vue/essential",
|
|
|
|
"@vue/airbnb",
|
|
|
|
"@vue/typescript/recommended",
|
|
|
|
"plugin:cypress/recommended",
|
|
|
|
"plugin:prettier/recommended",
|
|
|
|
"prettier",
|
|
|
|
"eslint:recommended",
|
|
|
|
"@vue/prettier",
|
|
|
|
"@vue/prettier/@typescript-eslint",
|
|
|
|
],
|
|
|
|
|
|
|
|
plugins: ["prettier"],
|
|
|
|
|
|
|
|
parserOptions: {
|
|
|
|
ecmaVersion: 2020,
|
|
|
|
},
|
|
|
|
|
|
|
|
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",
|
|
|
|
"cypress/no-unnecessary-waiting": "off",
|
|
|
|
"vue/max-len": [
|
|
|
|
"error",
|
|
|
|
{
|
|
|
|
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",
|
|
|
|
"import/prefer-default-export": "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"],
|
|
|
|
|
2020-06-25 11:38:12 +02:00
|
|
|
overrides: [
|
|
|
|
{
|
2020-11-30 10:24:11 +01:00
|
|
|
files: [
|
|
|
|
"**/__tests__/*.{j,t}s?(x)",
|
|
|
|
"**/tests/unit/**/*.spec.{j,t}s?(x)",
|
|
|
|
],
|
2020-06-25 11:38:12 +02:00
|
|
|
env: {
|
|
|
|
mocha: true,
|
|
|
|
},
|
2020-02-18 08:57:00 +01:00
|
|
|
},
|
2020-06-25 11:38:12 +02:00
|
|
|
],
|
2020-02-18 08:57:00 +01:00
|
|
|
};
|