From c23f18a7a0e700dbe304f636b1d365ab1a2719cc Mon Sep 17 00:00:00 2001 From: Alex Potsides Date: Wed, 12 Oct 2022 11:52:09 +0100 Subject: [PATCH] fix: allow stringifying any (#117) Sometimes we don't know the type of a thing but it's ok to turn it into a string. --- ts.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ts.js b/ts.js index 29c40aa..9f1c118 100644 --- a/ts.js +++ b/ts.js @@ -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 }