enforce eslint check-tag-names to avoid using jsdoc tags that are not supported in Typescript
This commit is contained in:
parent
30e747a55d
commit
a1aa5cbdce
17
.eslintrc.js
17
.eslintrc.js
|
@ -58,7 +58,22 @@ module.exports = {
|
|||
"node/no-unpublished-bin": "error",
|
||||
"node/no-unpublished-require": "error",
|
||||
"node/process-exit-as-throw": "error",
|
||||
"jsdoc/require-hyphen-before-param-description": ["error", "never"]
|
||||
"jsdoc/require-hyphen-before-param-description": ["error", "never"],
|
||||
"jsdoc/check-tag-names": "error"
|
||||
},
|
||||
settings: {
|
||||
jsdoc: {
|
||||
// supported tags https://github.com/microsoft/TypeScript-wiki/blob/master/JSDoc-support-in-JavaScript.md
|
||||
tagNamePreference: {
|
||||
...(['implements', 'const', 'memberof', 'readonly', 'yields'].reduce((acc, tag) => {
|
||||
acc[tag] = {
|
||||
message: `@${tag} currently not supported in Typescript`
|
||||
};
|
||||
return acc;
|
||||
}, {})),
|
||||
extends: "extends"
|
||||
}
|
||||
}
|
||||
},
|
||||
overrides: [
|
||||
{
|
||||
|
|
|
@ -13,9 +13,6 @@
|
|||
|
||||
const BULK_SIZE = 1000;
|
||||
|
||||
/**
|
||||
* @implements {Hash}
|
||||
*/
|
||||
class BulkUpdateDecorator {
|
||||
constructor(hash) {
|
||||
this.hash = hash;
|
||||
|
|
Loading…
Reference in New Issue