From 30cce81c916391867cbdd43bb14ec338a5c5ecff Mon Sep 17 00:00:00 2001 From: Zwyx <29386932+Zwyx@users.noreply.github.com> Date: Thu, 27 Mar 2025 20:17:42 +0800 Subject: [PATCH] Remove mention of `sourceType` in the recommended config The recommended configuration doesn't set `sourceType` to `script` anymore. See https://github.com/eslint-community/eslint-plugin-eslint-plugin/issues/514 --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index e9553dfc..32f86899 100644 --- a/README.md +++ b/README.md @@ -39,10 +39,11 @@ npm install eslint-plugin-eslint-plugin --save-dev Here's an example ESLint configuration that: -- Sets `sourceType` to `script` for CJS plugins (most users) (use `module` for ESM/TypeScript) - Enables the `recommended` configuration - Enables an optional/non-recommended rule +Note: you might need to set `sourceType` to `script` (most users) (use `module` for ESM/TypeScript). + ### **[.eslintrc.json](https://eslint.org/docs/latest/use/configure/configuration-files)** ```json