n3ps / json-schema-to-jsdoc

Generate JSDoc from JSON Schema
https://francisn.com/json-schema-to-jsdoc/
ISC License
30 stars 11 forks source link

Husky #24

Closed brettz9 closed 4 years ago

brettz9 commented 4 years ago

Builds on #23.

Also adds --report-unused-disable-directives (see https://eslint.org/docs/user-guide/command-line-interface )

(I added the latter flag as I don't see good reasons for keeping disable directives that don't apply to one's current eslint config.)

n3ps commented 4 years ago

First time I've seen that eslint CLI flag. It's like meta eslinting.

brettz9 commented 4 years ago

FWIW, If you use https://github.com/mysticatea/eslint-plugin-eslint-comments , there is a rule one can use instead: https://mysticatea.github.io/eslint-plugin-eslint-comments/rules/no-unused-disable.html (it mentions being hacky, but it has worked for me).