From 53e46f0a802a40c1471a9bb12bc6c87011beec77 Mon Sep 17 00:00:00 2001 From: Luc Patiny Date: Tue, 1 Oct 2024 10:39:37 +0200 Subject: [PATCH] chore disable lines-before-block eslint rule --- .eslintrc.yml | 18 ------------------ eslint.config.mjs | 3 +-- 2 files changed, 1 insertion(+), 20 deletions(-) delete mode 100644 .eslintrc.yml diff --git a/.eslintrc.yml b/.eslintrc.yml deleted file mode 100644 index 731eda99..00000000 --- a/.eslintrc.yml +++ /dev/null @@ -1,18 +0,0 @@ -extends: [cheminfo-typescript] -rules: - '@typescript-eslint/prefer-for-of': 'off' - no-shadow: - - error - - builtinGlobals: true - hoist: all - allow: ['ArrayConstructor'] - max-lines-per-function: - - warn - - max: 60 - skipBlankLines: true - skipComments: true -overrides: - - files: '**/__tests__/**' - rules: - max-lines-per-function: - - off diff --git a/eslint.config.mjs b/eslint.config.mjs index 4ded9cdd..791698e7 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -10,8 +10,7 @@ export default [ }, }, rules: { - "jsdoc/require-jsdoc": "off", // this would add automatically an empty bloc of JsDoc - "jsdoc/no-defaults": "off", // this would remove our default values https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/no-defaults.md#readme + "jsdoc/lines-before-block": "off", "no-loss-of-precision": "off", '@typescript-eslint/prefer-for-of': 'off', "unicorn/import-style": [