Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -158,3 +158,4 @@ Cargo.lock

### User
/crates/zed/extension.wasm
.vitest/
2 changes: 2 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# vite-plus preview build registry bridge (auto-added by vp)
registry=https://registry-bridge.viteplus.dev/
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"@types/react": "^19.2.17",
"@types/vscode": "^1.125.0",
"@typescript/server-harness": "^0.3.6",
"@vitest/coverage-v8": "^4.1.9",
"@vitest/coverage-v8": "catalog:",
"@vscode/test-cli": "^0.0.15",
"@vscode/test-electron": "^3.0.0",
"@vscode/vsce": "^3.9.2",
Expand All @@ -46,7 +46,8 @@
"tsx": "^4.22.4",
"typescript": "^6.0.3",
"vite": "catalog:",
"vite-plus": "catalog:"
"vite-plus": "catalog:",
"vitest": "catalog:"
},
"packageManager": "pnpm@11.9.0+sha512.bd682d5d03fe525ef7c9fd6780c6884d1e756ac4c9c9fe00c538782824310dcf90e3ddc4f53835f06dfaebd5085e41855e0bcbb3b60de2ac5bbab89e5036f03b"
}
4 changes: 2 additions & 2 deletions packages/eslint-plugin/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ npm i -D @css-modules-kit/eslint-plugin
## Usage

```js
import cssModulesKit from '@css-modules-kit/eslint-plugin';
import css from '@eslint/css';
// eslint.config.js
import { defineConfig } from 'eslint/config';
import css from '@eslint/css';
import cssModulesKit from '@css-modules-kit/eslint-plugin';

export default defineConfig([
{
Expand Down
2,644 changes: 1,424 additions & 1,220 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

29 changes: 26 additions & 3 deletions pnpm-workspace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,37 @@ allowBuilds:
keytar: false
minimumReleaseAge: 4320
minimumReleaseAgeExclude:
# ecosystem-ci smoke test: preview builds and freshly pinned toolchain packages
- vite-plus
- '@voidzero-dev/*'
- oxlint
- '@oxlint/*'
- oxfmt
- '@oxfmt/*'
- oxlint-tsgolint
- '@oxlint-tsgolint/*'
- vitest
- '@vitest/*'
- tinybench
- yuku-core
- yuku-parser
- '@yuku-core/*'
- '@yuku-toolchain/*'
- '@mizdra/*'
# Ecosystem-ci smoke test: Vite+ core pins freshly published oxc packages.
- '@oxc-project/*'
catalog:
vite: npm:@voidzero-dev/vite-plus-core@0.2.1
vite-plus: 0.2.1
vite: npm:@voidzero-dev/vite-plus-core@0.0.0-commit.6bc2d240a024170c08fbc831f0c201c162afd22e
vite-plus: 0.0.0-commit.6bc2d240a024170c08fbc831f0c201c162afd22e
vitest: 5.0.5
'@vitest/coverage-v8': 5.0.5
overrides:
vite: 'catalog:'
vite@*: 'catalog:'
vitest@*: 'catalog:'
peerDependencyRules:
allowAny:
- vite
- vitest
allowedVersions:
vite: '*'
vitest: '*'
18 changes: 18 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,14 @@ export default defineConfig({
'no-await-in-loop': 'off',
},
},
{
// `meta.language` is deprecated in favour of `meta.languages`, but switching would
// make ESLint 10 reject these rules for non-CSS configs (a runtime behaviour change).
files: ['packages/eslint-plugin/src/rules/**'],
rules: {
'typescript/no-deprecated': 'off',
},
},
],
options: { typeAware: true, typeCheck: true },
},
Expand All @@ -66,6 +74,16 @@ export default defineConfig({
],
},
test: {
// Vitest v4 compatibility: preserve mock call history.
// Remove after tests no longer rely on calls from setup or earlier tests.
// https://release-v1-4-0-viteplus-dev.voidzero-docs.workers.dev/guide/vitest-v5#remove-unneeded-compatibility-settings
// https://vitest.dev/guide/migration/#clearmocks-is-enabled-by-default
clearMocks: false,
// Vitest v4 compatibility: keep separate Vite servers for inline projects.
// Remove when plugins and config hooks can run once for shared projects.
// https://release-v1-4-0-viteplus-dev.voidzero-docs.workers.dev/guide/vitest-v5#remove-unneeded-compatibility-settings
// https://vitest.dev/guide/migration/#inline-projects-share-the-vite-server-by-default
sharedViteServer: false,
// On GitHub Actions, the Windows runner is slow and tests may fail with the default timeout.
// Therefore, we set the timeout to 10 seconds.
testTimeout: 10_000,
Expand Down
Loading