-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
39 lines (38 loc) · 1.09 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
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint', 'import', 'prettier'],
extends: [
'airbnb-base',
'airbnb-typescript',
'plugin:react/jsx-runtime',
'plugin:@typescript-eslint/recommended',
'plugin:@typescript-eslint/recommended-requiring-type-checking',
'plugin:prettier/recommended',
'prettier/prettier'
],
parserOptions: {
tsconfigRootDir: __dirname,
project: ['./tsconfig.json']
},
rules: {
'import/prefer-default-export': 'off',
'@typescript-eslint/unbound-method': 'off',
// codelens does this for us
'@typescript-eslint/lines-between-class-members': 'off'
},
overrides: [
// non production code is more relaxed
{
files: ['*.spec.ts'],
rules: {
'no-console': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'import/no-extraneous-dependencies': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'no-underscore-dangle': 'off',
'@typescript-eslint/naming-convention': 'off'
}
}
]
};