Skip to content

Commit 96fb00d

Browse files
authored
Replace linaria with ecij (#3911)
* Replace linaria with ecis * ecis -> ecij * format
1 parent 36d0dc1 commit 96fb00d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+53
-77
lines changed

.github/dependabot.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,6 @@ updates:
1111
patterns:
1212
- 'react'
1313
- 'react-dom'
14-
babel:
15-
patterns:
16-
- '@babel/*'
17-
linaria:
18-
patterns:
19-
- '@linaria/*'
20-
- '@wyw-in-js/*'
2114
typescript-eslint:
2215
patterns:
2316
- '@typescript-eslint/*'

.prettierignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
package.json
21
/website/routeTree.gen.ts

.prettierrc.json renamed to .prettierrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"^react-dom",
1010
"^react",
1111
"<THIRD_PARTY_MODULES>",
12-
"^@linaria/core$",
12+
"^ecij$",
1313
"^clsx$",
1414
"",
1515
"./src",

.vscode/settings.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
44
},
55
"editor.defaultFormatter": "esbenp.prettier-vscode",
66
"editor.formatOnSave": true,
7-
"[javascript][json][jsonc][css]": {
8-
"editor.defaultFormatter": "biomejs.biome"
9-
},
107
"typescript.enablePromptUseWorkspaceTsdk": true,
118
"typescript.tsdk": "node_modules/typescript/lib",
129
"files.readonlyInclude": {

babel.config.json

Lines changed: 0 additions & 3 deletions
This file was deleted.

package.json

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -51,27 +51,24 @@
5151
"postpublish": "git push --follow-tags origin HEAD"
5252
},
5353
"devDependencies": {
54-
"@babel/preset-typescript": "^7.27.1",
5554
"@biomejs/biome": "2.3.5",
5655
"@eslint-react/eslint-plugin": "^2.0.2",
5756
"@eslint/markdown": "^7.3.0",
5857
"@faker-js/faker": "^10.0.0",
5958
"@ianvs/prettier-plugin-sort-imports": "^4.6.2",
60-
"@linaria/core": "^6.3.0",
6159
"@tanstack/react-router": "^1.132.31",
6260
"@tanstack/router-plugin": "^1.132.31",
6361
"@types/node": "^24.8.0",
6462
"@types/react": "^19.2.0",
6563
"@types/react-dom": "^19.2.0",
6664
"@typescript-eslint/eslint-plugin": "^8.39.1",
6765
"@typescript-eslint/parser": "^8.39.1",
68-
"@vitejs/plugin-react": "5.0.2",
66+
"@vitejs/plugin-react": "^5.1.1",
6967
"@vitest/browser-playwright": "^4.0.1",
7068
"@vitest/coverage-istanbul": "^4.0.1",
7169
"@vitest/eslint-plugin": "^1.3.4",
72-
"@wyw-in-js/rollup": "^0.8.0",
73-
"@wyw-in-js/vite": "^0.8.0",
7470
"clsx": "^2.1.1",
71+
"ecij": "^0.1.1",
7572
"eslint": "^9.36.0",
7673
"eslint-plugin-jest-dom": "^5.5.0",
7774
"eslint-plugin-react": "^7.37.5",
@@ -85,10 +82,10 @@
8582
"prettier": "3.6.2",
8683
"react": "^19.2.0",
8784
"react-dom": "^19.2.0",
88-
"rolldown": "^1.0.0-beta.33",
89-
"rolldown-plugin-dts": "^0.17.1",
85+
"rolldown": "^1.0.0-beta.50",
86+
"rolldown-plugin-dts": "^0.17.7",
9087
"typescript": "~5.9.2",
91-
"vite": "npm:rolldown-vite@^7.1.3",
88+
"vite": "npm:rolldown-vite@^7.2.5",
9289
"vitest": "^4.0.1",
9390
"vitest-browser-react": "^2.0.2"
9491
},

rolldown.config.ts

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { isAbsolute } from 'node:path';
2-
import wyw from '@wyw-in-js/rollup';
2+
import { ecij } from 'ecij/plugin';
33
import { defineConfig } from 'rolldown';
44
import { dts } from 'rolldown-plugin-dts';
55

@@ -10,22 +10,19 @@ export default defineConfig({
1010
output: {
1111
dir: 'lib',
1212
cssEntryFileNames: 'styles.css',
13-
sourcemap: true
13+
sourcemap: true,
14+
cleanDir: true
1415
},
1516
platform: 'browser',
1617
external: (id) => !id.startsWith('.') && !isAbsolute(id),
1718
plugins: [
19+
ecij({
20+
// We add the package version as prefix to avoid style conflicts
21+
// between multiple versions of RDG on the same page
22+
classPrefix: `rdg-${pkg.version.replaceAll('.', '-')}-`
23+
}),
1824
dts({
1925
tsconfig: './tsconfig.lib.json'
20-
}),
21-
wyw({
22-
exclude: ['**/*.d.ts'],
23-
preprocessor: 'none',
24-
classNameSlug(hash) {
25-
// We add the package version as suffix to avoid style conflicts
26-
// between multiple versions of RDG on the same page.
27-
return `${hash}${pkg.version.replaceAll('.', '-')}`;
28-
}
2926
})
3027
]
3128
});

src/Cell.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { memo, type MouseEvent } from 'react';
2-
import { css } from '@linaria/core';
2+
import { css } from 'ecij';
33

44
import { useRovingTabIndex } from './hooks';
55
import { createCellEvent, getCellClassname, getCellStyle, isCellEditableUtil } from './utils';

src/EditCell.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { useEffectEvent, useLayoutEffect, useRef } from 'react';
2-
import { css } from '@linaria/core';
2+
import { css } from 'ecij';
33

44
import { createCellEvent, getCellClassname, getCellStyle, onEditorNavigation } from './utils';
55
import type {

src/GroupRow.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { memo, useMemo } from 'react';
2-
import { css } from '@linaria/core';
2+
import { css } from 'ecij';
33

44
import { RowSelectionContext, type RowSelectionContextValue } from './hooks';
55
import { classnames, getRowStyle } from './utils';

0 commit comments

Comments
 (0)