@1f8/eslint-config-react 中文文档教程
ESlint Setup for 1F8
帮助您设计代码样式。 不相信有什么正确的方法,但这种方法符合我们的风格。
Instructions
# Gatsby
yarn add -D @1f8/eslint-config-react
cp node_modules/@1f8/eslint-config-react/.eslintignore .eslintignore
# React
cp node_modules/@1f8/eslint-config-react/.eslintignore .eslintignore
npx install-peerdeps -D @1f8/eslint-config-react
touch .eslintrc
/** .eslintrc */
{
"extends": ["@1f8/eslint-config-react"]
}
Debug
- If you have any typescript files that isn't being ignored, an error will be thrown if you dont have a typescript linter
ESlint Setup for 1F8
Helps you with styling your code. Don't believe there's any correct way, but this way fits our style.
Instructions
# Gatsby
yarn add -D @1f8/eslint-config-react
cp node_modules/@1f8/eslint-config-react/.eslintignore .eslintignore
# React
cp node_modules/@1f8/eslint-config-react/.eslintignore .eslintignore
npx install-peerdeps -D @1f8/eslint-config-react
touch .eslintrc
/** .eslintrc */
{
"extends": ["@1f8/eslint-config-react"]
}
Debug
- If you have any typescript files that isn't being ignored, an error will be thrown if you dont have a typescript linter