From 8608e12b8ceb2f6e4a891548e8003dc9d8b58caf Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 9 Sep 2026 09:42:33 +0000 Subject: [PATCH 1/2] Bump eslint from 7.32.0 to 10.10.0 Bumps [eslint](https://github.com/eslint/eslint) from 7.32.0 to 10.10.0. - [Release notes](https://github.com/eslint/eslint/releases) - [Commits](https://github.com/eslint/eslint/compare/v7.32.0...v10.10.0) --- updated-dependencies: - dependency-name: eslint dependency-version: 10.10.0 dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 384ba70..ec8493b 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "devDependencies": { "chai": "^6.2.2", "coveralls": "^3.1.0", - "eslint": "^7.14.0", + "eslint": "^10.10.0", "mocha": "^12.0.1", "mongodb3": "npm:mongodb@^3.0.0", "mongodb4": "npm:mongodb@^4.0.0", From be5bf7885e7a3239a2b0970a50470674c49e6f3e Mon Sep 17 00:00:00 2001 From: Alec Gibson <12036746+alecgibson@users.noreply.github.com> Date: Thu, 22 Oct 2026 13:22:45 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=94=A7=20Migrate=20ESLint=20to=20flat?= =?UTF-8?q?=20config=20for=20v10?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The ESLint v10 bump breaks `npm run lint`: v9+ no longer reads `.eslintrc`, and v10 drops the `--ignore-path` flag the script relied on. This ports the config to `eslint.config.js`, loading the existing `eslint.base.yaml` through `FlatCompat` so the rules themselves don't move. Everything else carries over as-is, `sourceType: 'module'` included, and `eslint --print-config` resolves to the same rules before and after. `--ignore-path .gitignore` becomes an explicit `ignores`: `coverage/` is the only gitignored JS we generate, and `**/.*` restores the dotfile skipping eslintrc did by default. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- .eslintrc | 22 ---------------------- eslint.config.js | 26 ++++++++++++++++++++++++++ package.json | 3 ++- 3 files changed, 28 insertions(+), 23 deletions(-) delete mode 100644 .eslintrc create mode 100644 eslint.config.js diff --git a/.eslintrc b/.eslintrc deleted file mode 100644 index fbb1114..0000000 --- a/.eslintrc +++ /dev/null @@ -1,22 +0,0 @@ -{ - "extends": "./eslint.base.yaml", - "parserOptions": { - "sourceType": "module", - "ecmaFeatures": { - "modules": true - } - }, - "env": { - "mocha": true, - "es6": true, - "node": true - }, - "overrides": [ - { - "files": "test/**/*", - "rules": { - "no-unused-expressions": "off" - } - } - ] -} diff --git a/eslint.config.js b/eslint.config.js new file mode 100644 index 0000000..804dabc --- /dev/null +++ b/eslint.config.js @@ -0,0 +1,26 @@ +const {FlatCompat} = require('@eslint/eslintrc'); + +const compat = new FlatCompat({baseDirectory: __dirname}); + +module.exports = [ + { + ignores: ['coverage/', '**/.*'], + }, + ...compat.extends('./eslint.base.yaml'), + ...compat.env({ + mocha: true, + es6: true, + node: true, + }), + { + languageOptions: { + sourceType: 'module', + }, + }, + { + files: ['test/**/*'], + rules: { + 'no-unused-expressions': 'off', + }, + }, +]; diff --git a/package.json b/package.json index ec8493b..85e699c 100644 --- a/package.json +++ b/package.json @@ -8,6 +8,7 @@ "sharedb": "^1.0.0 || ^2.0.0 || ^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0" }, "devDependencies": { + "@eslint/eslintrc": "^3.3.7", "chai": "^6.2.2", "coveralls": "^3.1.0", "eslint": "^10.10.0", @@ -21,7 +22,7 @@ "sinon": "^22.0.0" }, "scripts": { - "lint": "node_modules/.bin/eslint --ignore-path .gitignore '**/*.js'", + "lint": "node_modules/.bin/eslint .", "test": "mocha", "test-cover": "nyc --temp-dir=coverage -r text -r lcov npm test" },