@44north/eslint-config 中文文档教程
@44North ESLint Config
标准的 44 North ESLint 配置。
为 Prettier 和 TypeScript 设置 Jest 和 Jest Extended。
Install
yarn add eslint @44north/eslint-config @typescript-eslint/eslint-plugin @typescript-eslint/parser eslint-config-prettier eslint-plugin-html eslint-plugin-import eslint-plugin-jest eslint-plugin-jest-extended eslint-plugin-jsx-a11y eslint-plugin-prettier eslint-plugin-react eslint-plugin-react-hooks prettier --dev
Configure
// .eslintrc.json
{
"extends": ["@44north"]
}
Recommended ESLint Ignore
build
coverage
*.db
*.log
*.lock
*.json
docs
node_modules
public
prettier.config.js
@44North ESLint Config
The standard 44 North ESLint Configuration.
Setup for Prettier and TypeScript with Jest and Jest Extended.
Install
yarn add eslint @44north/eslint-config @typescript-eslint/eslint-plugin @typescript-eslint/parser eslint-config-prettier eslint-plugin-html eslint-plugin-import eslint-plugin-jest eslint-plugin-jest-extended eslint-plugin-jsx-a11y eslint-plugin-prettier eslint-plugin-react eslint-plugin-react-hooks prettier --dev
Configure
// .eslintrc.json
{
"extends": ["@44north"]
}
Recommended ESLint Ignore
build
coverage
*.db
*.log
*.lock
*.json
docs
node_modules
public
prettier.config.js