-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy path.eslintrc.js
35 lines (29 loc) · 1.01 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
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',
'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/
},
};