Skip to content

Commit

Permalink
fix: allow stringifying any (#117)
Browse files Browse the repository at this point in the history
Sometimes we don't know the type of a thing but it's ok to turn it into a string.
  • Loading branch information
achingbrain authored Oct 12, 2022
1 parent 782bf7a commit c23f18a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ts.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,13 @@ module.exports = {
'etc'
],
rules: {
'no-use-before-define': 'off', // Types often are recursive & no use before define is too restrctive
'no-use-before-define': 'off', // Types often are recursive & no use before define is too restrictive
'etc/prefer-interface': 'error', // https://ncjamieson.com/prefer-interfaces/
'@typescript-eslint/prefer-function-type': 'off', // conflicts with 'etc/prefer-interface'
'@typescript-eslint/explicit-function-return-type': 'error', // functions require return types
'@typescript-eslint/no-this-alias': 'off', // allow 'const self = this'
'@typescript-eslint/await-thenable': 'error', // disallows awaiting a value that is not a "Thenable"
'@typescript-eslint/restrict-template-expressions': 'off', // allow values with `any` type in template literals
'jsdoc/require-param': 'off', // do not require jsdoc for params
'jsdoc/require-param-type': 'off' // allow compiler to derive param type
}
Expand Down

0 comments on commit c23f18a

Please sign in to comment.