This repository has been archived by the owner on Jun 24, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 106
/
.eslintrc.js
54 lines (54 loc) · 1.58 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
47
48
49
50
51
52
53
54
module.exports = {
extends: [
'@react-native-community',
'plugin:@shopify/typescript',
'plugin:@shopify/react',
'plugin:@shopify/jest',
'plugin:@shopify/prettier',
],
parserOptions: {
ecmaVersion: 6,
},
rules: {
'no-warning-comments': 'off',
'no-process-env': 'off',
'import/no-cycle': 'off',
'react/jsx-no-bind': 'off',
'@shopify/jest/no-vague-titles': 'off',
'@shopify/jsx-no-complex-expressions': 'off',
'import/no-named-as-default': 'off',
'@shopify/images-no-direct-imports': 'off',
'@shopify/jest/no-snapshots': 'off',
'no-console': 'error',
camelcase: 'off',
'jest/no-test-callback': 'off',
'@typescript-eslint/class-name-casing': 'off',
'@typescript-eslint/camelcase': 'off',
'no-extend-native': 'off',
'react/jsx-no-constructed-context-values': 'off',
'max-params': 'off',
'eslint-comments/no-unlimited-disable': 'off',
'@typescript-eslint/ban-ts-ignore': 'off',
'@typescript-eslint/ban-types': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'jest/no-conditional-expect': 'off',
'react/no-unused-prop-types': 'off',
'max-len': [
'error',
{
code: 200,
},
],
'react-hooks/rules-of-hooks': 'error',
'react-hooks/exhaustive-deps': 'warn',
'jsx-a11y/no-autofocus': 'off',
'jest/no-try-expect': 'off',
},
ignorePatterns: [
'**/node_modules',
'**/services/BackendService/covidshield/*.d.ts',
'**/services/BackendService/covidshield/*.js',
'**/translations/index.js',
'**/translations/regional/index.js',
],
};