This repository has been archived by the owner on Aug 23, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
65 lines (65 loc) · 2.05 KB
/
index.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
55
56
57
58
59
60
61
62
63
64
65
module.exports = {
extends: ['airbnb-typescript', 'plugin:@typescript-eslint/recommended', 'plugin:prettier/recommended'],
plugins: ['@typescript-eslint/eslint-plugin', 'react', 'react-hooks'],
parserOptions: {
ecmaFeatures: {
jsx: true,
},
},
ignorePatterns: ['**/*.generated.*', 'graphql-types.ts'],
rules: {
'@typescript-eslint/no-unused-vars': [
'warn',
{
vars: 'all',
varsIgnorePattern: '^(query|mutation|fragment|_)$',
},
],
'@typescript-eslint/dot-notation': 0,
'@typescript-eslint/no-implied-eval': 0,
'@typescript-eslint/no-throw-literal': 0,
'@typescript-eslint/no-use-before-define': 0,
'@typescript-eslint/lines-between-class-members': [
'error',
'always',
{ exceptAfterOverload: true, exceptAfterSingleLine: true },
],
'no-continue': 0,
'no-console': 'error',
'no-await-in-loop': 0,
'class-methods-use-this': 0,
'import/named': 2,
'import/no-named-as-default': 0,
'import/prefer-default-export': 0,
'import/extensions': 0,
'no-param-reassign': ['error', { props: true }],
'sort-keys': 0,
'max-classes-per-file': 0,
'no-underscore-dangle': 0,
'lines-between-class-members': 'off',
'@typescript-eslint/array-type': ['error', { default: 'array' }],
'@typescript-eslint/no-namespace': 0,
'@typescript-eslint/no-unused-expressions': 2,
'@typescript-eslint/interface-name-prefix': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'prettier/prettier': [
'error',
{
endOfLine: 'lf',
singleQuote: true,
trailingComma: 'all',
},
],
'no-plusplus': 'off',
'react-hooks/exhaustive-deps': [
'error',
{ enableDangerousAutofixThisMayCauseInfiniteLoops: true },
],
'react/jsx-uses-react': 'off',
'react/jsx-props-no-spreading': 'off',
'react/react-in-jsx-scope': 'off',
'react/prop-types': 'off',
},
};