This repository was archived by the owner on Mar 6, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexample.eslintrc.js
139 lines (139 loc) · 4.13 KB
/
example.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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
module.exports = {
parser: '@typescript-eslint/parser',
parserOptions: {
project: './tsconfig.json',
ecmaFeatures: {
jsx: true,
},
},
env: {
browser: true,
jest: true,
},
extends: [
'airbnb',
'prettier',
'prettier/react',
'prettier/@typescript-eslint',
'plugin:@typescript-eslint/recommended',
'plugin:prettier/recommended',
],
plugins: ['@typescript-eslint', 'react-hooks', 'prettier'],
rules: {
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/indent': 'off',
'@typescript-eslint/explicit-member-accessibility': 'off',
'@typescript-eslint/member-delimiter-style': 'off',
'@typescript-eslint/no-use-before-define': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/camelcase': 'off',
'arrow-parens': [2, 'always'],
'arrow-body-style': 0,
'consistent-return': 0,
'css-modules/no-unused-class': 'off',
camelcase: 0,
'class-methods-use-this': 0,
'comma-dangle': 0,
'dot-notation': 0,
eqeqeq: 0,
'flowtype/no-types-missing-file-annotation': 0,
'func-names': 'off',
'import/prefer-default-export': 0,
'import/no-extraneous-dependencies': 'off',
'import/newline-after-import': 'off',
'import/first': 'off',
'import/no-extensions': 'off',
'import/extensions': 'off',
'import/no-unresolved': 'off',
'import/no-useless-path-segments': 0,
'import/no-absolute-path': 'off',
'jsx-a11y/html-has-lang': 0,
'jsx-a11y/alt-text': 0,
'jsx-a11y/anchor-is-valid': 'off',
'jsx-a11y/click-events-have-key-events': 'off',
'jsx-a11y/href-no-hash': 0,
'jsx-a11y/no-static-element-interactions': 0,
'jsx-a11y/no-noninteractive-element-interactions': 0,
'jsx-a11y/no-autofocus': 0,
'jsx-a11y/label-has-associated-control': 0,
'jsx-a11y/label-has-for': 0,
'jsx-quotes': ['error', 'prefer-double'],
'jsx-a11y/media-has-caption': 0,
'jsx-a11y/anchor-has-content': 0,
'linebreak-style': 0,
'max-len': 0,
'no-alert': 0,
'no-case-declarations': 0,
'no-underscore-dangle': 'off',
'no-useless-escape': 'off',
'no-trailing-spaces': 0,
'no-multi-assign': 'off',
'no-nested-ternary': 'off',
'no-lonely-if': 'off',
'no-plusplus': 'off',
'no-loop-func': 'off',
'no-unused-expressions': 0,
'no-unused-vars': 1,
'no-confusing-arrow': 0,
'no-use-before-define': 0,
'no-console': 0,
'no-return-assign': 0,
'no-restricted-properties': 0,
'no-param-reassign': 0,
'no-shadow': 0,
'no-prototype-builtins': 0,
'no-multiple-empty-lines': 0,
'no-else-return': 0,
'object-curly-spacing': ['error', 'always'],
'object-property-newline': 0,
'one-var': 0,
'one-var-declaration-per-line': 0,
'prettier/prettier': 0,
'padded-blocks': 0,
'prefer-template': 0,
'prefer-destructuring': 0,
quotes: 2,
'react-hooks/exhaustive-deps': 'warn',
'react-hooks/rules-of-hooks': 'error',
'react/no-multi-comp': 0,
'react/jsx-wrap-multilines': 0,
'react/default-props-match-prop-types': 'off',
'react/no-find-dom-node': 'off',
'react/destructuring-assignment': 'off',
'react/jsx-no-bind': 'off',
'react/jsx-filename-extension': [
'error',
{
extensions: ['.js', '.jsx', '.ts', '.tsx'],
},
],
'react/react-in-jsx-scope': 0,
'react/prop-types': 0,
'react/forbid-prop-types': 0,
'react/no-children-prop': 0,
'react/no-array-index-key': 0,
'react/prefer-stateless-function': 'off',
'react/sort-comp': 0,
'react/no-unescaped-entities': 0,
'react/jsx-no-bind': 0,
'react/no-unused-state': 1,
'react/no-unused-prop-types': 0,
'react/jsx-pascal-case': 0,
'react/no-danger': 0,
'react/require-default-props': 0,
'react/jsx-curly-spacing': 0,
'react/jsx-max-props-per-line': 1,
'space-in-parens': ['error', 'never'],
'spaced-comment': 0,
'space-infix-ops': 0,
'space-unary-ops': 0,
'space-before-function-paren': 0,
},
settings: {
'import/resolver': {
node: {
moduleDirectory: ['node_modules', 'src'],
},
},
},
}