-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy patheslint.config.js
More file actions
27 lines (23 loc) · 656 Bytes
/
Copy patheslint.config.js
File metadata and controls
27 lines (23 loc) · 656 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
// eslint.config.js
import antfu from '@antfu/eslint-config';
export default antfu({
stylistic: {
semi: true,
},
typescript: {
tsconfigPath: './tsconfig.json',
},
rules: {
// To allow export on top of files
'curly': ['error', 'all'],
'vitest/consistent-test-it': ['error', { fn: 'test' }],
'ts/consistent-type-definitions': ['error', 'type'],
'style/brace-style': ['error', '1tbs', { allowSingleLine: false }],
'unused-imports/no-unused-vars': ['error', {
argsIgnorePattern: '^_',
varsIgnorePattern: '^_',
caughtErrorsIgnorePattern: '^_',
}],
},
ignores: ['README.md', 'demo/*'],
});