Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(contract-client): appease eslint
This includes some fixes and updates to eslint configuration to make it work as expected - Extended `airbnb-typescript/base` to get it to stop yelling at me about importing files without file extension. Saw this recommended as the fix on StackOverflow [[1]]. And it makes sense to me that if we are extending Airbnb's lint rules and using TypeScript, we probably want their TypeScript-specific lint rules, too. - Added the `eslint-plugin-jsdoc` plugin because the old `valid-jsdoc` rule we were using has been deprecated [[2]], and this plugin is the new way. Previously we had `valid-jsdoc: 1` (with some extra customization), and my guess is that extending `plugin:jsdoc/recommended` (plus some customization) is roughly equivalent. - Researched [[3]] whether JSDoc `@param`-style docs or TSDoc-style `/** inline param docs */` work better. TSDoc work better. So disabled `jsdoc/require-param`. [1]: https://stackoverflow.com/a/67610259/249801 [2]: https://eslint.org/docs/latest/rules/valid-jsdoc [3]: #962 (comment)
- Loading branch information