-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathimport.js
36 lines (34 loc) · 1.02 KB
/
import.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
// @ts-check
/** @type {import("eslint").Linter.Config} */
const config = {
plugins: ['simple-import-sort', 'unused-imports', 'import'],
rules: {
'import/no-cycle': ['error'],
'import/extensions': ['off'],
'import/no-mutable-exports': ['error'],
'import/no-relative-packages': ['warn'],
'import/first': ['error'],
'import/newline-after-import': ['warn'],
'import/no-absolute-path': ['error'],
'import/no-self-import': ['error'],
'import/no-useless-path-segments': ['error'],
'import/order': ['off'],
'sort-imports': ['off'],
'simple-import-sort/imports': ['warn'],
'simple-import-sort/exports': ['warn'],
'unused-imports/no-unused-imports': ['error'],
'@typescript-eslint/no-unused-vars': 'off',
'unused-imports/no-unused-vars': [
'warn',
{
vars: 'all',
varsIgnorePattern: '^_',
args: 'after-used',
argsIgnorePattern: '^_',
},
],
'no-label-var': ['error'],
'no-undef-init': ['warn'],
},
};
module.exports = config;