@newhighsco/eslint-config
v7.0.23
Published
New High Score shareable config for ESLint
Readme
eslint-config 
New High Score shareable config for ESLint
Installation
Install ESLint and @newhighsco/eslint-config:
npm install --save-dev eslint @newhighsco/eslint-configPrettier
@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 eslint.config.js at the root of your project. See the ESLint configuration docs for more details.
// `eslint.config.js`
import config from '@newhighsco/eslint-config'
import { defineConfig } from 'eslint/config'
export default defineConfig([{ extends: [config] }])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 .",
"format:js": "yarn lint:js --fix"
}Lint it:
yarn lint:jsFormat it:
yarn format:js