-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7630bb7
commit e9af679
Showing
6 changed files
with
369 additions
and
1,917 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,43 @@ | ||
import antfu from '@antfu/eslint-config' | ||
// @ts-check | ||
import { createConfigForNuxt } from '@nuxt/eslint-config/flat' | ||
|
||
export default antfu({ | ||
rules: { | ||
'no-use-before-define': 'off', | ||
'node/prefer-global/buffer': 'off', | ||
'node/prefer-global/process': 'off', | ||
export default createConfigForNuxt({ | ||
features: { | ||
stylistic: true, | ||
tooling: true, | ||
}, | ||
dirs: { | ||
src: ['./src', './client', './docs'], | ||
}, | ||
}) | ||
.override('nuxt/javascript', { | ||
rules: { | ||
'no-console': ['error', { allow: ['warn', 'error'] }], | ||
}, | ||
}) | ||
.override('nuxt/typescript/rules', { | ||
rules: { | ||
'@typescript-eslint/ban-ts-comment': [ | ||
'error', | ||
{ | ||
'ts-expect-error': 'allow-with-description', | ||
'ts-ignore': true, | ||
}, | ||
], | ||
'@typescript-eslint/consistent-type-definitions': ['error', 'interface'], | ||
// TODO: Discuss if we want to enable this | ||
'@typescript-eslint/no-invalid-void-type': 'off', | ||
// TODO: Discuss if we want to enable this | ||
'@typescript-eslint/no-explicit-any': 'off', | ||
}, | ||
}) | ||
.override('nuxt/vue/rules', { | ||
rules: { | ||
'vue/multi-word-component-names': 'off', | ||
'vue/no-v-html': 'off', | ||
'vue/require-default-prop': 'off', | ||
'vue/no-multiple-template-root': 'off', | ||
// NOTE: Disable this style rules if stylistic is not enabled | ||
'vue/max-attributes-per-line': 'off', | ||
}, | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.