Skip to content

Commit f156c2c

Browse files
authored
fix: apply pseudo class styles to reflection (#793)
* fix: apply pseudo class styles to reflection * chore: fix mismatch eslint-scope issue
1 parent 54c3a32 commit f156c2c

File tree

7 files changed

+2579
-2277
lines changed

7 files changed

+2579
-2277
lines changed

demo/src/index.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
import * as React from "react";
2-
import { render } from "react-dom";
2+
import { createRoot } from "react-dom/client";
33

44
import App from "./App";
55

66
const rootElement = document.getElementById("root");
7-
render(<App />, rootElement);
7+
if (rootElement) {
8+
createRoot(rootElement).render(<App />);
9+
}

package.json

Lines changed: 44 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@
3333
"lint": "eslint . --ext .js,.ts,.jsx,.tsx",
3434
"build": "webpack --mode=production",
3535
"build-watch": "webpack --mode=development --watch",
36-
"build-types": "tsc --declaration --emitDeclarationOnly --project tsconfig.prod.json",
36+
"build-types": "tsc --project tsconfig.prod.json --emitDeclarationOnly --declaration",
3737
"test": "jest",
3838
"coveralls": "cat ./artifacts/coverage/lcov.info | coveralls",
39-
"typecheck": "tsc --noEmit",
39+
"typecheck": "tsc --project tsconfig.prod.json --noEmit",
4040
"commit": "git-cz",
4141
"release": "semantic-release"
4242
},
@@ -91,59 +91,61 @@
9191
"specificity": "^0.4.1"
9292
},
9393
"devDependencies": {
94-
"@babel/cli": "^7.17.10",
95-
"@babel/core": "^7.17.10",
96-
"@babel/eslint-parser": "^7.17.0",
97-
"@babel/plugin-syntax-flow": "^7.16.7",
98-
"@babel/plugin-transform-react-jsx": "^7.17.3",
99-
"@babel/preset-typescript": "^7.16.7",
100-
"@commitlint/cli": "^17.0.0",
101-
"@commitlint/config-conventional": "^17.0.0",
102-
"@testing-library/react": "^13.2.0",
103-
"@types/jest": "^29.0.0",
104-
"@types/node": "^18.0.0",
105-
"@types/react": "^18.0.9",
106-
"@types/react-dom": "^18.0.3",
94+
"@babel/cli": "^7.19.3",
95+
"@babel/core": "^7.19.3",
96+
"@babel/eslint-parser": "^7.19.1",
97+
"@babel/plugin-syntax-flow": "^7.18.6",
98+
"@babel/plugin-transform-react-jsx": "^7.19.0",
99+
"@babel/preset-typescript": "^7.18.6",
100+
"@commitlint/cli": "^17.1.2",
101+
"@commitlint/config-conventional": "^17.1.0",
102+
"@testing-library/react": "^13.4.0",
103+
"@types/eslint": "^8.4.6",
104+
"@types/eslint-scope": "^3.7.4",
105+
"@types/jest": "^29.2.0",
106+
"@types/node": "^18.11.2",
107+
"@types/react": "^18.0.21",
108+
"@types/react-dom": "^18.0.6",
107109
"@types/react-test-renderer": "^18.0.0",
108110
"@types/webpack": "^5.28.0",
109111
"@types/webpack-node-externals": "^2.5.3",
110-
"@typescript-eslint/eslint-plugin": "^5.22.0",
111-
"@typescript-eslint/parser": "^5.22.0",
112-
"acorn": "^8.7.1",
113-
"autoprefixer": "^10.4.7",
112+
"@typescript-eslint/eslint-plugin": "^5.40.1",
113+
"@typescript-eslint/parser": "^5.40.1",
114+
"acorn": "^8.8.0",
115+
"autoprefixer": "^10.4.12",
114116
"babel-loader": "^8.2.5",
115117
"babel-plugin-transform-class-properties": "^6.24.1",
116-
"commitizen": "^4.2.4",
118+
"commitizen": "^4.2.5",
117119
"coveralls": "^3.1.1",
118120
"cz-conventional-changelog": "^3.3.0",
119-
"eslint": "^8.14.0",
121+
"eslint": "^8.25.0",
120122
"eslint-config-airbnb": "^19.0.4",
121123
"eslint-config-prettier": "^8.5.0",
122124
"eslint-plugin-import": "^2.26.0",
123-
"eslint-plugin-jsx-a11y": "^6.5.1",
124-
"eslint-plugin-prettier": "^4.0.0",
125-
"eslint-plugin-react": "^7.29.4",
126-
"eslint-plugin-react-hooks": "^4.5.0",
125+
"eslint-plugin-jsx-a11y": "^6.6.1",
126+
"eslint-plugin-prettier": "^4.2.1",
127+
"eslint-plugin-react": "^7.31.10",
128+
"eslint-plugin-react-hooks": "^4.6.0",
127129
"husky": "^8.0.1",
128-
"jest": "^28.1.0",
129-
"jest-environment-jsdom": "^29.0.0",
130-
"lint-staged": "^13.0.0",
131-
"postcss": "^8.4.13",
132-
"prettier": "^2.6.2",
133-
"prettier-eslint": "^15.0.0",
130+
"jest": "^29.2.1",
131+
"jest-environment-jsdom": "^29.2.1",
132+
"lint-staged": "^13.0.3",
133+
"postcss": "^8.4.18",
134+
"prettier": "^2.7.1",
135+
"prettier-eslint": "^15.0.1",
134136
"prop-types": "^15.8.1",
135-
"react": "^18.1.0",
136-
"react-dom": "^18.1.0",
137+
"react": "^18.2.0",
138+
"react-dom": "^18.2.0",
137139
"react-scripts": "^5.0.1",
138-
"react-test-renderer": "^18.1.0",
139-
"rxjs": "^7.5.5",
140-
"semantic-release": "^19.0.2",
141-
"ts-jest": "^28.0.4",
142-
"ts-loader": "^9.3.0",
143-
"ts-node": "^10.7.0",
144-
"typescript": "^4.6.4",
145-
"webpack": "^5.72.0",
146-
"webpack-cli": "^4.9.2",
140+
"react-test-renderer": "^18.2.0",
141+
"rxjs": "^7.5.7",
142+
"semantic-release": "^19.0.5",
143+
"ts-jest": "^29.0.3",
144+
"ts-loader": "^9.4.1",
145+
"ts-node": "^10.9.1",
146+
"typescript": "^4.8.4",
147+
"webpack": "^5.74.0",
148+
"webpack-cli": "^4.10.0",
147149
"webpack-compiler-plugin": "^1.1.5",
148150
"webpack-node-externals": "^3.0.0"
149151
}

0 commit comments

Comments
 (0)