-
Notifications
You must be signed in to change notification settings - Fork 111
Expand file tree
/
Copy patheslint.config.js
More file actions
46 lines (45 loc) · 974 Bytes
/
eslint.config.js
File metadata and controls
46 lines (45 loc) · 974 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
// @ts-check
import antfu from '@antfu/eslint-config'
import { createConfigForNuxt } from '@nuxt/eslint-config/flat'
export default createConfigForNuxt({
features: {
tooling: true,
standalone: false,
stylistic: true,
},
dirs: {
src: [
'./playground',
],
},
}, await antfu({
// nuxt/eslint already provides it
regexp: false,
})).append(
{
ignores: ['packages/nuxi/src/data/**'],
},
{
rules: {
'vue/singleline-html-element-content-newline': 'off',
// TODO: remove usage of `any` throughout codebase
'@typescript-eslint/no-explicit-any': 'off',
'style/indent-binary-ops': 'off',
'pnpm/json-valid-catalog': 'off',
'pnpm/json-enforce-catalog': 'off',
'pnpm/yaml-enforce-settings': 'off',
},
},
{
files: ['playground/**'],
rules: {
'no-console': 'off',
},
},
{
files: ['**/*.yml'],
rules: {
'@stylistic/spaced-comment': 'off',
},
},
)