To unify the design of ESLint and use it in all related projects
yarn add -D eslint prettier jest @lad-tech/eslint-config
-
Create 2 files
.eslintignore
and.eslintrc.js
-
All files that do not need to be formatted are added to
.eslintignore
It usually consists of the following files/directories:
.idea
ios
android
node_modules
assets
*.md
*.config.js
- Add to
eslintrc.js
:
module.exports = {
extends: [
'@lad-tech/eslint-config',
],
};