Skip to content

Commit

Permalink
fix: replace styled-component with stylex (#367)
Browse files Browse the repository at this point in the history
This PR replaces styled-components with [stylex](https://stylexjs.com/).
The stylex is developed by Facebook and it is simpler than the
styled-components.
  • Loading branch information
ueokande authored Mar 6, 2024
1 parent 1bb8a25 commit 46ef567
Show file tree
Hide file tree
Showing 31 changed files with 1,156 additions and 1,671 deletions.
1 change: 1 addition & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"@typescript-eslint",
"prettier",
"react",
"@stylexjs",
"standard"
],
"parserOptions": {
Expand Down
5 changes: 3 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ version: 2
updates:
- package-ecosystem: npm
directory: "/"
schedule:
interval: daily
versioning-strategy: increase
commit-message:
prefix: "fix(deps)"
Expand Down Expand Up @@ -42,3 +40,6 @@ updates:
patterns:
- "playwright"
- "@playwright/test"
stylexjs:
patterns:
- "@stylexjs/*"
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,17 @@
"prismjs": "^1.29.0",
"react": "18.2.0",
"react-dom": "18.2.0",
"styled-components": "^6.0.8",
"tslib": "^2.6.2",
"typescript": "5.3.3",
"zod": "^3.22.2"
},
"devDependencies": {
"@jest/types": "^29.6.3",
"@playwright/test": "1.40.1",
"@stylexjs/dev-runtime": "^0.5.1",
"@stylexjs/esbuild-plugin": "^0.5.1",
"@stylexjs/eslint-plugin": "^0.5.1",
"@stylexjs/stylex": "^0.5.1",
"@testing-library/react-hooks": "^8.0.1",
"@types/chrome": "^0.0.233",
"@types/jest": "^29.5.12",
Expand Down
Loading

0 comments on commit 46ef567

Please sign in to comment.