@newhighsco/eslint-config

4.0.173 • Public • Published

eslint-config NPM version

New High Score shareable config for ESLint

Installation

Install ESLint and @newhighsco/eslint-config:

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

Prettier

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

Usage

New High Score ESLint rules come bundled in @newhighsco/eslint-config. To enable these rules, add an eslintConfig property in your package.json. See the ESLint configuration docs for more details.

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

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 --ignore-path .gitignore .",
  "format:js": "yarn lint:js --fix"
}

Lint it:

yarn lint:js

Format it:

yarn format:js

Readme

Keywords

none

Package Sidebar

Install

npm i @newhighsco/eslint-config

Weekly Downloads

688

Version

4.0.173

License

ISC

Unpacked Size

5.37 kB

Total Files

3

Last publish

Collaborators

  • benedfit
  • newhighsco-bot