-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
45 lines (45 loc) · 1.31 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
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
env: {
es6: true,
node: true
},
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
'plugin:import/errors',
'plugin:import/warnings',
'plugin:import/typescript',
'plugin:prettier/recommended'
],
parserOptions: {
ecmaVersion: 2020,
sourceType: 'module',
ecmaFeatures: {},
tsconfigRootDir: __dirname,
project: 'tsconfig.json'
},
plugins: ['import', 'simple-import-sort', '@typescript-eslint', 'prettier'],
rules: {
'prettier/prettier': ['error', {}, { usePrettierrc: true }],
'@typescript-eslint/no-non-null-assertion': 0,
'@typescript-eslint/no-explicit-any': 0,
'@typescript-eslint/explicit-function-return-type': [
'error',
{
allowTypedFunctionExpressions: true
}
],
'@typescript-eslint/no-use-before-define': 0,
'@typescript-eslint/camelcase': 0,
'@typescript-eslint/explicit-module-boundary-types': ['error', { allowArgumentsExplicitlyTypedAsAny: true }],
'sort-imports': 0,
'import/order': 0,
'import/no-unresolved': 0,
'simple-import-sort/imports': 'error',
curly: ['error', 'all'],
'@typescript-eslint/restrict-plus-operands': 'error'
}
};