@cgnal/eslint-config

0.2.1 • Public • Published

CGnal ESLint rules

NPM version Build Status

Linting rules for CGnal's JavaScript projects.

Installation

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

The package requires the following peer dependencies:

Usage

Add the rulesets you want in the extends section of your ESLint configuration file.

e.g. to use both JS and React's rules:

// ...

extends: [
    "@cgnal/eslint-config/js",
    "@cgnal/eslint-config/react"
]

// ...

npm scripts

  • npm run bump updates version number using an interactive shell
  • npm run check validates all rules and performs the linting check
  • npm run check-js validates JS rules
  • npm run check-react validates React rules
  • npm run check-rules validates all rules
  • npm run lint performs the linting check

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.2.1
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.2.1
    1
  • 0.2.0
    0
  • 0.1.1
    0
  • 0.1.0
    0

Package Sidebar

Install

npm i @cgnal/eslint-config

Weekly Downloads

1

Version

0.2.1

License

MIT

Unpacked Size

13.4 kB

Total Files

9

Last publish

Collaborators

  • gabrielearici
  • andrea.scartabelli