-
Notifications
You must be signed in to change notification settings - Fork 39
/
.eslintrc.js
69 lines (69 loc) · 1.93 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
// .eslintrc.js
module.exports = {
env: {
es2021: true,
},
extends: [
'standard-with-typescript',
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'prettier',
],
overrides: [
{
env: {
node: true,
},
files: ['.eslintrc.{js,cjs,jsx,ts,tsx}'],
parserOptions: {
sourceType: 'script',
},
},
],
ignorePatterns: [
'.eslintrc.js',
'**/node_modules/**',
'**/dist/**',
'**/build/**',
'**/types/**',
'**/public/**',
'babel.config.js',
],
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',
},
};