eslint-config/packages/react/index.js
max ae904df91e
feat(react): rules of hooks (#117)
Co-authored-by: nnmax <hi.max@foxemail.com>
2022-09-19 10:24:45 +08:00

20 lines
322 B
JavaScript

module.exports = {
extends: [
'plugin:react/recommended',
'plugin:react-hooks/recommended',
'@antfu/eslint-config-ts',
],
settings: {
react: {
version: '17.0',
},
},
rules: {
'jsx-quotes': [
'error',
'prefer-double',
],
'react/react-in-jsx-scope': 'off',
},
}