1
0
Fork 0
arangodb/js/node/node_modules/eslint-plugin-standard
Alan Plum cf302adf26
Always use --global-style when installing npm deps
This partially reverts commit 8a286a30d9.
2016-07-14 16:29:20 +02:00
..
rules We are now using semistandard and eslint 2016-06-29 18:27:02 +02:00
tests We are now using semistandard and eslint 2016-06-29 18:27:02 +02:00
.eslintrc We are now using semistandard and eslint 2016-06-29 18:27:02 +02:00
.npmignore We are now using semistandard and eslint 2016-06-29 18:27:02 +02:00
LICENSE We are now using semistandard and eslint 2016-06-29 18:27:02 +02:00
README.md We are now using semistandard and eslint 2016-06-29 18:27:02 +02:00
index.js We are now using semistandard and eslint 2016-06-29 18:27:02 +02:00
package.json Always use --global-style when installing npm deps 2016-07-14 16:29:20 +02:00

README.md

eslint-plugin-standard

ESlint Rules for the Standard Linter

Usage

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

Configuration

{
  rules: {
    'standard/object-curly-even-spacing': [2, "either"]
    'standard/array-bracket-even-spacing': [2, "either"],
    'standard/computed-property-even-spacing': [2, "even"]
  }
}

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.