mirror of
https://framagit.org/framasoft/mobilizon.git
synced 2024-12-23 16:33:28 +00:00
a54607a57d
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
54 lines
1.2 KiB
JavaScript
54 lines
1.2 KiB
JavaScript
module.exports = {
|
|
root: true,
|
|
|
|
env: {
|
|
node: true,
|
|
},
|
|
|
|
extends: [
|
|
"plugin:vue/essential",
|
|
"eslint:recommended",
|
|
"@vue/typescript/recommended",
|
|
"plugin:prettier/recommended",
|
|
],
|
|
|
|
plugins: ["prettier"],
|
|
|
|
parserOptions: {
|
|
ecmaVersion: 2020,
|
|
parser: "@typescript-eslint/parser",
|
|
},
|
|
|
|
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": [
|
|
"off",
|
|
{
|
|
ignoreStrings: true,
|
|
ignoreHTMLTextContents: true,
|
|
ignoreTemplateLiterals: true,
|
|
ignoreComments: true,
|
|
template: 170,
|
|
code: 80,
|
|
},
|
|
],
|
|
"prettier/prettier": "error",
|
|
"@typescript-eslint/interface-name-prefix": "off",
|
|
"@typescript-eslint/no-use-before-define": "off",
|
|
"import/extensions": "off",
|
|
"import/no-unresolved": "off",
|
|
"no-shadow": "off",
|
|
"@typescript-eslint/no-shadow": ["error"],
|
|
},
|
|
|
|
ignorePatterns: ["src/typings/*.d.ts", "vue.config.js"],
|
|
};
|