forked from cds-snc/covid-alert-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
46 lines (46 loc) · 1.19 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 = {
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',
'no-extend-native': 'off',
'max-params': 'off',
'@typescript-eslint/ban-ts-ignore': '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',
'privacypolicy.js',
'privacypolicy-*.js',
],
};