2.2.3 • Published 9 months ago

@mauricioromagnollo/eslint-config v2.2.3

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

@mauricioromagnollo/eslint-config

Publish Package npm-version downloads

My personal ESLint config used by React and Node.js projects based on Standard config.

Setup

Install the dependencies:

npm i -D eslint @mauricioromagnollo/eslint-config

Create a .eslintrc file extending the config:

You can also use a .eslintrc.js or .eslintrc.json if you prefer!

To React or Node.js project:

{
  "extends": "@mauricioromagnollo/eslint-config/"
}

Add an "lint" script in your package.json. Example:

"scripts": {
  "lint": "eslint \"{src,test}/**/*.{ts,js,tsx,jsx}\"",
  "lint:fix": "npm run lint -- --fix"
},

Visual Studio Code Settings (Optional)

If you're using Visual Studio Code, you can install ESLint extension and add this script in your settings.json:

"editor.codeActionsOnSave": {
  "source.fixAll.eslint": true,
},

Whats included?

  • Standard config base
  • React plugin
  • React Hooks plugin
  • JSX a11y plugin

References