-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
125 lines (121 loc) · 3.47 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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
module.exports = {
env: {
browser: true,
es6: true,
jest: true
},
extends: [
'eslint:recommended',
'plugin:import/recommended',
'plugin:react/recommended',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
],
globals: {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly',
},
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaFeatures: {
jsx: true
},
project: './tsconfig.json',
ecmaVersion: 2018,
sourceType: 'module',
},
settings: {
react: {
version: 'detect'
}
},
plugins: [
'react',
'@typescript-eslint',
'react-hooks'
],
rules: {
'semi': 0,
'eqeqeq': [1, 'always'],
'quotes': [1, 'single'],
'jsx-quotes': [2, 'prefer-double'],
'no-undef': 0,
'no-console': 1,
'no-unused-vars': 0,
'no-mixed-operators': [1,
{
'allowSamePrecedence': true
}
],
'eol-last': [2, 'always'],
'no-confusing-arrow': 0,
'arrow-parens': [2, 'always'],
'arrow-spacing': ['error', { 'before': true, 'after': true }],
'arrow-body-style': [2, 'as-needed'],
'no-extra-parens': 0,
'no-param-reassign': 0,
'prefer-template': 0,
'prefer-promise-reject-errors': 0,
'no-script-url': 0,
'no-unused-expressions': 0,
'comma-dangle': 1,
'import/prefer-default-export': 0,
'import/no-useless-path-segments': 1,
'import/no-unresolved': 0,
'import/no-extraneous-dependencies': 0,
'import/no-named-as-default': 0,
'import/no-duplicates': 0,
'import/order': 0,
'import/newline-after-import': 1,
'import/no-named-as-default-member': 0,
'import/namespace': 0,
'import/named': 0,
'jsx-a11y/anchor-is-valid': 0,
'jsx-a11y/click-events-have-key-events': 0,
'jsx-a11y/no-static-element-interactions': 0,
'jsx-a11y/label-has-for': 0,
'jsx-a11y/iframe-has-title': 0,
'jsx-a11y/control-has-associated-label': 0,
'react/jsx-wrap-multilines': [ 2,
{
'declaration': 'parens-new-line',
'assignment': 'parens-new-line',
'return': 'parens-new-line',
'arrow': 'ignore',
'condition': 'ignore',
'logical': 'ignore',
'prop': 'ignore'
}
],
'react/jsx-filename-extension': 0,
'react/jsx-indent': 0,
'react/jsx-boolean-value': 0,
'react/jsx-closing-tag-location': 0,
'react/jsx-closing-bracket-location': 0,
'react/button-has-type': 0,
'react/prop-types': 0,
'react/jsx-tag-spacing': 0,
'react/jsx-one-expression-per-line': 0,
'react/jsx-curly-spacing': [2, 'never'],
'react/no-access-state-in-setstate': 0,
'react/destructuring-assignment': 0,
'react/jsx-no-bind': 0,
'react/require-default-props': 0,
'react/display-name': 0,
'react/jsx-first-prop-new-line': 0,
'react/jsx-props-no-spreading': 0,
'react/static-property-placement': 0,
'react/state-in-constructor': 0,
'@typescript-eslint/semi': ['warn', 'always'],
'@typescript-eslint/indent': 0,
'@typescript-eslint/camelcase': 0,
'@typescript-eslint/explicit-function-return-type': 0,
'@typescript-eslint/no-non-null-assertion': 0,
'@typescript-eslint/member-delimiter-style': 0,
'@typescript-eslint/no-unused-vars': 0,
'@typescript-eslint/no-use-before-define': 0,
'@typescript-eslint/no-explicit-any': 0,
'@typescript-eslint/explicit-member-accessibility': 0,
'@typescript-eslint/no-angle-bracket-type-assertion': 0
},
};