-
Notifications
You must be signed in to change notification settings - Fork 5
/
import.js
26 lines (24 loc) · 862 Bytes
/
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
module.exports = {
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint', 'simple-import-sort', 'eslint-plugin-import'],
settings: {
'import/parsers': { '@typescript-eslint/parser': ['.ts'] },
'import/resolver': { 'eslint-import-resolver-typescript': true },
},
rules: {
'simple-import-sort/imports': 'error',
'simple-import-sort/exports': 'error',
'import/first': 'error',
'import/exports-last': 'off',
'import/no-default-export': 'off',
'import/newline-after-import': ['error', { count: 1 }],
'import/no-webpack-loader-syntax': 'off',
/**
* @note: note you must disable the base rule
* as it can report incorrect errors in @typescript-eslint
*/
'import/no-duplicates': 'off',
'no-duplicate-imports': 'off',
'@typescript-eslint/no-duplicate-imports': 'error',
},
};