fedimovies-web/.eslintrc.js

51 lines
1 KiB
JavaScript
Raw Permalink Normal View History

2021-04-17 03:16:54 +00:00
module.exports = {
root: true,
env: {
node: true,
},
extends: [
"plugin:vue/vue3-essential",
"@vue/standard",
2022-05-18 14:33:06 +00:00
"@vue/typescript",
2021-04-17 03:16:54 +00:00
],
parserOptions: {
ecmaVersion: 2020,
},
rules: {
quotes: [
"error",
"double",
{
avoidEscape: true,
},
],
camelcase: "off",
"comma-dangle": [
"error",
"always-multiline",
],
"space-before-function-paren": ["error", {
anonymous: "always",
named: "never",
}],
"padded-blocks": ["error", {
classes: "always",
}],
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"no-console": process.env.NODE_ENV === "production" ? "warn" : "off",
"no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off",
},
overrides: [
{
files: [
"**/__tests__/*.{j,t}s?(x)",
"**/tests/unit/**/*.spec.{j,t}s?(x)",
],
env: {
mocha: true,
},
},
],
}