2021-07-31 22:00:28 +00:00
|
|
|
module.exports = {
|
|
|
|
root: true,
|
|
|
|
env: {
|
|
|
|
browser: true,
|
2021-07-31 22:45:28 +00:00
|
|
|
node: true,
|
2021-07-31 22:00:28 +00:00
|
|
|
},
|
2021-07-31 22:45:28 +00:00
|
|
|
parserOptions: {
|
|
|
|
parser: "@typescript-eslint/parser",
|
|
|
|
requireConfigFile: false,
|
|
|
|
},
|
|
|
|
extends: ["@nuxtjs/eslint-config-typescript", "plugin:nuxt/recommended", "prettier"],
|
|
|
|
plugins: ["prettier"],
|
2021-07-31 22:00:28 +00:00
|
|
|
// add your custom rules here
|
2021-07-31 22:45:28 +00:00
|
|
|
rules: {
|
|
|
|
"no-console": process.env.NODE_ENV === "production" ? "warn" : "off",
|
|
|
|
"no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off",
|
|
|
|
quotes: ["error", "double"],
|
|
|
|
"vue/component-name-in-template-casing": ["error", "PascalCase"],
|
|
|
|
camelcase: 0,
|
|
|
|
"vue/singleline-html-element-content-newline": "off",
|
|
|
|
"vue/multiline-html-element-content-newline": "off",
|
|
|
|
"vue/no-mutating-props": "off",
|
|
|
|
"vue/no-v-for-template-key-on-child": "off",
|
2021-08-07 00:28:12 +00:00
|
|
|
"vue/valid-v-slot": [
|
|
|
|
"error",
|
|
|
|
{
|
|
|
|
allowModifiers: true,
|
|
|
|
},
|
|
|
|
],
|
2021-07-31 22:45:28 +00:00
|
|
|
},
|
|
|
|
};
|