eslint-config-mailonline

MailOnline ESLint config.

BSD-3-Clause 31 个版本
安装
npm install eslint-config-mailonline
yarn add eslint-config-mailonline
pnpm add eslint-config-mailonline
bun add eslint-config-mailonline
README

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.

版本列表
13.0.2 2024-06-17
13.0.1 2024-06-17
13.0.0 2024-05-02
12.0.1 2024-04-19
12.0.0 2024-04-18
11.0.0 2024-04-17
10.0.0 2021-09-15
9.0.2 2021-09-14
9.0.1 2020-02-12
9.0.0 2017-11-20
8.1.1 2017-11-20
8.1.0 2017-11-14
8.0.0 2017-10-23
7.1.2 2017-10-05
7.1.1 2017-09-11
7.1.0 2017-07-28
7.0.1 2017-06-30
7.0.0 2017-06-30
6.1.0 2016-12-24
6.0.0 2016-11-28
5.0.1 2016-11-28
5.0.0 2016-11-28
3.2.1 2016-11-28
3.2.0 2016-11-28
3.1.0 2016-11-01
3.0.0 2016-10-31
2.0.0 2016-10-24
1.0.3 2016-10-17
1.0.2 2016-07-25
1.0.1 2016-07-25
1.0.0 2016-07-25