Skip to content

Commit 120117f

Browse files
authored
Merge pull request #185 from brettz9/meta-type
Meta type
2 parents 5bffa17 + 9a159d8 commit 120117f

14 files changed

+14
-0
lines changed

rules/always-return.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ function peek(arr) {
5656

5757
module.exports = {
5858
meta: {
59+
type: 'problem',
5960
docs: {
6061
url: getDocsUrl('always-return')
6162
}

rules/avoid-new.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ const getDocsUrl = require('./lib/get-docs-url')
99

1010
module.exports = {
1111
meta: {
12+
type: 'suggestion',
1213
docs: {
1314
url: getDocsUrl('avoid-new')
1415
}

rules/catch-or-return.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ const isPromise = require('./lib/is-promise')
1111

1212
module.exports = {
1313
meta: {
14+
type: 'problem',
1415
docs: {
1516
url: getDocsUrl('catch-or-return')
1617
},

rules/no-callback-in-promise.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ const isCallback = require('./lib/is-callback')
1212

1313
module.exports = {
1414
meta: {
15+
type: 'suggestion',
1516
docs: {
1617
url: getDocsUrl('no-callback-in-promise')
1718
},

rules/no-native.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ function isDeclared(scope, ref) {
2121

2222
module.exports = {
2323
meta: {
24+
type: 'suggestion',
2425
docs: {
2526
url: getDocsUrl('no-native')
2627
},

rules/no-nesting.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ const isInsidePromise = require('./lib/is-inside-promise')
1111

1212
module.exports = {
1313
meta: {
14+
type: 'suggestion',
1415
docs: {
1516
url: getDocsUrl('no-nesting')
1617
}

rules/no-new-statics.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ const getDocsUrl = require('./lib/get-docs-url')
55

66
module.exports = {
77
meta: {
8+
type: 'problem',
89
docs: {
910
url: getDocsUrl('no-new-statics')
1011
},

rules/no-promise-in-callback.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ const isInsideCallback = require('./lib/is-inside-callback')
1111

1212
module.exports = {
1313
meta: {
14+
type: 'suggestion',
1415
docs: {
1516
url: getDocsUrl('no-promise-in-callback')
1617
}

rules/no-return-in-finally.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ const isPromise = require('./lib/is-promise')
55

66
module.exports = {
77
meta: {
8+
type: 'problem',
89
docs: {
910
url: getDocsUrl('no-return-in-finally')
1011
}

rules/no-return-wrap.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ function isInPromise(context) {
3737

3838
module.exports = {
3939
meta: {
40+
type: 'suggestion',
4041
docs: {
4142
url: getDocsUrl('no-return-wrap')
4243
},

0 commit comments

Comments
 (0)