forked from FraBle/codeartifact-auth
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
42 lines (42 loc) · 1016 Bytes
/
.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
module.exports = {
env: {
browser: true,
node: true,
},
globals: {
__dirname: 'readonly',
__filename: 'readonly',
},
settings: {
'import/resolver': {
node: {
extensions: ['.js', '.jsx', '.ts', '.tsx'],
},
},
},
parserOptions: {
project: 'tsconfig.json',
sourceType: 'module',
},
plugins: ['@typescript-eslint', '@typescript-eslint/tslint'],
rules: {
complexity: ['error', 5],
'no-console': ['off'],
'node/no-missing-import': [
'error',
{
allowModules: [],
resolvePaths: ['node_modules', './src', './tests'],
tryExtensions: ['.js', '.jsx', '.ts', '.tsx'],
},
],
'@typescript-eslint/no-unused-vars': 'off',
'@typescript-eslint/no-explicit-any': 'error',
'@typescript-eslint/explicit-function-return-type': 'error',
},
extends: [
'@mondopower/eslint-config-mondo',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
],
}