0.0.19 • Published 3 months ago
@brucesong/eslint-config-react-native v0.0.19
@brucesong/eslint-config-react-native
Features
- Suitable for React Native + TypeScript projects
- Based on Airbnb JavaScript Style
import
、export
auto sort- Resolving conflicts between
ESLint
andPrettier
- Support storybook
- Support using in Turborepo
- Support defining
ESLINT_TSCONFIG
in the env to specify thetsconfig.json
file path used by ESLint - Auto check
tsconfig.json
、tsconfig.eslint.json
file in the project root directory
About checking the priority of tsconfig
- If
ESLINT_TSCONFIG
is defined in the env, use the path specified in the env - If
tsconfig.eslint.json
exists in the project root directory, use this file - If
tsconfig.json
exists in the project root directory, use this file
Usage
Install
pnpm add -D eslint @brucesong/eslint-config-react-native
Config .eslintrc.json
{
"extends": "@brucesong/eslint-config-react-native"
}
Add script for package.json
{
"scripts": {
"lint": "eslint .",
"lint:fix": "eslint . --fix"
}
}
Config VSCode auto fix
{
"editor.codeActionsOnSave": {
"source.fixAll": false,
"source.fixAll.eslint": true,
"source.organizeImports": false
}
}
License
MIT License © 2023 Bruce Song
0.0.19
3 months ago
0.0.18
3 months ago
0.0.17
5 months ago
0.0.16
5 months ago
0.0.15
6 months ago
0.0.14
6 months ago
0.0.13
6 months ago
0.0.12
6 months ago
0.0.11
6 months ago
0.0.10
7 months ago
0.0.9
7 months ago
0.0.8
7 months ago
0.0.7
7 months ago
0.0.6
8 months ago
0.0.5
8 months ago
0.0.4
8 months ago
0.0.3
8 months ago
0.0.2
8 months ago