From 77f2365334a0908d7aef68b02984b45f0fdcf44a Mon Sep 17 00:00:00 2001 From: BorysShulyak Date: Thu, 29 Aug 2024 11:02:25 +0300 Subject: [PATCH] chore: turn off `no-useless-constructor`, `no-empty-function`, `class-methods-use-this` rules in base-js.js --- .../eslint-config/main_2024-08-29-08-02.json | 10 ++++++++++ eslint/eslint-config/core/base-js.js | 3 +++ 2 files changed, 13 insertions(+) create mode 100644 common/changes/@runespoorstack/eslint-config/main_2024-08-29-08-02.json diff --git a/common/changes/@runespoorstack/eslint-config/main_2024-08-29-08-02.json b/common/changes/@runespoorstack/eslint-config/main_2024-08-29-08-02.json new file mode 100644 index 0000000..1310e8c --- /dev/null +++ b/common/changes/@runespoorstack/eslint-config/main_2024-08-29-08-02.json @@ -0,0 +1,10 @@ +{ + "changes": [ + { + "packageName": "@runespoorstack/eslint-config", + "comment": "base-ts/base-js: turn off `no-useless-constructor`, `no-empty-function`, `class-methods-use-this` rules.", + "type": "patch" + } + ], + "packageName": "@runespoorstack/eslint-config" +} \ No newline at end of file diff --git a/eslint/eslint-config/core/base-js.js b/eslint/eslint-config/core/base-js.js index 1527b77..d50f064 100644 --- a/eslint/eslint-config/core/base-js.js +++ b/eslint/eslint-config/core/base-js.js @@ -28,6 +28,9 @@ module.exports = { 'func-names': 'error', 'no-underscore-dangle': 'off', camelcase: 'off', + 'no-useless-constructor': 'off', + 'no-empty-function': 'off', + 'class-methods-use-this': 'off', 'no-restricted-imports': [ 'error', {