-
Notifications
You must be signed in to change notification settings - Fork 0
/
typescript.js
43 lines (43 loc) · 1.05 KB
/
typescript.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
module.exports = {
extends: [
'eslint:recommended',
'plugin:react/recommended',
'airbnb',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
],
plugins: [
'react',
'@typescript-eslint',
'jest',
],
rules: {
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/member-delimiter-style': ['error', {
'multiline': {
'delimiter': 'semi',
'requireLast': true
},
'singleline': {
'delimiter': 'semi',
'requireLast': false
}
}],
'@typescript-eslint/no-empty-function': 'off',
'@typescript-eslint/no-use-before-define': 'off',
'curly': ['warn', 'multi-line'],
'import/extensions': ['error', { json: 'always' }],
'import/no-extraneous-dependencies': ['error'],
'import/no-unresolved': 'off',
'no-shadow': ['off'],
'react/jsx-filename-extension': [
1,
{
extensions: [
'.tsx',
]
}
],
'react/require-default-props': ['off'],
},
};