From 3b68936da7b448c6ed7211de477f754786338a17 Mon Sep 17 00:00:00 2001 From: Yaroslav Chapelskyi Date: Mon, 1 Aug 2022 13:24:12 +0300 Subject: [PATCH] feat: force only lodash get don't need rule --- frontend-typescript.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/frontend-typescript.js b/frontend-typescript.js index 81bca5eb..e1d049a6 100644 --- a/frontend-typescript.js +++ b/frontend-typescript.js @@ -5,7 +5,6 @@ const {allowRequireInConfigs, noExplicitReturnTypeInTests} = require('./common/o const consistentTypeAssertions = require('./rules/consistent-type-assertions.json'); const consistentTypeImports = require('./rules/consistent-type-imports.json'); const frontendConfig = require('./frontend'); -const youDontNeedLodashRules = require('./rules/you-dont-need-lodash.json'); const typescriptRules = require('./rules/typescript'); const restrictedPackagesImportRules = require('./rules/restricted-packages-import.json'); @@ -33,7 +32,7 @@ module.exports = { }, ], ...consistentTypeImports, - ...youDontNeedLodashRules, + "you-dont-need-lodash-underscore/get": "error", // it fail to compile TS on react static class properties (displayName | defaultProps | etc..) '@typescript-eslint/explicit-member-accessibility': 0, // Don`t need for typescript files