Skip to content

arnoudius/eslint-plugin-nodeca

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ESLint indentation check and other rules

Build Status NPM version

May be you know, that indentation check was removed from jshint 2.5.0, and not yet implemented in eslint. Now you can check code indentation again, with awesome eslint and this plugin.

install:

npm install eslint-plugin-nodeca --save

Then update .eslintrc from instruction below.

Indent rule

Params:

  • indent type - 'tabs' / 'spaces' (default - spaces)
  • indent size - 2 (default)

Config example (yaml):

# acivate plugin

plugins:
  - nodeca

# enable rules

rules:
  nodeca/indent: [ 2, spaces, 2 ]

  # If you are ok with defaults:
  #
  # nodeca/indent: 2

Other rules

Probably, you never need this ones. Those are for internal nodeca needs.

  • no-async-aliases - warn on deprecated methods in async module.
  • no-lodash-aliases - warn on deprecated methods in lodash module.
  • no-wire-anonymous - prohibit anon functions in event handlers of nodeca wire mediator.

Authors

License

MIT

About

Indentation check rule for ESLint

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%