-
Notifications
You must be signed in to change notification settings - Fork 62
/
.eslintrc.js
46 lines (45 loc) · 1.18 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
38
39
40
41
42
43
44
45
46
module.exports = {
root: true,
extends: [
'@react-native',
'plugin:import/typescript',
'plugin:jest/recommended',
],
parser: '@typescript-eslint/parser',
plugins: [
'import',
],
rules: {
'prettier/prettier': 0,
'@typescript-eslint/no-shadow': 'warn', //TODO: must be an error
'@typescript-eslint/no-unused-vars': ['error', {'vars': 'local', 'args': 'none'}],
'arrow-spacing': 'error',
'constructor-super': 'error',
'jest/no-disabled-tests': 'warn',
'jest/no-focused-tests': 'error',
'jest/no-identical-title': 'error',
'jest/prefer-to-have-length': 'warn',
'jest/valid-expect': 'error',
'no-console': 'error',
'no-const-assign': 'error',
'no-debugger': 'error',
'no-dupe-class-members': 'error',
'no-shadow': 'off',
'no-this-before-super': 'error',
'no-trailing-spaces': 0,
'no-undef': 'off',
'no-useless-escape': 'off',
'no-var': 'error',
'prefer-const': 'error',
'prefer-spread': 'error',
'prefer-template': 'error',
'quotes': ['error', 'single', {'allowTemplateLiterals': true}],
},
env: {
es6: true,
jest: true,
},
globals: {
AbortController: true,
},
};