From e5ee89daca51a908fd0e9b636710b2d0e3a88908 Mon Sep 17 00:00:00 2001 From: Jason Garber Date: Sat, 29 Jun 2024 22:14:40 -0400 Subject: [PATCH] Allow experimental features MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Resolves a non-issue where the eslint-plugin-n plugin reports use of the `test` library in this project as an error since it's experimental in Node.js 18. The `engines` config in this project matches ESLint's and this project is developed against `lts/iron` _anyway_. So… non-issue. --- eslint.config.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/eslint.config.js b/eslint.config.js index cef6cfb..860acfd 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -17,4 +17,11 @@ export default [ }, }, }, + { + rules: { + "n/no-unsupported-features/node-builtins": ["error", { + allowExperimental: true, + }], + }, + }, ];