1.0.0 • Published 7 years ago

eslint-config-novoda v1.0.0

Weekly downloads
2
License
Apache-2.0
Repository
github
Last release
7 years ago

eslint-config-novoda

Shared ESLint rules for Novoda NodeJS projects tested with Jasmine.

How to install

$ npm install --save-dev eslint-config-novoda

How to use

In your project folder, create .eslintrc.json file with the following content:

{
    "extends": "eslint-config-novoda"
}

Running eslint from that folder will apply the shared Novoda rules.

You can still customise some rules by changing your .eslintrc.json.

Default rules

  • ES6 is enabled by default
  • The project is assumed to be a NodeJS project
  • Jasmine globals are automatically accepted
  • Only single quotes are accepted
  • Semi-colons are mandatory
  • Proper spacing between keywords is enforced
  • Braces must be followed by a new line
  • const must be used anywhere the variable never changes
  • Indentation must be with 4 spaces
  • Triple equals === must always be used