-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
eslint.config.mjs
31 lines (30 loc) · 943 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
import eslint from '@eslint/js';
import simpleImportSort from 'eslint-plugin-simple-import-sort';
import { rules } from 'eslint-plugin-unused-imports';
import tseslint from 'typescript-eslint';
export default tseslint.config(
eslint.configs.recommended,
...tseslint.configs.recommended,
...tseslint.configs.stylistic,
{
ignores: ['node_modules', 'dist']
},
{
plugins: {
'simple-import-sort': simpleImportSort,
'unused-imports': {
meta: {
name: 'eslint-plugin-simple-import-sort',
version: '3.2.0',
},
rules
}
},
rules: {
quotes: ['error', 'single', { avoidEscape: true }],
'simple-import-sort/imports': 'error',
'simple-import-sort/exports': 'error',
'unused-imports/no-unused-imports': 'error'
}
}
);