Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eslint-config-adjunct

Package Overview
Dependencies
Maintainers
1
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-adjunct

A midly opinionated collection of the best lesser known esLint plugins that every project should include

  • 0.0.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3.1K
increased by64.36%
Maintainers
1
Weekly downloads
 
Created
Source

eslint-config-adjunct

A mildly opinionated collection of the best lesser known esLint plugins that every project can benefit from.

This config is designed to be used alongside any of the major esLint configs, such as airbnb, standard or xo. It provides a range of extra rules to enhance the linting of your code.

Install

To run this config you will need to install it along with it's peerDependancies.

npx install-peerdeps --dev eslint-config-adjunct

If you have problems with the above command, then you will need to run install-peerdeps locally.

npm install -g install-peerdeps
install-peerdeps --dev eslint-config-adjunct

Configure

Extend your .eslintrc, with adjunct, which should be the last item in the extends array. For example if your using eslint-config-airbnb as your main rule set, your .eslintrc should look like this:

{
  "extends": ["airbnb", "adjunct"]
}

You can now include html and markdown in the list of files passed to esLint to have any contained JavaScript linted.

Plugins

This configuration contains the following esLint plugins.

  • eslint-plugin-eslint-comments
  • eslint-plugin-html
  • eslint-plugin-markdown
  • eslint-plugin-no-constructor-bind
  • eslint-plugin-no-use-extend-native
  • eslint-plugin-promise
  • eslint-plugin-simple-import-sort
  • eslint-plugin-sonarjs
  • eslint-plugin-switch-case
  • eslint-plugin-unicon

Rules

In the most part the default rules are used for the plugins listed above, with the following exceptions.

Markdown

When linting code snippets in Markdown files, a few rules to relating to globals and unused vars are disabled.

Switch-Case

Enforces a blank line between case blocks.

// Good

switch (foo) {
  case: 1
    something()
    break

  case: 2
  case: 3
    somethingElse()

  default:
    anotherThing()
}

License

Copyright © 2019 David J. Bradshaw. Licensed under the MIT License.

Keywords

FAQs

Package last updated on 26 Feb 2019

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc