-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy patheslint.config.js
More file actions
52 lines (49 loc) · 1.25 KB
/
Copy patheslint.config.js
File metadata and controls
52 lines (49 loc) · 1.25 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
import antfu from '@antfu/eslint-config'
import n from 'eslint-plugin-n'
export default antfu({
typescript: true,
markdown: true,
yaml: true,
plugins: {
kloun2: n,
},
ignores: [
'spaces',
'kinotam',
'strip2',
],
rules: {
'curly': 'off',
'no-console': 'off',
'no-unused-vars': 'warn',
'node/prefer-global/process': 'off',
'node/prefer-global/buffer': 'off',
'antfu/if-newline': 'off',
'antfu/no-top-level-await': 'off',
'unused-imports/no-unused-imports': 'warn',
'eslint-comments/no-unlimited-disable': 'off',
'kloun2/file-extension-in-import': ['error', 'always'],
'perfectionist/sort-imports': ['error', {
groups: [
'value-builtin',
'value-external',
['value-internal', 'type-internal'],
['value-parent', 'value-sibling', 'value-index'],
'type-import',
['type-parent', 'type-sibling', 'type-index'],
'side-effect',
'ts-equals-import',
'unknown',
],
newlinesBetween: 'ignore',
order: 'asc',
type: 'natural',
}],
},
stylistic: {
overrides: {
'style/brace-style': ['warn', '1tbs'],
'style/arrow-parens': 'off',
},
},
})