eslint-config/packages/eslint-config-react/index.js

20 lines
322 B
JavaScript
Raw Permalink Normal View History

2020-08-12 19:24:32 +08:00
module.exports = {
extends: [
2020-08-12 20:08:06 +08:00
'plugin:react/recommended',
'plugin:react-hooks/recommended',
2020-08-12 19:24:32 +08:00
'@antfu/eslint-config-ts',
],
2021-03-13 21:09:53 +08:00
settings: {
react: {
2021-03-15 01:53:40 +08:00
version: '17.0',
2021-03-13 21:09:53 +08:00
},
},
2020-08-12 20:08:06 +08:00
rules: {
'jsx-quotes': [
'error',
'prefer-double',
],
'react/react-in-jsx-scope': 'off',
2020-08-12 20:08:06 +08:00
},
2020-08-12 19:24:32 +08:00
}