Nuxt/.eslintrc

83 lines
2.0 KiB
Plaintext
Raw Permalink Normal View History

2021-03-18 14:26:41 +00:00
{
"globals": {
2021-04-23 20:30:43 +00:00
"NodeJS": true,
"$fetch": true
2021-03-18 14:26:41 +00:00
},
"plugins": [
"jsdoc"
],
2021-03-18 14:26:41 +00:00
"extends": [
2021-04-15 18:49:29 +00:00
"plugin:jsdoc/recommended",
"@nuxtjs/eslint-config-typescript",
"plugin:import/typescript"
2021-03-18 14:26:41 +00:00
],
"rules": {
"unicorn/prefer-node-protocol": "error",
2021-03-18 14:26:41 +00:00
"no-console": "off",
"vue/multi-word-component-names": "off",
2021-04-15 18:49:29 +00:00
"vue/one-component-per-file": "off",
"vue/require-default-prop": "off",
"vue/no-multiple-template-root": "off",
2023-01-22 16:46:45 +00:00
"vue/no-v-model-argument": "off",
2021-04-15 18:49:29 +00:00
"jsdoc/require-jsdoc": "off",
"jsdoc/require-param": "off",
"jsdoc/require-returns": "off",
"jsdoc/require-param-type": "off",
"no-redeclare": "off",
"import/order": [
"error", {
"pathGroups": [
{
"pattern": "@nuxt/test-utils",
"group": "external"
}
]
}
],
"import/no-restricted-paths": [
"error",
{
"zones": [
{
"from": "packages/nuxt/src/!(core)/**/*",
"target": "packages/nuxt/src/core",
"message": "core should not directly import from modules."
},
{
"from": "packages/nuxt/src/!(app)/**/*",
"target": "packages/nuxt/src/app",
"message": "app should not directly import from modules."
},
{
"from": "packages/nitro",
"target": "packages/!(nitro)/**/*",
"message": "nitro should not directly import other packages."
}
]
}
],
"@typescript-eslint/consistent-type-imports": [
"error",
{
"disallowTypeAnnotations": false
}
],
"@typescript-eslint/no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_",
"ignoreRestSiblings": true
}
]
2021-04-15 18:49:29 +00:00
},
"settings": {
"jsdoc": {
"tagNamePreference": {
"warning": "warning",
"note": "note"
}
}
}
2021-03-18 14:26:41 +00:00
}