Socket
Book a DemoInstallSign in
Socket

@stackbit/eslint-config

Package Overview
Dependencies
Maintainers
9
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stackbit/eslint-config

Stackbit's shareable config for ESLint

latest
Source
npmnpm
Version
1.2.1
Version published
Maintainers
9
Created
Source

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

FAQs

Package last updated on 25 Dec 2019

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