-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy patheslint.config.mjs
More file actions
39 lines (38 loc) · 1006 Bytes
/
eslint.config.mjs
File metadata and controls
39 lines (38 loc) · 1006 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
// @ts-check
import { antfu } from '@antfu/eslint-config'
import withNuxt from './.nuxt/eslint.config.mjs'
export default withNuxt(
antfu({
formatters: true,
unocss: true,
typescript: true,
}),
{
rules: {
'curly': ['error', 'multi-line', 'consistent'],
'node/prefer-global/buffer': ['error', 'always'],
'node/prefer-global/process': ['error', 'always'],
'style/arrow-parens': ['error', 'always'],
'style/brace-style': ['error', '1tbs'],
'style/operator-linebreak': ['error', 'after', { overrides: { '?': 'before', ':': 'before' } }],
},
},
{
files: ['**/*.vue'],
rules: {
'vue/max-attributes-per-line': ['error'],
'vue/attributes-order': ['error', { alphabetical: true }],
},
},
{
files: ['pnpm-workspace.yaml'],
rules: {
'pnpm/yaml-enforce-settings': ['error', { settings: { shellEmulator: true } }],
},
},
{
ignores: [
'.pnpm-store/', // Generated by CI workflow
],
},
)