-
-
Notifications
You must be signed in to change notification settings - Fork 423
/
eslint.config.js
39 lines (38 loc) · 1.02 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
import js from '@eslint/js'
import eslintConfigPrettier from 'eslint-config-prettier'
import eslintPluginJest from 'eslint-plugin-jest'
import nodeRecommended from 'eslint-plugin-n/configs/recommended-module.js'
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended'
import simpleImportSort from 'eslint-plugin-simple-import-sort'
export default [
{
ignores: ['coverage', 'node_mdoules', 'test/unit/__mocks__'],
},
js.configs.recommended,
eslintPluginJest.configs['flat/recommended'],
nodeRecommended,
eslintConfigPrettier,
eslintPluginPrettierRecommended,
{
plugins: {
'simple-import-sort': simpleImportSort,
},
rules: {
'n/no-extraneous-import': [
'error',
{
allowModules: ['@jest/globals'],
},
],
'n/no-process-exit': 'off',
'simple-import-sort/imports': 'error',
'simple-import-sort/exports': 'error',
},
},
{
files: ['test/**/*.js'],
rules: {
'no-global-assign': 'off',
},
},
]