-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy patheslint.config.js
58 lines (57 loc) · 1.4 KB
/
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
import eslint from '@eslint/js';
import eslintConfigPrettier from 'eslint-config-prettier';
import eslintPluginSimpleImportSort from 'eslint-plugin-simple-import-sort';
import eslintPluginUnicorn from 'eslint-plugin-unicorn';
import tslint from 'typescript-eslint';
export default tslint.config(
eslint.configs.recommended,
...tslint.configs.recommended,
eslintPluginUnicorn.configs['flat/recommended'],
eslintConfigPrettier,
{
plugins: {
'simple-import-sort': eslintPluginSimpleImportSort,
},
rules: {
'simple-import-sort/imports': 'error',
'simple-import-sort/exports': 'error',
},
},
{
rules: {
'@typescript-eslint/no-empty-object-type': [
'error',
{
allowInterfaces: 'with-single-extends',
},
],
'@typescript-eslint/consistent-type-imports': [
'error',
{
fixStyle: 'inline-type-imports',
},
],
'@typescript-eslint/consistent-type-definitions': 'error',
},
},
{
rules: {
'unicorn/no-array-push-push': 'off',
'unicorn/no-process-exit': 'off',
'unicorn/prevent-abbreviations': 'off',
'unicorn/filename-case': [
'error',
{
cases: {
camelCase: true,
pascalCase: true,
kebabCase: true,
},
},
],
},
},
{
ignores: ['**/dist/**', '**/types/**'],
},
);