@neo9/n9-coding-style

6.1.0 • Public • Published

Neo9 coding style

ESLint coding style inspired from Airbnb coding style.

⚠️ Drop NodeJS 14 support stating with version 5

Usage

yarn add @neo9/n9-coding-style --dev

Add a .eslintrc.yaml file in the root directory.

extends:
  - './node_modules/@neo9/n9-coding-style/.eslintrc.yaml'

Add a lint script to your package.json :

{
  ...
  "lint": "eslint --config .eslintrc.yaml '{src,test}/**/*.ts'",
  ...
}

Example of usage :

Auto fix errors

EsLint can sometimes auto fix errors. You can use the local binary.

npx eslint --fix '{src,test}/**/*.ts'

Readme

Keywords

Package Sidebar

Install

npm i @neo9/n9-coding-style

Weekly Downloads

123

Version

6.1.0

License

GPL-3.0-or-later

Unpacked Size

50.6 kB

Total Files

24

Last publish

Collaborators

  • cribeiron9
  • n9-dsabatier
  • fmarion
  • benjd90
  • cballesta
  • mrskyce