Socket
Socket
Sign inDemoInstall

eslint-plugin-nodeca

Package Overview
Dependencies
0
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    eslint-plugin-nodeca

Custom eslint rules, used in Nodeca projects.


Version published
Weekly downloads
171
decreased by-25.97%
Maintainers
1
Install size
21.4 kB
Created
Weekly downloads
 

Readme

Source

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

Keywords

FAQs

Last updated on 27 Oct 2014

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc