This repository has been archived by the owner on Jan 5, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
101 lines (100 loc) · 2.94 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
89
90
91
92
93
94
95
96
97
98
99
100
101
const eslint = {
parser: '@typescript-eslint/parser',
extends: [
'airbnb',
'eslint:recommended',
'plugin:@typescript-eslint/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',
'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': [
'error',
'ignorePackages',
{
js: 'never',
jsx: 'never',
ts: 'never',
tsx: 'never',
},
],
'global-require': 'off',
'function-paren-newline': 'off',
'react/jsx-curly-newline': 'off',
'react/jsx-wrap-multilines': [
'error',
{ declaration: false, assignment: false },
],
'no-use-before-define': 'off',
'@typescript-eslint/no-use-before-define': ['error'],
'@typescript-eslint/ban-ts-comment': 'off',
'react/require-default-props': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
},
parserOptions: {
ecmaFeatures: {
jsx: true,
},
useJSXTextNode: true,
extraFileExtensions: ['.ts', '.tsx'],
},
settings: {
'import/resolver': {
node: {
paths: ['.'],
extensions: ['.js', '.jsx', '.ts', '.tsx'],
},
},
},
plugins: ['react', 'react-native', '@typescript-eslint'],
env: {
browser: true,
node: true,
jest: true,
},
};
module.exports = eslint;