From f9481c6cb5c47f832c6d1b565e26cf220102da67 Mon Sep 17 00:00:00 2001 From: "Eric L. Goldstein" Date: Thu, 7 Dec 2023 13:27:48 -0500 Subject: [PATCH] For the `/node` config, disable all `eslint-plugin-n` rules related to `import` and `require` that have too many false positives --- CHANGELOG.md | 10 ++++++++++ lib/eslintNodeConfig.json | 6 ++++++ package-lock.json | 4 ++-- package.json | 2 +- 4 files changed, 19 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fe7410c..fb83fd4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,15 @@ # Changelog +## 1.0.1 + +- For the `/node` config, disable all `eslint-plugin-n` rules related to `import` and `require` that have too many false positives: + - `n/no-extraneous-import` + - `n/no-extraneous-require` + - `n/no-missing-import` + - `n/no-missing-require` + - `n/no-unpublished-import` + - `n/no-unpublished-require` + ## 1.0.0 - First public release diff --git a/lib/eslintNodeConfig.json b/lib/eslintNodeConfig.json index 6c4e696..a5785f0 100644 --- a/lib/eslintNodeConfig.json +++ b/lib/eslintNodeConfig.json @@ -6,7 +6,13 @@ "node": true }, "rules": { + "n/no-extraneous-import": "off", + "n/no-extraneous-require": "off", + "n/no-missing-import": "off", + "n/no-missing-require": "off", "n/no-path-concat": "error", + "n/no-unpublished-import": "off", + "n/no-unpublished-require": "off", "n/prefer-global/console": "error", "n/prefer-global/text-decoder": "error", "n/prefer-global/text-encoder": "error", diff --git a/package-lock.json b/package-lock.json index 91e458e..fc5097d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@babbel/eslint-config", - "version": "1.0.0", + "version": "1.0.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@babbel/eslint-config", - "version": "1.0.0", + "version": "1.0.1", "dependencies": { "@typescript-eslint/eslint-plugin": "6.7.0", "@typescript-eslint/parser": "6.7.0", diff --git a/package.json b/package.json index 3e098dd..d611d77 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@babbel/eslint-config", - "version": "1.0.0", + "version": "1.0.1", "author": "Eric L. Goldstein ", "description": "Hierarchical ESLint configuration collection that intends to be simple to use, layered, and shared with others", "keywords": [