eslint-config-standards

1.0.0 • Public • Published

eslint-config-standard

Commitizen friendly

Features

Installation

The default export contains all default Airbnb ESLint rules, including ECMAScript 6+, and the ones listed below. It requires some peerDependencies as well.

Install the package with

npm install eslint-config-standard --save-dev

# or
yarn add eslint-config-standard -D

Then install the correct versions of each peerDependency package, which are listed by the command:

npm info "eslint-config-standard@latest" peerDependencies

If using npm 5+, use this shortcut:

npx install-peerdeps --dev eslint-config-standard

# or
yarn add eslint-config-standard -D --peer

Usage

Now add the config to either your package.json:

{
  "eslintConfig": {
    "extends": "eslint-config-standard"
  }
}

to your .eslintrc:

{
  "extends": "eslint-config-standard"
}

or .eslintrc.js:

module.exports = {
  extends: 'eslint-config-standard',
}

Assumptions

This ESLint configuration comes with some fundamental assumptions:

  • browser and/or node environment
  • parser: babel (used babel-eslint parser)

LICENCE

MIT

Maintainers

Stefan Natter

Package Sidebar

Install

npm i eslint-config-standards

Weekly Downloads

27

Version

1.0.0

License

ISC

Unpacked Size

8.38 kB

Total Files

5

Last publish

Collaborators

  • alexgonrod