-
Notifications
You must be signed in to change notification settings - Fork 0
/
eslint.config.mjs
46 lines (41 loc) · 1.36 KB
/
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
44
45
46
import base from '@snowball-tech/eslint-snowball-config/configs/base.js'
import html from '@snowball-tech/eslint-snowball-config/configs/html.js'
import importConfig from '@snowball-tech/eslint-snowball-config/configs/import.js'
import json from '@snowball-tech/eslint-snowball-config/configs/json.js'
import lodash from '@snowball-tech/eslint-snowball-config/configs/lodash.js'
import markdown from '@snowball-tech/eslint-snowball-config/configs/markdown.js'
import perfectionist from '@snowball-tech/eslint-snowball-config/configs/perfectionist.js'
import prettier from '@snowball-tech/eslint-snowball-config/configs/prettier.js'
import secrets from '@snowball-tech/eslint-snowball-config/configs/secrets.js'
import yml from '@snowball-tech/eslint-snowball-config/configs/yml.js'
export default [
...base,
...html,
...json,
...markdown,
...yml,
...secrets,
...importConfig,
...lodash,
...perfectionist,
...prettier,
{
files: ['packages/eslint-snowball-config/**/*.{js,mjs,cjs,jsx,ts,mts,tsx}'],
rules: {
'import/extensions': 'off',
},
},
{
files: ['packages/eslint-snowball-config/**/*.{js,mjs,cjs}'],
rules: {
'import/no-unresolved': [
'error',
{
caseSensitive: true,
commonjs: true,
ignore: ['eslint-plugin-perfectionist', 'typescript-eslint'],
},
],
},
},
]