From 58aa0a9d3441a00ff1f91c6503b5edaa1f01ea63 Mon Sep 17 00:00:00 2001 From: i-am-yongho Date: Wed, 18 Dec 2024 23:13:51 +0900 Subject: [PATCH] =?UTF-8?q?[#58]=20=E2=9C=A8=20Add=20vitest=20gloabals?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/eslint-config/node/index.js | 1 + packages/eslint-config/package.json | 2 +- packages/eslint-config/react/index.js | 1 + pnpm-lock.yaml | 16 ++++++++-------- 4 files changed, 11 insertions(+), 9 deletions(-) diff --git a/packages/eslint-config/node/index.js b/packages/eslint-config/node/index.js index eb69ddd..43d87be 100644 --- a/packages/eslint-config/node/index.js +++ b/packages/eslint-config/node/index.js @@ -12,6 +12,7 @@ export default [ ...globals.commonjs, ...globals.node, ...globals.jest, + ...globals.vitest, ...globals.es2023, Atomics: 'readonly', SharedArrayBuffer: 'readonly', diff --git a/packages/eslint-config/package.json b/packages/eslint-config/package.json index f911a4c..12d1d49 100644 --- a/packages/eslint-config/package.json +++ b/packages/eslint-config/package.json @@ -44,7 +44,7 @@ "eslint-plugin-unicorn": "^56.0.1", "eslint-plugin-unused-imports": "^4.1.4", "eslint-plugin-yml": "^1.16.0", - "globals": "^15.12.0", + "globals": "^15.14.0", "neostandard": "^0.11.9", "typescript-eslint": "^8.18.0" }, diff --git a/packages/eslint-config/react/index.js b/packages/eslint-config/react/index.js index 41e966b..af3b8e0 100644 --- a/packages/eslint-config/react/index.js +++ b/packages/eslint-config/react/index.js @@ -13,6 +13,7 @@ export default [ globals: { ...globals.browser, ...globals.jest, + ...globals.vitest, ...globals.es2023, }, }, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 451ea19..cb881bd 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -107,8 +107,8 @@ importers: specifier: ^1.16.0 version: 1.16.0(eslint@9.15.0) globals: - specifier: ^15.12.0 - version: 15.12.0 + specifier: ^15.14.0 + version: 15.14.0 neostandard: specifier: ^0.11.9 version: 0.11.9(eslint@9.15.0)(typescript@5.3.3) @@ -2802,8 +2802,8 @@ packages: resolution: {integrity: sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==} engines: {node: '>=18'} - globals@15.12.0: - resolution: {integrity: sha512-1+gLErljJFhbOVyaetcwJiJ4+eLe45S2E7P5UiZ9xGfeq3ATQf5DOv9G7MH3gGbKQLkzmNh2DxfZwLdw+j6oTQ==} + globals@15.14.0: + resolution: {integrity: sha512-OkToC372DtlQeje9/zHIo5CT8lRP/FUgEOKBEhU4e0abL7J7CD24fD9ohiLN5hagG/kWCYj4K5oaxxtj2Z0Dig==} engines: {node: '>=18'} globalthis@1.0.3: @@ -7490,7 +7490,7 @@ snapshots: eslint: 9.15.0 eslint-plugin-es-x: 7.8.0(eslint@9.15.0) get-tsconfig: 4.8.1 - globals: 15.12.0 + globals: 15.14.0 ignore: 5.3.2 minimatch: 9.0.5 semver: 7.6.3 @@ -7556,7 +7556,7 @@ snapshots: core-js-compat: 3.39.0 eslint: 9.15.0 esquery: 1.6.0 - globals: 15.12.0 + globals: 15.14.0 indent-string: 4.0.0 is-builtin-module: 3.2.1 jsesc: 3.0.2 @@ -7883,7 +7883,7 @@ snapshots: globals@14.0.0: {} - globals@15.12.0: {} + globals@15.14.0: {} globalthis@1.0.3: dependencies: @@ -8790,7 +8790,7 @@ snapshots: eslint-plugin-promise: 7.2.1(eslint@9.15.0) eslint-plugin-react: 7.37.2(eslint@9.15.0) find-up: 5.0.0 - globals: 15.12.0 + globals: 15.14.0 peowly: 1.3.2 typescript-eslint: 8.17.0(eslint@9.15.0)(typescript@5.3.3) transitivePeerDependencies: