-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
30 lines (29 loc) · 860 Bytes
/
.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
process.env.ESLINT_TSCONFIG = 'tsconfig.json'
module.exports = {
extends: [
'@antfu',
'plugin:react/all',
'plugin:react/jsx-runtime',
],
plugins: ['react', 'unused-imports'],
parserOptions: { ecmaFeatures: { jsx: true } },
settings: { react: { version: 'detect' } },
rules: {
'react/jsx-filename-extension': 'off',
'react/jsx-indent': [2, 2],
'react/jsx-indent-props': [2, 2],
'react/jsx-closing-bracket-location': 'off',
'react/jsx-closing-tag-location': 'off',
'react/jsx-no-literals': 'off',
'react/jsx-max-depth': 'off',
'react/jsx-props-no-spreading': 'off',
'react/jsx-no-bind': [1, {
ignoreDOMComponents: false,
ignoreRefs: false,
allowArrowFunctions: true,
allowFunctions: true,
allowBind: false,
}],
'unused-imports/no-unused-imports': 'error',
},
}