eslint-plugin-promise
eslint-plugin-promise copied to clipboard
feat: add type validation / generate typescript declaration file
What is the purpose of this pull request?
Fix #488
What changes did you make? (Give an overview)
- Added a
tsconfig.jsonas well as a type compilingdeclaration.tsconfig.json - Added a TypeScript oriented
eslint-plugin-jsdocand improved the JSDoc comments to be compliant with that - Added a CI job that validates the types
- Added deactivated npm scripts that can be activated to build on publish once we pass
I've made my own attempt so far at https://github.com/eslint-community/eslint-plugin-promise/compare/main...brettz9:ts . ~~I have not yet added types for __tests__, but~~ the rest are passing tsc.
I'm not partial to using my version or anything, but would you mind providing some general feedback on the general approach (which in my case at least seems to require quite a few type checks)?