• Stars
    star
    125
  • Rank 286,335 (Top 6 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created over 9 years ago
  • Updated about 1 year 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
29,036
star
2

eslint-config-standard

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

semistandard

🍦 All the goodness of `standard/standard` with semicolons sprinkled on top.
JavaScript
1,407
star
4

eslint-config-standard-react

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

ts-standard

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

snazzy

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

awesome-standard

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

standard-engine

πŸš’ The guts of `standard` modularized for reuse
JavaScript
146
star
9

standardx

πŸ’₯ JavaScript Standard Style with custom tweaks
JavaScript
145
star
10

vscode-standard

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

eslint-config-standard-jsx

ESLint Shareable Config for JSX support in JavaScript Standard Style
JavaScript
103
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
63
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
40
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