2020-02-18 07:57:00 +00: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 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",
|
|
|
|
"import/prefer-default-export": "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"],
|
|
|
|
|
2020-06-25 09:38:12 +00:00
|
|
|
overrides: [
|
|
|
|
{
|
2020-11-30 09:24:11 +00:00
|
|
|
files: [
|
|
|
|
"**/__tests__/*.{j,t}s?(x)",
|
|
|
|
"**/tests/unit/**/*.spec.{j,t}s?(x)",
|
|
|
|
],
|
2020-06-25 09:38:12 +00:00
|
|
|
env: {
|
|
|
|
mocha: true,
|
|
|
|
},
|
2020-02-18 07:57:00 +00:00
|
|
|
},
|
2020-12-02 10:19:39 +00:00
|
|
|
{
|
|
|
|
files: [
|
|
|
|
"**/__tests__/*.{j,t}s?(x)",
|
|
|
|
"**/tests/unit/**/*.spec.{j,t}s?(x)",
|
|
|
|
],
|
|
|
|
env: {
|
|
|
|
jest: true,
|
|
|
|
},
|
|
|
|
},
|
2020-06-25 09:38:12 +00:00
|
|
|
],
|
2020-02-18 07:57:00 +00:00
|
|
|
};
|