Skip to content

Commit 7979135

Browse files
authored
Bump to @metamask/eslint-config-* v15 (#294)
Fix lint violations from the upgrade. Also bump `typescript-eslint` to 8.48.1.
1 parent a00237f commit 7979135

File tree

4 files changed

+168
-210
lines changed

4 files changed

+168
-210
lines changed

eslint.config.mjs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ const config = createConfig([
1515
sourceType: 'module',
1616
parserOptions: {
1717
tsconfigRootDir: import.meta.dirname,
18-
project: ['./tsconfig.json'],
1918
},
2019
},
2120

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@
5050
"@lavamoat/allow-scripts": "^3.0.4",
5151
"@lavamoat/preinstall-always-fail": "^2.0.0",
5252
"@metamask/auto-changelog": "^4.0.0",
53-
"@metamask/eslint-config": "^14.0.0",
54-
"@metamask/eslint-config-nodejs": "^14.0.0",
55-
"@metamask/eslint-config-typescript": "^14.0.0",
56-
"@metamask/eslint-config-vitest": "^1.0.0",
53+
"@metamask/eslint-config": "^15.0.0",
54+
"@metamask/eslint-config-nodejs": "^15.0.0",
55+
"@metamask/eslint-config-typescript": "^15.0.0",
56+
"@metamask/eslint-config-vitest": "^15.0.0",
5757
"@ts-bridge/cli": "^0.6.3",
5858
"@types/node": "^18.18",
5959
"@typescript-eslint/utils": "^8.6.0",
@@ -74,7 +74,7 @@
7474
"ts-node": "^10.7.0",
7575
"typedoc": "^0.26.11",
7676
"typescript": "~5.7.3",
77-
"typescript-eslint": "^8.6.0",
77+
"typescript-eslint": "^8.48.1",
7878
"vite": "^6.2.0",
7979
"vitest": "^3.0.7"
8080
},

yarn.config.cjs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ const { basename, resolve } = require('path');
66
/**
77
* Aliases for the Yarn type definitions, to make the code more readable.
88
*
9+
* @typedef {import('@yarnpkg/types').Yarn.Constraints.Yarn} Yarn
910
* @typedef {import('@yarnpkg/types').Yarn.Constraints.Workspace} Workspace
1011
* @typedef {import('@yarnpkg/types').Yarn.Constraints.Dependency} Dependency
1112
*/
@@ -222,6 +223,12 @@ function expectExports(workspace) {
222223
}
223224

224225
module.exports = defineConfig({
226+
/**
227+
* Define the constraints for this project.
228+
*
229+
* @param {object} args - The arguments.
230+
* @param {Yarn} args.Yarn - The Yarn "global".
231+
*/
225232
async constraints({ Yarn }) {
226233
const workspace = Yarn.workspace();
227234
const workspaceName = getWorkspaceName(workspace);

0 commit comments

Comments
 (0)