🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

eslint-plugin-nodeca

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
e

eslint-plugin-nodeca

Custom eslint rules, used in Nodeca projects.

1.0.3
latest
75

Supply Chain Security

100

Vulnerability

89

Quality

76

Maintenance

100

License

Version published
Weekly downloads
1.8K
339.6%
Maintainers
1
Weekly downloads
 
Created
Issues
1

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

FAQs

Package last updated on 27 Oct 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts