Socket
Socket
Sign inDemoInstall

eslint-plugin-standard

Package Overview
Dependencies
88
Maintainers
10
Versions
22
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-standard

ESlint Plugin for the Standard Linter


Version published
Maintainers
10
Weekly downloads
1,102,879
decreased by-2.22%
Bundle size
1.7 kB
Minified + gzipped

Weekly downloads

Readme

Source

eslint-plugin-standard travis npm downloads javascript style guide

Deprecated: This package isn't used by standard anymore, as of standard v16. See: https://github.com/standard/standard/issues/1316

ESlint Rules for the Standard Linter

Usage

npm install --save-dev eslint-plugin-standard

Configuration

module.exports = {
  rules: {
    'standard/object-curly-even-spacing': [2, 'either'],
    'standard/array-bracket-even-spacing': [2, 'either'],
    'standard/computed-property-even-spacing': [2, 'even'],
    'standard/no-callback-literal': [2, ['cb', 'callback']]
  }
}

Rules Explanations

There are several rules that were created specifically for the standard linter.

  • object-curly-even-spacing - Like object-curly-spacing from ESLint except it has an either option which lets you have 1 or 0 spaces padding.
  • array-bracket-even-spacing - Like array-bracket-even-spacing from ESLint except it has an either option which lets you have 1 or 0 spacing padding.
  • computed-property-even-spacing - Like computed-property-spacing around ESLint except is has an even option which lets you have 1 or 0 spacing padding.
  • no-callback-literal - Ensures that we strictly follow the callback pattern with undefined, null or an error object in the first position of a callback.

Keywords

FAQs

Last updated on 23 Nov 2020

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