forked from NTUT-NPC/website
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy patheslint.config.js
More file actions
27 lines (26 loc) · 765 Bytes
/
eslint.config.js
File metadata and controls
27 lines (26 loc) · 765 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
// @ts-check
import { antfu } from '@antfu/eslint-config'
export default antfu(
{
formatters: true,
},
{
rules: {
'antfu/if-newline': 'off',
'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' } }],
'vue/max-attributes-per-line': ['error'],
'vue/attributes-order': ['error', { alphabetical: true }],
},
},
{
// Ignore generated files
ignores: [
'.pnpm-store/', // Generated by CI workflow
],
},
)