eslint-plugin-nodeca
Custom eslint rules, used in Nodeca projects.
Last updated 12 years ago by vitaly .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install eslint-plugin-nodeca 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.0.3                                ...           latest (12 years ago)

4 Versions

  • 1.0.3                                ...           12 years ago
  • 1.0.2                                ...           12 years ago
  • 1.0.1                                ...           12 years ago
  • 1.0.0                                ...           12 years ago
Maintainers (1)
Downloads
Total 16
Today 0
This Week 3
This Month 11
Last Day 0
Last Week 0
Last Month 1
Dependencies (0)
None
Dev Dependencies (4)
Dependents (0)
None

© 2010 - cnpmjs.org x YWFE | Home | YWFE