-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy patheslint.config.js
40 lines (39 loc) · 944 Bytes
/
eslint.config.js
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
import antfu from '@antfu/eslint-config';
/* Using custom configuration of Antfu's code style: https://github.com/antfu/eslint-config */
export default await antfu(
{
typescript: true,
stylistic: {
quotes: 'single',
indent: 'tab',
semi: 'always',
},
ignores: [
'**/dist',
'.idea',
// disable eslint for vendor utils
'src/functions/apca.ts',
'src/functions/parsley.js',
],
overrides: {
typescript: {
'ts/consistent-type-definitions': ['error', 'type'],
},
},
},
{
rules: {
'style/no-tabs': ['error', { allowIndentationTabs: true }],
'style/no-mixed-spaces-and-tabs': ['error', 'smart-tabs'],
'style/array-bracket-newline': ['error', { multiline: true }],
'style/array-element-newline': ['error', 'consistent'],
'antfu/top-level-function': 'off',
},
},
{
files: ['tsconfig.json', 'tsconfig.node.json', 'package.json'],
rules: {
'jsonc/sort-keys': 'off',
},
},
);