• Stars
    star
    124
  • Rank 277,885 (Top 6 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created almost 9 years ago
  • Updated 8 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

ESlint Rules for the Standard Linter

eslint-plugin-standard travis npm downloads javascript style guide

Deprecated: This package isn't used by standard anymore, as of standard v16. See: standard/standard#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.

More Repositories

1

standard

๐ŸŒŸ JavaScript Style Guide, with linter & automatic code fixer
JavaScript
28,824
star
2

eslint-config-standard

ESLint Config for JavaScript Standard Style
TypeScript
2,546
star
3

semistandard

๐Ÿฆ All the goodness of `standard/standard` with semicolons sprinkled on top.
JavaScript
1,383
star
4

eslint-config-standard-react

ESLint Shareable Config for React/JSX support in JavaScript Standard Style
JavaScript
453
star
5

ts-standard

Typescript style guide, linter, and formatter using StandardJS
JavaScript
428
star
6

snazzy

Format JavaScript Standard Style as Stylish (i.e. snazzy) output
JavaScript
420
star
7

awesome-standard

Documenting the explosion of packages in the standard ecosystem!
383
star
8

standardx

๐Ÿ’ฅ JavaScript Standard Style with custom tweaks
JavaScript
144
star
9

standard-engine

๐Ÿš’ The guts of `standard` modularized for reuse
JavaScript
144
star
10

vscode-standard

VS Code extension for JavaScript Standard Style (`standard`) with automatic fixing
TypeScript
119
star
11

eslint-config-standard-jsx

ESLint Shareable Config for JSX support in JavaScript Standard Style
JavaScript
102
star
12

standard-loader

webpack loader for linting your code with https://github.com/feross/standard
JavaScript
68
star
13

eslint-config-semistandard

๐Ÿ’ฏ semistandard eslint sharable config
JavaScript
61
star
14

atom-standardjs-snippets

โšก A collection of JavaScript snippets for Atom, Standard Style
CoffeeScript
48
star
15

deglob

๐Ÿ“‚ Take a list of glob patterns and return an array of file locations, respecting `.gitignore` and allowing for ignore patterns via `package.json`.
JavaScript
39
star
16

atom-standard-formatter

Atom package to format code using Javascript Standard Style.
JavaScript
35
star
17

standard-packages

List of packages that use `standard`
JavaScript
33
star
18

standard-www

๐Ÿ‘† Website for JavaScript Standard Style (@standard)
CSS
30
star
19

standard-json

๐Ÿ”›Format JavaScript Standard Style output to a JSON array.
JavaScript
21
star
20

standard-tap

๐Ÿšฐ Format JavaScript Standard Style as TAP output
JavaScript
17
star
21

brackets-standard

Brackets extension for standard, a simple linter with sensible defaults. No longer maintained, Try using https://github.com/zaggino/brackets-eslint and https://github.com/feross/eslint-config-standard
JavaScript
10
star
22

.github

9
star
23

standard-demo

๐Ÿฐ Web demo of JavaScript Standard Style (Work In Progress)
JavaScript
9
star
24

standardizer

๐Ÿ’ซ A tiny service to lint and format JavaScript code using JavaScript Standard Style.
JavaScript
8
star