enforce eslint check-tag-names to avoid using jsdoc tags that are not supported in Typescript

This commit is contained in:
ikopeykin 2019-07-10 00:38:18 +03:00
parent 30e747a55d
commit a1aa5cbdce
2 changed files with 16 additions and 4 deletions

View File

@ -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: [
{

View File

@ -13,9 +13,6 @@
const BULK_SIZE = 1000;
/**
* @implements {Hash}
*/
class BulkUpdateDecorator {
constructor(hash) {
this.hash = hash;