-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy patheslint.config.ts
53 lines (52 loc) · 1.67 KB
/
eslint.config.ts
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
53
import config from '@taiga-ui/eslint-plugin-experience-next';
export default [
...config,
{
ignores: [
// TypeScript will ignore files with duplicate filenames in the same folder
// (for example, src/file.ts and src/file.js). TypeScript purposely ignore
// all but one of the files, only keeping the one file
// with the highest priority extension
'**/jest-preset.js',
'**/jest.config.js',
'**/eslint.config.js',
'.release-it.js',
],
},
{
files: ['**/*.js', '**/*.ts'],
rules: {
'perfectionist/sort-objects': [
'error',
{
customGroups: {
id: 'id',
env: 'env',
files: 'files',
parser: 'parser',
plugins: 'plugins',
extends: 'extends',
$schema: '$schema',
rules: 'rules',
overrides: 'overrides',
},
groups: [
'$schema',
'id',
'env',
'files',
'parser',
'plugins',
'extends',
'unknown',
'rules',
'overrides',
],
order: 'asc',
partitionByComment: true,
type: 'natural',
},
],
},
},
];