Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@shferreira/eslint-config-mailbutler

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@shferreira/eslint-config-mailbutler

ESLint rules used in Mailbutler's internal codebases

  • 1.0.0
  • unpublished
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

eslint-config-mailbutler

These are our ESLint rules for internal projects.

Installation

You can use eslint globally and/or locally per project.

It's better to install this locally, once per project. That way you can have project specific settings, and also sync those settings with other developers working in the same repository.

Local Installation

  1. If you don't already have a package.json file, create one with npm init.

  2. Install the required ESLint packages:

npx install-peerdeps --dev eslint-config-mailbutler

The required dependencies will be now visible in your package.json.

  1. Create a .eslintrc or .eslintrc.js file in the root of your project's directory (it should live where package.json does).

If you're using a .eslintrc, it should look like this:

{
  "extends": [
    "mailbutler"
  ]
}

If you're using a .eslintrc.js, that's how it should be:

module.exports = {
  "extends": [
    "mailbutler"
  ]
};

Tip: You can also put the JSON object in your package.json under the key "eslintConfig":. That will allow you to have one less file.

  1. Add those two scripts to your package.json for convenience:
"scripts": {
  "lint": "eslint .",
  "lint:fix": "eslint . --fix"
},
  1. Run ESLint by calling npm run lint. Fix issues with npm run lint:fix.

Keywords

FAQs

Package last updated on 30 Jun 2020

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