-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.js
84 lines (84 loc) · 2.51 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
module.exports = {
root: true,
extends: '@react-native-community',
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint', 'import'],
overrides: [
{
files: ['*.ts', '*.tsx'],
rules: {
curly: 'off',
'no-unused-expressions': 'off',
'react/require-default-props': 'off',
'react/jsx-filename-extension': [
'warn',
{
extensions: ['.jsx', '.js', '.ts', '.tsx'],
},
],
'import/extensions': [
'error',
'ignorePackages',
{
js: 'never',
jsx: 'never',
ts: 'never',
tsx: 'never',
},
],
'import/no-extraneous-dependencies': [
'error',
{
devDependencies: true,
},
],
'import/prefer-default-export': 'off',
'import/order': 'off',
'react/state-in-constructor': 'off',
'react/static-property-placement': 'off',
'react/jsx-props-no-spreading': 'off',
'react/prop-types': 'off',
'no-param-reassign': 'off',
'no-console': 'off',
'no-use-before-define': 'off',
'global-require': 0,
'no-shadow': 'off',
'prettier/prettier': [
'warn',
{
printWidth: 100,
endOfLine: 'auto',
},
],
'consistent-return': 'off',
'default-case': 'off',
'no-unused-vars': 'off',
'unused-imports/no-unused-imports': 'off',
'arrow-body-style': 'off',
'@typescript-eslint/no-unused-vars': ['error'],
'no-empty-function': 'off',
'@typescript-eslint/no-empty-function': ['off'],
'explicit-module-boundary-types': 'off',
'@typescript-eslint/explicit-module-boundary-types': ['off'],
'ban-types': 'off',
'@typescript-eslint/ban-types': ['off'],
'@typescript-eslint/ban-ts-ignore': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'no-underscore-dangle': 'off',
'react/jsx-no-bind': 'off',
'react/function-component-definition': [
2,
{
namedComponents: 'arrow-function',
unnamedComponents: 'arrow-function',
},
],
'react/no-unstable-nested-components': 'off',
'lines-between-class-members': 'off',
camelcase: 'off',
'react/jsx-no-constructed-context-values': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
},
},
],
};