mirror of
https://github.com/PretendoNetwork/website.git
synced 2026-08-22 16:47:16 -05:00
feat: Fix lint config
This commit is contained in:
@@ -1,13 +1,16 @@
|
||||
import pluginVue from 'eslint-plugin-vue';
|
||||
import eslintConfig from '@pretendonetwork/eslint-config';
|
||||
import globals from 'globals';
|
||||
import withNuxt from './.nuxt/eslint.config.mjs';
|
||||
|
||||
export default withNuxt([
|
||||
...eslintConfig,
|
||||
...pluginVue.configs['flat/recommended'],
|
||||
{
|
||||
rules: {
|
||||
'eslint/explicit-function-return-type': 'off'
|
||||
'@typescript-eslint/explicit-function-return-type': 'off',
|
||||
'@eslint-community/eslint-comments/disable-enable-pair': 'off',
|
||||
'no-restricted-imports': 'off'
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -23,5 +26,20 @@ export default withNuxt([
|
||||
rules: {
|
||||
'vue/multi-word-component-names': 'off'
|
||||
}
|
||||
},
|
||||
{
|
||||
settings: {
|
||||
'import/resolver': {
|
||||
typescript: {
|
||||
alwaysTryTypes: true,
|
||||
project: [
|
||||
'./.nuxt/tsconfig.json'
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
ignores: ['.output', '.nuxt', '.old']
|
||||
}
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user