1.0.1 • Published 10 months ago

@mosmmy/eslint-config v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

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-config

Configurations

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:

  1. ESLint
  2. 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