@stackbit/eslint-config

1.2.1 • Public • Published

eslint-config NPM version

Stackbit's shareable config for ESLint

Installation

Install ESLint and @stackbit/eslint-config:

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

Prettier

@stackbit/eslint-config should be used in conjunction with Prettier. See the @stackbit/prettier-config installation guide for more details.

Usage

Stackbit's ESLint rules come bundled in @stackbit/eslint-config. To enable these rules, add an eslintConfig property in your package.json. See the ESLint configuration docs for more details.

"eslintConfig": {
  "extends": ["@stackbit"]
}

Now you can run ESLint by adding the following scripts to your package.json. See the ESLint CLI docs for more details.

"scripts": {
  "lint:js": "eslint --cache --ext .js,.jsx .",
  "format:js": "npm run lint:js -- --fix"
}

Lint it:

npm run lint:js

Format it:

npm run format:js

CHANGELOG

LICENSE

Readme

Keywords

none

Package Sidebar

Install

npm i @stackbit/eslint-config

Weekly Downloads

4

Version

1.2.1

License

MIT

Unpacked Size

5.16 kB

Total Files

5

Last publish

Collaborators

  • bwwhite
  • bob_netlify
  • noahcrowley-netlify
  • greglobinski
  • seancdavis
  • merlyn_at_netlify
  • cmparsons
  • suzanneaitchison
  • ryanbonial
  • stackbitjoe
  • arseny.gurevich
  • smnh
  • tomasb
  • rodikh
  • berdav
  • stackbit-admin
  • vitaliyr
  • denar90
  • youvalv