Socket
Socket
Sign inDemoInstall

eslint-config-scanjs

Package Overview
Dependencies
136
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    eslint-config-scanjs

umbrella config to get scanjs-like functionality from eslint


Version published
Weekly downloads
348
decreased by-8.9%
Maintainers
1
Install size
18.2 MB
Created
Weekly downloads
 

Readme

Source

ScanJS Rules through ESLint.

If you want to get something like ScanJS using ESLint. This is the config file.

Install

npm -g install
* cp -v .eslintrc ~/.scanjs-eslintrc

Running

cd project-to-scan/
eslint --no-eslintrc -c ~/.scanjs-eslintrc .

Usage within IntelliJ IDEs (WebStorm, PyCharm etc.)

  1. Open the Settings dialog and navigate to Languages & Frameworks → JavaScript → Code Quality Tools → ESLint.
  2. Enable ESLint and make sure your settings match your installation: Use a globally installed eslint package, the installer will place this in /usr/lib/node_modules/eslint or usr/local/lib/node_modules/eslint.
  3. Supply the config path ~/.scanjs-eslintrc
  4. Reset the default rules, by providing extra eslint options, so we only use the provided config. This disables the default eslint rules, which check for coding style, not security: --no-eslintrc -c ~/.scanjs-eslintrc .

Keywords

FAQs

Last updated on 27 Jul 2017

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