Skip to content

Commit bc9eb5c

Browse files
authored
Merge pull request #33 from brettz9/meta-type
2 parents b173b3c + b9efd40 commit bc9eb5c

File tree

5 files changed

+9
-6
lines changed

5 files changed

+9
-6
lines changed

README.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ ESlint Rules for the Standard Linter
2020
### Configuration
2121

2222
```js
23-
{
23+
module.exports = {
2424
rules: {
25-
'standard/object-curly-even-spacing': [2, "either"],
26-
'standard/array-bracket-even-spacing': [2, "either"],
27-
'standard/computed-property-even-spacing': [2, "even"],
28-
'standard/no-callback-literal': [2, ["cb", "callback"]]
25+
'standard/object-curly-even-spacing': [2, 'either'],
26+
'standard/array-bracket-even-spacing': [2, 'either'],
27+
'standard/computed-property-even-spacing': [2, 'even'],
28+
'standard/no-callback-literal': [2, ['cb', 'callback']]
2929
}
3030
}
3131
```
@@ -38,4 +38,3 @@ There are several rules that were created specifically for the `standard` linter
3838
- `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.
3939
- `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.
4040
- `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.
41-

rules/array-bracket-even-spacing.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
module.exports = {
1616
meta: {
17+
type: 'layout',
1718
docs: {
1819
url: 'https://github.com/standard/eslint-plugin-standard#rules-explanations'
1920
}

rules/computed-property-even-spacing.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
module.exports = {
1313
meta: {
14+
type: 'layout',
1415
docs: {
1516
url: 'https://github.com/standard/eslint-plugin-standard#rules-explanations'
1617
}

rules/no-callback-literal.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ function couldBeError (node) {
4949

5050
module.exports = {
5151
meta: {
52+
type: 'suggestion',
5253
docs: {
5354
url: 'https://github.com/standard/eslint-plugin-standard#rules-explanations'
5455
}

rules/object-curly-even-spacing.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
module.exports = {
1616
meta: {
17+
type: 'layout',
1718
docs: {
1819
url: 'https://github.com/standard/eslint-plugin-standard#rules-explanations'
1920
}

0 commit comments

Comments
 (0)