-
Notifications
You must be signed in to change notification settings - Fork 119
Expand file tree
/
Copy patheslint.config.js
More file actions
57 lines (56 loc) · 1.32 KB
/
Copy patheslint.config.js
File metadata and controls
57 lines (56 loc) · 1.32 KB
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
47
48
49
50
51
52
53
54
55
56
57
// @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/nuxt-cli/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',
},
},
{
// Benchmark and capture tooling is run directly with node, like `scripts/`,
// which `@antfu/eslint-config` already exempts from these rules.
files: ['bench/**', 'capture/**'],
rules: {
'no-console': 'off',
'antfu/no-top-level-await': 'off',
'node/prefer-global/buffer': 'off',
'node/prefer-global/process': 'off',
},
},
{
files: ['**/*.yml'],
rules: {
'@stylistic/spaced-comment': 'off',
},
},
)