@leohxj/eslint-config-dawn-react
v1.0.12
Published
no react-a11y rules.
Downloads
3
Readme
eslint-config-dawn-react
no react-a11y rules.
使用说明
ES
通常编译 JSX 使用的是 babel, 所以我们依赖 babel-eslint eslint-plugin-babel
.
npm i -D eslint eslint-plugin-import babel-eslint eslint-plugin-babel eslint-plugin-react eslint-plugin-react-hook
npm i -D @leohxj/eslint-config-dawn-react
{
"extends": [
"@leohxj/eslint-config-dawn-react"
]
}
TS
TS:
npm i -D eslint eslint-plugin-import @typescript-eslint/parser @typescript-eslint/eslint-plugin eslint-plugin-react eslint-plugin-react-hooks
npm i -D @leohxj/eslint-config-dawn-react
{
"extends": [
"@leohxj/eslint-config-dawn-react/typescript"
]
}
with prettier
npm i prettier eslint-plugin-prettier eslint-config-prettier -D
ES:
{
"extends": [
"@leohxj/eslint-config-dawn-react",
"plugin:prettier/recommended",
"prettier/babel",
"prettier/react"
]
}
TS:
{
"extends": [
"@leohxj/eslint-config-dawn-react/typescript",
"plugin:prettier/recommended",
"prettier/@typescript-eslint",
"prettier/react"
]
}