1.0.1 • Published 10 months ago
@mosmmy/eslint-config v1.0.1
ESLint Configurations
This package provides shared ESLint configurations for Node.js and React Native projects.
Installation
# Using npm
npm install -D @mosmmy/eslint-config
# Using yarn
yarn add -D @mosmmy/eslint-config
# Using pnpm
pnpm add -D @mosmmy/eslint-configConfigurations
Node.js Configuration
Add the following to your .eslintrc.json or .eslintrc.js:
{
"extends": ["@mosmmy/eslint-config/node"]
}React Native Configuration
Add the following to your .eslintrc.json or .eslintrc.js:
{
"extends": ["@mosmmy/eslint-config/react-native"]
}VS Code Integration
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
}
}Licence
This project is governed by the MIT. Just remember to be a nice person and send back any modifications, corrections or improvements. ✌️
Author
| @moser-jose |
|---|
1.0.1
10 months ago