-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
38 lines (36 loc) · 1.04 KB
/
.eslintrc.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
module.exports = {
root: true,
env: {
node: true,
es6: true,
},
parser: '@typescript-eslint/parser',
plugins: ['prettier', 'unused-imports', 'sort-imports-es6-autofix', '@typescript-eslint', 'promise'],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:promise/recommended',
'prettier',
'plugin:prettier/recommended',
],
rules: {
// https://github.com/sweepline/eslint-plugin-unused-imports#usage
'@typescript-eslint/no-unused-vars': 'off',
'unused-imports/no-unused-imports': 'error',
'unused-imports/no-unused-vars': [
'warn',
{ vars: 'all', varsIgnorePattern: '^_', args: 'after-used', argsIgnorePattern: '^_' },
],
// https://github.com/prettier/eslint-plugin-prettier#installation
'prettier/prettier': 'error',
// https://github.com/marudor/eslint-plugin-sort-imports-es6-autofix#usage
'sort-imports-es6-autofix/sort-imports-es6': [
2,
{
ignoreCase: false,
ignoreMemberSort: false,
memberSyntaxSortOrder: ['none', 'all', 'multiple', 'single'],
},
],
},
};