-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
35 lines (35 loc) · 916 Bytes
/
.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,
env: {
es2022: true,
},
extends: ['@react-native'],
ignorePatterns: ['docs/**'],
plugins: ['sonarjs', 'simple-import-sort', 'eslint-plugin-react-compiler'],
parserOptions: {
ecmaVersion: 2022,
},
globals: { inlineRequire: 'readonly', tw: 'readonly' },
rules: {
'no-undef': 'error',
semi: [2, 'never'],
'no-console': 'error',
// '@typescript-eslint/consistent-type-imports': 'error',
'no-duplicate-imports': 'error',
'@typescript-eslint/no-import-type-side-effects': 'error',
'simple-import-sort/imports': 'error',
'simple-import-sort/exports': 'error',
'react-compiler/react-compiler': 'error',
},
overrides: [
{
files: ['scripts/*', '*.config.js', '*.test.ts'],
env: {
node: true,
},
rules: {
'no-console': 'off',
},
},
],
}