forked from tophat/yarn-plugin-licenses
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
41 lines (41 loc) · 1.1 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
39
40
41
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint', 'prettier'],
extends: [
'plugin:@typescript-eslint/recommended',
'@tophat/eslint-config/base',
'@tophat/eslint-config/jest',
'prettier',
],
rules: {
'no-empty': 'off',
'no-unused-vars': 'off', // covered by typescript eslint
'import/named': 'off',
'import/order': [
'error',
{
alphabetize: { order: 'asc' },
'newlines-between': 'always',
groups: [
'unknown',
'builtin',
'external',
'internal',
'parent',
'sibling',
'index',
],
},
],
},
ignorePatterns: ['.*', '**/*.js', 'lib'],
settings: {
'import/parsers': {
'@typescript-eslint/parser': ['.ts', '.js'],
},
'import/resolver': {
typescript: './tsconfig.json',
},
},
}