forked from sunneydev/bun-compression
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy patheslint.config.js
52 lines (51 loc) · 1.73 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
import eslint from '@eslint/js'
import prettier from 'eslint-config-prettier'
import importX from 'eslint-plugin-import-x'
import markdown from 'eslint-plugin-markdown'
import perfectionist from 'eslint-plugin-perfectionist'
import regexp from 'eslint-plugin-regexp'
import security from 'eslint-plugin-security'
import sonarjs from 'eslint-plugin-sonarjs'
import tsdoc from 'eslint-plugin-tsdoc'
import unicorn from 'eslint-plugin-unicorn'
import tseslint from 'typescript-eslint'
export default tseslint.config(
eslint.configs.recommended,
...tseslint.configs.recommended,
...markdown.configs.recommended,
unicorn.configs['flat/recommended'],
regexp.configs['flat/recommended'],
importX.flatConfigs.recommended,
importX.flatConfigs.typescript,
perfectionist.configs['recommended-natural'],
security.configs.recommended,
sonarjs.configs.recommended,
prettier,
{ ignores: ['dist', 'README.md'] },
{ plugins: { tsdoc } },
{
rules: {
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-unused-vars': [
'warn',
{ argsIgnorePattern: '^_', varsIgnorePattern: '^_' },
],
'import-x/no-named-as-default-member': 'off',
'import-x/no-unresolved': 'warn',
'no-undef': 'off',
'perfectionist/sort-interfaces': 'off',
'perfectionist/sort-modules': 'off',
'perfectionist/sort-object-types': 'off',
'perfectionist/sort-objects': 'off',
'tsdoc/syntax': 'warn',
'unicorn/consistent-function-scoping': 'off',
'unicorn/filename-case': 'off',
'unicorn/no-null': 'off',
'unicorn/prefer-top-level-await': 'off',
'unicorn/prevent-abbreviations': 'off',
},
},
{
settings: { 'import-x/resolver': { typescript: true } },
},
)