-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
31 lines (31 loc) · 1.04 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
module.exports = {
env: {
jest: true,
},
extends: ['@react-native-community', 'plugin:import/recommended', 'plugin:react-native-a11y/all'],
plugins: ['module-resolver', 'testing-library'],
parser: 'babel-eslint',
root: true,
rules: {
'comma-dangle': ['error', 'only-multiline'],
'import/newline-after-import': 'error',
'import/order': 'error',
'module-resolver/use-alias': 'error',
'no-console': 'warn',
'testing-library/await-async-query': 'error',
'testing-library/await-async-utils': 'error',
'testing-library/no-await-sync-events': 'error',
'testing-library/no-await-sync-query': 'error',
'testing-library/no-unnecessary-act': 'error',
'testing-library/no-wait-for-empty-callback': 'error',
'testing-library/no-wait-for-multiple-assertions': 'error',
'testing-library/no-wait-for-snapshot': 'error',
'testing-library/prefer-find-by': 'warn',
},
settings: {
'import/ignore': ['node_modules/react-native/index\\.js$'],
'import/resolver': {
'babel-module': {},
},
},
};