-
Notifications
You must be signed in to change notification settings - Fork 272
/
Copy patheslint.config.mjs
51 lines (50 loc) · 1.3 KB
/
eslint.config.mjs
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
51
import tseslint from 'typescript-eslint';
import callstackConfig from '@callstack/eslint-config/react-native.flat.js';
import simpleImportSort from 'eslint-plugin-simple-import-sort';
export default [
{
ignores: [
'flow-typed/',
'build/',
'experiments-rtl/',
'website/',
'eslint.config.mjs',
'jest-setup.ts',
],
},
...callstackConfig,
...tseslint.configs.strict,
{
plugins: {
'simple-import-sort': simpleImportSort,
},
rules: {
'simple-import-sort/imports': [
'error',
{
groups: [['^\\u0000', '^react', '^@?\\w', '^', '^\\.']],
},
],
},
},
{
rules: {
'no-console': 'error',
'import/order': 'off',
'@typescript-eslint/consistent-type-imports': 'error',
},
},
{
files: ['**/*.test.{ts,tsx}', 'src/test-utils/**'],
rules: {
'react/no-multi-comp': 'off',
'react-native/no-color-literals': 'off',
'react-native/no-inline-styles': 'off',
'react-native/no-raw-text': 'off',
'react-native-a11y/has-valid-accessibility-descriptors': 'off',
'react-native-a11y/has-valid-accessibility-ignores-invert-colors': 'off',
'react-native-a11y/has-valid-accessibility-value': 'off',
'@typescript-eslint/no-explicit-any': 'off',
},
},
];