Skip to content

Commit d812210

Browse files
committed
Fix avajs#211: add the new rule 'meta.type' property
1 parent 2958c0a commit d812210

26 files changed

+26
-0
lines changed

rules/assertion-arguments.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ const schema = [{
150150
module.exports = {
151151
create,
152152
meta: {
153+
type: 'problem',
153154
docs: {
154155
url: util.getDocsUrl(__filename)
155156
},

rules/assertion-message.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ const schema = [{
6868
module.exports = {
6969
create,
7070
meta: {
71+
type: 'suggestion',
7172
docs: {
7273
url: util.getDocsUrl(__filename, '4211212daf1bfcfff3ebc5d4efdc4ba1a87acbf1')
7374
},

rules/max-asserts.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ const schema = [{
6565
module.exports = {
6666
create,
6767
meta: {
68+
type: 'suggestion',
6869
docs: {
6970
url: util.getDocsUrl(__filename)
7071
},

rules/no-async-fn-without-await.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ const create = context => {
5151
module.exports = {
5252
create,
5353
meta: {
54+
type: 'problem',
5455
docs: {
5556
url: util.getDocsUrl(__filename)
5657
},

rules/no-cb-test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ const create = context => {
2424
module.exports = {
2525
create,
2626
meta: {
27+
type: 'suggestion',
2728
docs: {
2829
url: util.getDocsUrl(__filename)
2930
},

rules/no-duplicate-modifiers.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ const create = context => {
4545
module.exports = {
4646
create,
4747
meta: {
48+
type: 'problem',
4849
docs: {
4950
url: util.getDocsUrl(__filename)
5051
},

rules/no-identical-title.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ const create = context => {
6262
module.exports = {
6363
create,
6464
meta: {
65+
type: 'suggestion',
6566
docs: {
6667
url: util.getDocsUrl(__filename)
6768
},

rules/no-ignored-test-files.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ const schema = [{
102102
module.exports = {
103103
create,
104104
meta: {
105+
type: 'problem',
105106
docs: {
106107
url: util.getDocsUrl(__filename)
107108
},

rules/no-import-test-files.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ const schema = [{
9090

9191
module.exports = {
9292
create,
93+
type: 'problem',
9394
meta: {
9495
docs: {
9596
url: util.getDocsUrl(__filename)

rules/no-invalid-end.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ const create = context => {
2828
module.exports = {
2929
create,
3030
meta: {
31+
type: 'problem',
3132
docs: {
3233
url: util.getDocsUrl(__filename)
3334
},

rules/no-nested-tests.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ const create = context => {
3333
module.exports = {
3434
create,
3535
meta: {
36+
type: 'problem',
3637
docs: {
3738
url: util.getDocsUrl(__filename)
3839
},

rules/no-only-test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ const create = context => {
3232
module.exports = {
3333
create,
3434
meta: {
35+
type: 'problem',
3536
docs: {
3637
url: util.getDocsUrl(__filename)
3738
},

rules/no-skip-assert.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ const create = context => {
2323

2424
module.exports = {
2525
create,
26+
type: 'problem',
2627
meta: {
2728
docs: {
2829
url: util.getDocsUrl(__filename)

rules/no-skip-test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ const create = context => {
3232
module.exports = {
3333
create,
3434
meta: {
35+
type: 'problem',
3536
docs: {
3637
url: util.getDocsUrl(__filename)
3738
},

rules/no-statement-after-end.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ const create = context => {
9393
module.exports = {
9494
create,
9595
meta: {
96+
type: 'problem',
9697
docs: {
9798
url: util.getDocsUrl(__filename)
9899
},

rules/no-todo-implementation.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ const create = context => {
2424
module.exports = {
2525
create,
2626
meta: {
27+
type: 'problem',
2728
docs: {
2829
url: util.getDocsUrl(__filename)
2930
},

rules/no-todo-test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ const create = context => {
2424
module.exports = {
2525
create,
2626
meta: {
27+
type: 'suggestion',
2728
docs: {
2829
url: util.getDocsUrl(__filename)
2930
},

rules/no-unknown-modifiers.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ const create = context => {
4343
module.exports = {
4444
create,
4545
meta: {
46+
type: 'problem',
4647
docs: {
4748
url: util.getDocsUrl(__filename)
4849
},

rules/prefer-async-await.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ const create = context => {
5151
module.exports = {
5252
create,
5353
meta: {
54+
type: 'suggestion',
5455
docs: {
5556
url: util.getDocsUrl(__filename)
5657
},

rules/prefer-power-assert.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ const create = context => {
8282
module.exports = {
8383
create,
8484
meta: {
85+
type: 'suggestion',
8586
docs: {
8687
url: util.getDocsUrl(__filename)
8788
},

rules/test-ended.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ const create = context => {
4343
module.exports = {
4444
create,
4545
meta: {
46+
type: 'problem',
4647
docs: {
4748
url: util.getDocsUrl(__filename)
4849
},

rules/test-title.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ const schema = [{
4545
module.exports = {
4646
create,
4747
meta: {
48+
type: 'suggestion',
4849
docs: {
4950
url: util.getDocsUrl(__filename)
5051
},

rules/use-t-well.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ const create = context => {
105105
module.exports = {
106106
create,
107107
meta: {
108+
type: 'problem',
108109
docs: {
109110
url: util.getDocsUrl(__filename)
110111
},

rules/use-t.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ const create = context => {
4040
module.exports = {
4141
create,
4242
meta: {
43+
type: 'suggestion',
4344
docs: {
4445
url: util.getDocsUrl(__filename)
4546
},

rules/use-test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ const create = context => ({
4040
module.exports = {
4141
create,
4242
meta: {
43+
type: 'suggestion',
4344
docs: {
4445
url: util.getDocsUrl(__filename)
4546
},

rules/use-true-false.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ const create = context => {
8787
module.exports = {
8888
create,
8989
meta: {
90+
type: 'suggestion',
9091
docs: {
9192
url: util.getDocsUrl(__filename)
9293
},

0 commit comments

Comments
 (0)