From 37d92f10351d41ceba6b9e76a138327dbb9bc617 Mon Sep 17 00:00:00 2001 From: Dominik Garcia Date: Tue, 27 Apr 2021 15:33:04 +0200 Subject: [PATCH] feat: update rules (#15) --- rules/prettier.js | 2 +- rules/typescript.js | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/rules/prettier.js b/rules/prettier.js index 06b10fa..032dc3f 100644 --- a/rules/prettier.js +++ b/rules/prettier.js @@ -1,6 +1,6 @@ module.exports = { plugins: ['prettier'], - extends: ['prettier', 'prettier/@typescript-eslint'], + extends: ['prettier'], rules: { 'prettier/prettier': [ 'error', diff --git a/rules/typescript.js b/rules/typescript.js index a37525c..dc5309e 100644 --- a/rules/typescript.js +++ b/rules/typescript.js @@ -20,6 +20,9 @@ module.exports = { '@typescript-eslint/prefer-for-of': 'error', '@typescript-eslint/prefer-optional-chain': 'error', + // we must disable the base rule as it can report incorrect errors + 'no-use-before-define': 'off', + // rules which are not yet released, enable with next update // '@typescript-eslint/no-unsafe-call': 'error', // '@typescript-eslint/no-unsafe-member-access': 'error',