-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy path.eslintrc.cjs
50 lines (50 loc) · 1.11 KB
/
.eslintrc.cjs
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
module.exports = {
env: {
es2021: true,
},
root: true,
plugins: [
'react',
'@typescript-eslint',
'react-native',
'react-hooks',
'prettier',
'simple-import-sort',
],
extends: [
'eslint:recommended',
'plugin:react/recommended',
'plugin:@typescript-eslint/strict-type-checked',
'plugin:react-native/all',
'plugin:react-hooks/recommended',
'plugin:prettier/recommended',
],
parser: '@typescript-eslint/parser',
parserOptions: {
project: true,
tsconfigRootDir: __dirname,
},
settings: {
react: {
version: 'detect',
},
},
overrides: [],
rules: {
'prettier/prettier': [
'error',
{
singleQuote: true,
useTabs: true,
semi: false,
},
],
'simple-import-sort/imports': 2,
'simple-import-sort/exports': 2,
'react-native/no-raw-text': 'off', // Cause issues with custom Text wrapper
'react/jsx-uses-react': 'off', // We have support for React 17 automatic runtime
'react/react-in-jsx-scope': 'off',
'react/no-unescaped-entities': 'off', // " yourself
'@typescript-eslint/no-var-requires': 'off', // We use require() for some dynamic imports and assets
},
}