@newlevelup/eslint-config

1.0.80 • Public • Published

New Level Up shareable config for ESLint

Installation

💡 The purpose of eslint is to lint javascript and typescript files such that it conforms your organization practice. Its also performs automated scans of your files for common syntax, style errors and potential organization based code rule violations.

Install ESLint and @newlevelup/eslint-config:

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

Prettier

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

Usage

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

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

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

Package Sidebar

Install

npm i @newlevelup/eslint-config

Weekly Downloads

3

Version

1.0.80

License

ISC

Unpacked Size

5.31 kB

Total Files

3

Last publish

Collaborators

  • newlevelup