-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
47 lines (47 loc) · 1.21 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
42
43
44
45
46
47
/* eslint-disable @stylistic/max-len */
module.exports = {
ignorePatterns: ['docs', 'build', 'import-library'],
parser: '@typescript-eslint/parser',
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:import/recommended',
'plugin:import/typescript',
'prettier',
],
plugins: ['@typescript-eslint', 'import', '@stylistic'],
root: true,
settings: {
'import/resolver': {
typescript: true,
node: true,
},
},
env: {
node: true,
jest: true,
},
rules: {
'@stylistic/max-len': ['warn', { code: 100, comments: 140 }],
'import/order': [
'error',
{
alphabetize: {
order: 'asc',
},
'newlines-between': 'always',
warnOnUnassignedImports: true,
},
],
'import/no-unresolved': ['error'],
// @see https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-unused-vars.md#options
'no-unused-vars': 'off', // you must disable the base rule as it can report incorrect errors
'@typescript-eslint/no-unused-vars': [
'error',
{
argsIgnorePattern: '^_',
ignoreRestSiblings: true,
},
],
},
};