-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
40 lines (40 loc) · 1.36 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
module.exports = {
extends: [
'@mobile-reality/eslint-config/react-typescript',
'plugin:prettier/recommended',
],
rules: {
'@typescript-eslint/no-explicit-any': 'off',
'unicorn/prefer-node-protocol': 'off',
'unicorn/text-encoding-identifier-case': 'off',
'line-comment-position': 'off',
'no-inline-comments': 'off',
'prefer-destructuring': ['error', { object: true, array: false }],
'unicorn/prefer-query-selector': 'warn',
'unicorn/filename-case': 'off',
'@typescript-eslint/consistent-type-imports': 'off',
'unicorn/expiring-todo-comments': 'off',
'@typescript-eslint/no-throw-literal': 'off',
'@typescript-eslint/prefer-nullish-coalescing': 'off',
'@typescript-eslint/no-floating-promises': 'off',
radix: 'warn',
'@typescript-eslint/require-await': 'off',
'@typescript-eslint/prefer-optional-chain': 'warn',
'unicorn/prefer-logical-operator-over-ternary': 'off',
'unicorn/no-useless-undefined': 'off',
'react/react-in-jsx-scope': 'off',
},
settings: {
react: {
version: 'detect',
},
},
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 'latest',
sourceType: 'module',
tsconfigRootDir: __dirname,
},
};