Skip to content

Commit 8b3d7ba

Browse files
committed
- Add meta.type
1 parent 832399f commit 8b3d7ba

24 files changed

+91
-12
lines changed

src/rules/checkAlignment.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,8 @@ export default iterateJsdoc(({
2323
break;
2424
}
2525
}
26+
}, {
27+
meta: {
28+
type: 'layout'
29+
}
2630
});

src/rules/checkExamples.js

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -188,9 +188,14 @@ export default iterateJsdoc(({
188188
);
189189
});
190190
});
191-
}, {returns: [
192-
'ArrowFunctionExpression',
193-
'ClassDeclaration',
194-
'FunctionDeclaration',
195-
'FunctionExpression'
196-
]});
191+
}, {
192+
meta: {
193+
type: 'suggestion'
194+
},
195+
returns: [
196+
'ArrowFunctionExpression',
197+
'ClassDeclaration',
198+
'FunctionDeclaration',
199+
'FunctionExpression'
200+
]
201+
});

src/rules/checkIndentation.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,8 @@ export default iterateJsdoc(({
1111
if (reg.test(text)) {
1212
report('There must be no indentation.');
1313
}
14+
}, {
15+
meta: {
16+
type: 'layout'
17+
}
1418
});

src/rules/checkParamNames.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,4 +100,8 @@ export default iterateJsdoc(({
100100
}
101101

102102
validateParameterNamesDeep(targetTagName, jsdocParameterNamesDeep, report);
103+
}, {
104+
meta: {
105+
type: 'suggestion'
106+
}
103107
});

src/rules/checkSyntax.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,8 @@ export default iterateJsdoc(({
1414
break;
1515
}
1616
}
17+
}, {
18+
meta: {
19+
type: 'suggestion'
20+
}
1721
});

src/rules/checkTagNames.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ export default iterateJsdoc(({
2424
});
2525
}, {
2626
meta: {
27-
fixable: 'code'
27+
fixable: 'code',
28+
type: 'suggestion'
2829
}
2930
});

src/rules/checkTypes.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ export default iterateJsdoc(({
6161
});
6262
}, {
6363
meta: {
64-
fixable: 'code'
64+
fixable: 'code',
65+
type: 'suggestion'
6566
}
6667
});

src/rules/implementsOnClasses.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,8 @@ export default iterateJsdoc(({
1515
}
1616

1717
report('@implements used on a non-constructor function');
18+
}, {
19+
meta: {
20+
type: 'suggestion'
21+
}
1822
});

src/rules/matchDescription.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,8 @@ export default iterateJsdoc(({
4949

5050
return validateDescription(description, tag.tag);
5151
});
52+
}, {
53+
meta: {
54+
type: 'suggestion'
55+
}
5256
});

src/rules/newlineAfterDescription.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ export default iterateJsdoc(({
5555
}
5656
}, {
5757
meta: {
58-
fixable: 'whitespace'
58+
fixable: 'whitespace',
59+
type: 'layout'
5960
}
6061
});

0 commit comments

Comments
 (0)