This package provides shared ESLint configurations for Node.js and React Native projects.
# Using npm
npm install -D @mosmmy/eslint-config
# Using yarn
yarn add -D @mosmmy/eslint-config
# Using pnpm
pnpm add -D @mosmmy/eslint-config
Add the following to your .eslintrc.json
or .eslintrc.js
:
{
"extends": ["@mosmmy/eslint-config/node"]
}
Add the following to your .eslintrc.json
or .eslintrc.js
:
{
"extends": ["@mosmmy/eslint-config/react-native"]
}
For the best experience, install these VS Code extensions:
- ESLint
- Prettier
Add these settings to your VS Code settings:
{
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
}
}
This project is governed by the MIT. Just remember to be a nice person and send back any modifications, corrections or improvements. ✌️
@moser-jose |
---|