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

eslint-config-mailonline

Package Overview
Dependencies
Maintainers
5
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-mailonline

MailOnline ESLint config.

  • 13.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
163
increased by8.67%
Maintainers
5
Weekly downloads
 
Created
Source

eslint-config-mailonline

NPM version

eslint-config-mailonline is a shared ESLint configuration used by MailOnline. This configuration includes rules for ES6, React, Jest, Lodash, and Webpack.

Prerequisites

  • Node.js v18.18 or higher

Installation

Add eslint-config-mailonline as a development dependency:

For npm users:

npm install eslint-config-mailonline --save-dev

For Yarn users:

yarn add eslint-config-mailonline --dev

Please note that there is no requirement to install stylelint independently in the parent package. This is because it is included as a dependency within this library and will be hoisted to the parent package.

Usage

Create ESLint configuration file (eslint.json) that extends eslint-config-mailonline:

{
  "extends": "mailonline",
}

Extended configs

The package also has separate entry points for some environments. Simply extend from the entry point as described below, either in a folder-specific eslint config, or additionally to the root config, e.g.:

module.exports = {
  "extends": [
    "mailonline",
    "mailonline/jest",
    "mailonline/react"
  ]
};

jest

module.exports = {
  "extends": "mailonline/jest"
};

react

module.exports = {
  "extends": "mailonline/react"
};

lodash

module.exports = {
  "extends": "mailonline/lodash"
};

webpack

module.exports = {
  "extends": "mailonline/webpack"
};

Breaking changes

Any changes to this package that might cause code using it to not validate anymore, will be a semver-major change.

Keywords

FAQs

Package last updated on 17 Jun 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