mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-25 15:15:19 +00:00
fdd38f958c
Co-authored-by: pooya parsa <pyapar@gmail.com>
64 lines
1.5 KiB
Plaintext
64 lines
1.5 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/multi-word-component-names": "off",
|
|
"vue/one-component-per-file": "off",
|
|
"vue/require-default-prop": "off",
|
|
"vue/no-multiple-template-root": "off",
|
|
"jsdoc/require-jsdoc": "off",
|
|
"jsdoc/require-param": "off",
|
|
"jsdoc/require-returns": "off",
|
|
"jsdoc/require-param-type": "off",
|
|
"import/no-restricted-paths": [
|
|
"error",
|
|
{
|
|
"zones": [
|
|
{
|
|
"from": "packages/nuxt3/src/!(core)/**/*",
|
|
"target": "packages/nuxt3/src/core",
|
|
"message": "core should not directly import from modules."
|
|
},
|
|
{
|
|
"from": "packages/nuxt3/src/!(app)/**/*",
|
|
"target": "packages/nuxt3/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/no-unused-vars": [
|
|
"error",
|
|
{
|
|
"argsIgnorePattern": "^_",
|
|
"varsIgnorePattern": "^_",
|
|
"ignoreRestSiblings": true
|
|
}
|
|
]
|
|
},
|
|
"settings": {
|
|
"jsdoc": {
|
|
"tagNamePreference": {
|
|
"warning": "warning",
|
|
"note": "note"
|
|
}
|
|
}
|
|
}
|
|
}
|