mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-30 01:17:16 +00:00
eb794f3f85
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
57 lines
1.3 KiB
Plaintext
57 lines
1.3 KiB
Plaintext
{
|
|
"globals": {
|
|
"NodeJS": true,
|
|
"$fetch": true
|
|
},
|
|
"plugins": ["jsdoc"],
|
|
"extends": [
|
|
"plugin:jsdoc/recommended",
|
|
"@nuxtjs/eslint-config-typescript",
|
|
"plugin:import/typescript"
|
|
],
|
|
"rules": {
|
|
"no-console": "off",
|
|
"vue/one-component-per-file": "off",
|
|
"vue/require-default-prop": "off",
|
|
"jsdoc/require-jsdoc": "off",
|
|
"jsdoc/require-param": "off",
|
|
"jsdoc/require-returns": "off",
|
|
"jsdoc/require-param-type": "off",
|
|
"import/no-restricted-paths": ["error", {
|
|
"zones": [
|
|
{
|
|
"target": "packages/nuxt3/src/!(core)/**/*",
|
|
"from": "packages/nuxt3/src/core",
|
|
"message": "core should not directly import from modules."
|
|
},
|
|
{
|
|
"target": "packages/nuxt3/src/!(app)/**/*",
|
|
"from": "packages/nuxt3/src/app",
|
|
"message": "app should not directly import from modules."
|
|
},
|
|
{
|
|
"target": "packages/nitro",
|
|
"from": "packages/!(nitro)/**/*",
|
|
"message": "nitro should not directly import other packages."
|
|
}
|
|
]
|
|
}]
|
|
},
|
|
"settings": {
|
|
"jsdoc": {
|
|
"tagNamePreference": {
|
|
"warning": "warning",
|
|
"note": "note"
|
|
}
|
|
}
|
|
},
|
|
"overrides": [
|
|
{
|
|
"files": ["*.vue"],
|
|
"rules": {
|
|
"@typescript-eslint/no-unused-vars": "off"
|
|
}
|
|
}
|
|
]
|
|
}
|