This repository has been archived by the owner on Jul 1, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
88 lines (87 loc) · 2.66 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
const eslint = {
parser: '@typescript-eslint/parser',
extends: [
'airbnb',
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:prettier/recommended',
'prettier/@typescript-eslint',
],
rules: {
semi: 2,
'max-len': 'off',
'react/react-in-jsx-scope': 'off',
'react/jsx-no-bind': 'off',
'react/jsx-one-expression-per-line': 'off',
'react/destructuring-assignment': 'off',
'react/forbid-prop-types': 'off',
'react/prefer-stateless-function': 'off',
'react/no-danger': 'off',
'no-console': 'off',
'no-param-reassign': 'off',
'import/prefer-default-export': 'off',
'import/no-extraneous-dependencies': 'off',
'implicit-arrow-linebreak': 'off',
'object-curly-newline': 'off',
'react/jsx-closing-tag-location': 'off',
'no-restricted-syntax': 'off',
'operator-linebreak': 'off',
'arrow-body-style': 'off',
'jsx-a11y/anchor-is-valid': 'off',
'react/jsx-filename-extension': [
1,
{ extensions: ['.js', '.jsx', '.ts', '.tsx'] },
],
'no-underscore-dangle': 'off',
'@typescript-eslint/no-empty-function': 'off',
'@typescript-eslint/no-var-requires': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'react/jsx-props-no-spreading': 'off',
'jsx-a11y/html-has-lang': 'off',
'spaced-comment': 'off',
'@typescript-eslint/no-empty-interface': 'off',
'react/no-array-index-key': 'off',
'jsx-a11y/no-noninteractive-element-interactions': 'off',
'jsx-a11y/click-events-have-key-events': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'import/first': 'off',
'@typescript-eslint/camelcase': 'off',
'@typescript-eslint/ban-ts-ignore': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'jsx-a11y/label-has-associated-control': 'off',
'no-await-in-loop': 'off',
'react/no-did-update-set-state': 'off',
'no-continue': 'off',
'react/no-unescaped-entities': 'off',
'no-nested-ternary': 'off',
'import/extensions': 'off',
'newline-per-chained-call': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'react/require-default-props': 'off',
'react/jsx-curly-newline': 'off',
'react/prop-types': 'off',
'no-use-before-define': 'off',
},
parserOptions: {
ecmaFeatures: {
jsx: true,
},
useJSXTextNode: true,
extraFileExtensions: ['.ts', '.tsx'],
},
settings: {
'import/resolver': {
node: {
paths: ['.'],
extensions: ['.js', '.jsx', '.ts', '.tsx'],
},
},
},
plugins: ['react', '@typescript-eslint'],
env: {
browser: true,
node: true,
jest: true,
},
};
module.exports = eslint;