-
Notifications
You must be signed in to change notification settings - Fork 36
/
.eslintrc-front.js
49 lines (49 loc) · 1.57 KB
/
.eslintrc-front.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
module.exports = {
env: {
browser: true,
es2021: true,
},
extends: ['./.eslintrc.js', 'plugin:react/recommended'],
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 'latest',
sourceType: 'module',
project: './tsconfig.json',
},
plugins: ['react', 'react-native', '@typescript-eslint', 'prettier'],
rules: {
'prettier/prettier': 'error',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/prefer-nullish-coalescing': 'off',
'@typescript-eslint/strict-boolean-expressions': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'react-native/no-inline-styles': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'@typescript-eslint/restrict-template-expressions': 'off',
eqeqeq: 'off',
'@typescript-eslint/naming-convention': 'off',
'no-unreachable': 'off',
'@typescript-eslint/no-var-requires': 'off',
'@typescript-eslint/no-confusing-void-expression': 'off',
'@typescript-eslint/no-floating-promises': 'off',
'@typescript-eslint/no-misused-promises': 'off',
'import/no-duplicates': 'off',
'multiline-ternary': 'off',
'no-dupe-keys': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'array-callback-return': 'off',
'@typescript-eslint/array-callback-return': 'off',
'no-empty': 'off',
'operator-linebreak': 'off',
'@typescript-eslint/await-thenable': 'off',
'@typescript-eslint/prefer-optional-chain': 'off',
'@typescript-eslint/return-await': 'off',
},
settings: {
react: {
version: 'detect',
},
},
};