forked from decs/typeschema
-
Notifications
You must be signed in to change notification settings - Fork 0
/
eslint.config.mjs
43 lines (41 loc) · 956 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
38
39
40
41
42
43
// @ts-check
import javascript from '@eslint/js';
import typescript from 'typescript-eslint';
import prettier from 'eslint-plugin-prettier/recommended';
import simpleImportSort from 'eslint-plugin-simple-import-sort';
export default typescript.config(
javascript.configs.recommended,
...typescript.configs.recommended,
{
plugins: {
'simple-import-sort': simpleImportSort,
},
rules: {
'simple-import-sort/imports': [
'error',
{
groups: [
['^.*\\u0000$'],
['^\\u0000'],
['^node:'],
['^@?\\w'],
['^'],
['^\\.'],
],
},
],
'simple-import-sort/exports': 'error',
},
},
{
files: ['**/src/__tests__/example.ts'],
rules: {
'@typescript-eslint/no-unused-vars': 'off',
'@typescript-eslint/no-explicit-any': 'off',
},
},
{
ignores: ['**/sample/'],
},
prettier,
);