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

@haraka/eslint-config

Package Overview
Dependencies
Maintainers
5
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@haraka/eslint-config

eslint config for Haraka projects

  • 1.1.5
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
75
increased by141.94%
Maintainers
5
Weekly downloads
 
Created
Source

haraka-eslint

Build Status Code Climate

NPM

Install

In your Haraka module:

  1. Add to NPM dependencies:

npm install --save-dev @haraka/eslint-config

  1. Configure eslint:
cat  <<EOLINT > .eslintrc.yaml
env:
  node: true
  es6: true
  es2022: true
extends: "@haraka"
EOLINT
  1. Add to the "scripts" section of package.json:
"lint": "npx eslint@8 *.js test"
"lint:fix": "npx eslint@8 --fix *.js test"
  1. Within your CI workflow:

npm run lint

Usage

To check your project against lint rules:

npm run lint

Step #4 above does this automatically when CI tests are set up.

If you agree with the lint suggestions, you can run npm run lint:fix and the changes will be made to your files automatically.

Custom rules can be added to the .eslintrc file.

Keywords

FAQs

Package last updated on 23 Apr 2024

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