forked from aaron-bond/better-comments
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy patheslint.config.mjs
37 lines (36 loc) · 862 Bytes
/
eslint.config.mjs
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
import antfu from '@antfu/eslint-config';
export default antfu(
{
ignores: ['samples'],
},
{
// style
rules: {
'style/quote-props': ['warn', 'as-needed'],
'style/semi': ['warn', 'always'],
'style/max-statements-per-line': ['warn', { max: 1 }],
curly: ['warn', 'all'],
'style/member-delimiter-style': [
'warn',
{
multiline: { delimiter: 'semi', requireLast: true },
singleline: { delimiter: 'semi', requireLast: false },
multilineDetection: 'brackets',
},
],
'unused-imports/no-unused-vars': ['error', { vars: 'all', args: 'none' }],
'no-cond-assign': 'off',
},
},
{
files: ['package.json'],
rules: {
'jsonc/indent': ['error', 4],
},
},
{
rules: {
'unicorn/prefer-node-protocol': 'off',
},
},
);