-
Notifications
You must be signed in to change notification settings - Fork 34
/
Copy path.eslintrc.js
37 lines (30 loc) · 1.05 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
module.exports = {
root: true,
extends: ['eslint:recommended', '@react-native', 'prettier'],
plugins: ['eslint-plugin-react-compiler'],
rules: {
//FIXME: fix warnings reported by this rule and increase the severity to 'error'
'no-irregular-whitespace': 'warn',
//FIXME: fix warnings reported by this rule and increase the severity to 'error'
'no-case-declarations': 'warn',
//FIXME: fix warnings reported by this rule and increase the severity to 'error'
'no-async-promise-executor': 'warn',
'no-prototype-builtins': 'warn',
'react-compiler/react-compiler': 'warn',
// Allow inline styles
'react-native/no-inline-styles': 'off',
"react/react-in-jsx-scope": "off",
'sort-imports': [
'warn',
{
ignoreCase: false,
ignoreDeclarationSort: true,
ignoreMemberSort: false,
allowSeparatedGroups: true,
},
],
'prettier/prettier': 'off',
// Stylistic rules are deprecated in eslint v8.54.0
// and should be added via prettier or https://eslint.style/
},
};