Skip to content

Commit 42f6672

Browse files
nstepienroyue
authored andcommitted
Replace linaria with ecij (Comcast#3911)
* Replace linaria with ecis * ecis -> ecij * format
1 parent 32a496c commit 42f6672

43 files changed

Lines changed: 53 additions & 75 deletions

Some content is hidden

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

.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 & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -75,13 +75,12 @@
7575
"@types/node": "^24.8.0",
7676
"@typescript-eslint/eslint-plugin": "^8.39.1",
7777
"@typescript-eslint/parser": "^8.39.1",
78-
"@vitejs/plugin-react": "5.0.2",
78+
"@vitejs/plugin-react": "^5.1.1",
7979
"@vitest/browser-playwright": "^4.0.1",
8080
"@vitest/coverage-istanbul": "^4.0.1",
8181
"@vitest/eslint-plugin": "^1.3.4",
82-
"@wyw-in-js/rollup": "^0.8.0",
83-
"@wyw-in-js/vite": "^0.8.0",
8482
"clsx": "^2.1.1",
83+
"ecij": "^0.1.1",
8584
"eslint": "^9.36.0",
8685
"eslint-plugin-jest-dom": "^5.5.0",
8786
"eslint-plugin-react": "^7.37.5",
@@ -96,10 +95,10 @@
9695
"playwright": "^1.56.1",
9796
"postcss": "^8.5.2",
9897
"prettier": "3.6.2",
99-
"rolldown": "^1.0.0-beta.33",
100-
"rolldown-plugin-dts": "^0.17.1",
98+
"rolldown": "^1.0.0-beta.50",
99+
"rolldown-plugin-dts": "^0.17.7",
101100
"typescript": "~5.9.2",
102-
"vite": "npm:rolldown-vite@^7.1.3",
101+
"vite": "npm:rolldown-vite@^7.2.5",
103102
"vitest": "^4.0.1",
104103
"vitest-browser-react": "^2.0.2"
105104
},

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)