New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

eslint-config-leonardopn

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-leonardopn

Eslint config for personal projects created by me :)

  • 1.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

eslint-config-leonardopn

This is a ESLint config for my personal projects based on eslint-config-rocketseat

Whats included?

  • Standard config base;
  • React plugin(Changed by me);
  • React Hooks plugin;
  • JSX a11y plugin;
  • Prettier(changed by me);

Setup

  1. Install the dependencies
npm i -D eslint eslint-config-leonardopn
  1. Create a .eslintrc.json file extending the config:
{
  "extends": "eslint-config-leonardopn/react"
}

You can also use a .eslintrc.js instead of JSON if you prefer.

if you use VsCode prettier formatter

  1. (Optional) Create a .prettierrc.js file extending the config:
const prettier = require("eslint-config-leonardopn/prettier");

module.exports = prettier;

You can override the default prettier file, but update also the file .eslintrc.js for prevent incompatibility between rules Eslint.

Example:

//.prettierrc.js
const prettier = require("eslint-config-leonardopn/prettier");

module.exports = {
  ...prettier,
  semi: false,
};
//.eslintrc.js
module.exports = {
  extends: ["eslint-config-leonardopn/react"],
  rules: {
   "prettier/prettier": ["error", { semi: false }],
  },
};

License

This ESlint config is licensed by MIT License - LICENSE for more details.

FAQs

Package last updated on 21 May 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc