Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: enable TS strict mode #168

Merged
merged 58 commits into from
Mar 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
58 commits
Select commit Hold shift + click to select a range
7e2f9fc
feat: enable TS strict mode
doprz Mar 15, 2024
1e53b2d
fix: strict TS errors
doprz Mar 15, 2024
cd2cb12
fix: strict TS errors
doprz Mar 15, 2024
75681a2
fix: strict TS errors
doprz Mar 15, 2024
eca4281
fix: strict TS errors
doprz Mar 15, 2024
53d74d2
fix: strict TS errors
doprz Mar 15, 2024
01e94bf
fix: strict TS errors
doprz Mar 15, 2024
5692f96
fix: strict TS errors
Lukas-Zenick Mar 15, 2024
18123c5
fix: strict TS errors
Lukas-Zenick Mar 15, 2024
a0bfaee
fix: colors bug with default
Lukas-Zenick Mar 15, 2024
6234d72
fix: strict TS errors
doprz Mar 16, 2024
6f84bb4
fix: strict TS errors
doprz Mar 16, 2024
962d987
fix: strict TS errors
doprz Mar 16, 2024
817dc08
fix: strict TS errors
doprz Mar 16, 2024
f57b462
fix: strict TS errors
doprz Mar 16, 2024
6bc6847
fix: strict TS errors
doprz Mar 16, 2024
b3e37b1
fix: strict TS errors
doprz Mar 16, 2024
4c57a84
fix: strict TS errors
doprz Mar 16, 2024
9e3bd42
fix: strict TS errors
doprz Mar 16, 2024
2b59df7
fix: strict TS errors
doprz Mar 16, 2024
3dc94d6
Merge branch 'main' of https://github.com/Longhorn-Developers/UT-Regi…
doprz Mar 17, 2024
ea73f5c
fix: strict TS errors
doprz Mar 17, 2024
496526b
fix: text type errors
Razboy20 Mar 17, 2024
cb94e43
Merge branch 'main' of https://github.com/Longhorn-Developers/UT-Regi…
doprz Mar 18, 2024
6f5a8f3
Merge branch 'feature/ts-strict' of https://github.com/Longhorn-Devel…
doprz Mar 18, 2024
ef8bb3f
fix: strict TS errors
doprz Mar 18, 2024
4b7a34a
Merge branch 'main' of https://github.com/Longhorn-Developers/UT-Regi…
doprz Mar 20, 2024
f7a5f80
fix: strict TS errors
doprz Mar 20, 2024
7da48fb
fix: strict TS errors - add definite assignment assertion
doprz Mar 20, 2024
0f1c20e
fix: strict TS errors - add definite assignment assertion
doprz Mar 20, 2024
d9a08b8
fix: strict TS errors
doprz Mar 20, 2024
5f5b243
fix: strict TS errors
doprz Mar 20, 2024
2429665
fix: strict TS errors
doprz Mar 20, 2024
65168ca
fix: strict TS errors
doprz Mar 20, 2024
1184a4e
fix: strict TS errors
doprz Mar 20, 2024
fd127a8
fix: strict TS errors
doprz Mar 20, 2024
3351d2f
fix(ESLint): error on no-explicit-any
doprz Mar 21, 2024
8f1026a
fix: type annotations for any types
doprz Mar 21, 2024
63a7968
fix: strict TS errors
doprz Mar 21, 2024
d1163c4
fix: strict TS errors
doprz Mar 21, 2024
ebcc66f
fix: strict TS errors
doprz Mar 21, 2024
45a0187
fix: strict TS errors (and remove packages)
Razboy20 Mar 21, 2024
8ff6af8
Merge branch 'main' into feature/ts-strict
Razboy20 Mar 21, 2024
18c1980
fix: strict TS errors
doprz Mar 21, 2024
c621581
Merge branch 'feature/ts-strict' of https://github.com/Longhorn-Devel…
doprz Mar 21, 2024
097107f
fix: strict TS errors
doprz Mar 21, 2024
02b8193
fix: strict TS errors
doprz Mar 21, 2024
1a2ba2c
fix: strict TS errors
doprz Mar 21, 2024
a255ccf
fix: strict TS errors
doprz Mar 21, 2024
e4ddb45
fix: strict TS errors
doprz Mar 21, 2024
e2e64d8
fix: strict TS errors
doprz Mar 21, 2024
5df24ab
feat: enable React.StrictMode
doprz Mar 21, 2024
a2cdc6b
fix: strict TS errors (done!)
Razboy20 Mar 21, 2024
784d33d
fix: build error
Razboy20 Mar 21, 2024
4006ed2
fix: replace no-explicit-any assertions
Razboy20 Mar 21, 2024
1c3acc2
refactor: cleanup
Razboy20 Mar 21, 2024
a703320
refactor: more cleanup
Razboy20 Mar 21, 2024
31d1ff5
style: prettier
Razboy20 Mar 21, 2024
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
3 changes: 2 additions & 1 deletion .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ module.exports = {
ignorePatterns: ['*.html', 'tsconfig.json'],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:react/recommended',
'plugin:react-hooks/recommended',
'plugin:storybook/recommended',
Expand Down Expand Up @@ -164,7 +165,7 @@ module.exports = {
],
},
],
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-explicit-any': 'error',
'@typescript-eslint/no-unused-vars': 'warn',
'@typescript-eslint/naming-convention': 'off',
'@typescript-eslint/space-before-function-paren': 'off',
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ This extension, UT Registration Plus (UTRP), tries to streamline most of the unn
- Run `pnpm dev`

> [!NOTE]
> Injected content such as extension content on UT pages is not properly styled, and are missing class stylings. When developing for these pages, use `pnpm build -w` to build and watch for changes. This will ensure you are seeing an accurate representation of the extension.
> Injected content such as extension content on UT pages is not properly styled, and are missing class stylings. When developing for these pages, use `NODE_ENV='development' pnpm run dev build --mode development -w` to build and watch for changes. This will ensure you are seeing an accurate representation of the extension.

### Production Builds

Expand Down
5 changes: 1 addition & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
"test:ui": "vitest --ui",
"coverage": "vitest run --coverage",
"preview": "vite preview",
"devtools": "react-devtools",
"preinstall": "npx only-allow pnpm",
"storybook": "storybook dev -p 6006",
"build-storybook": "storybook build",
Expand All @@ -37,7 +36,6 @@
"husky": "^9.0.11",
"nanoid": "^5.0.6",
"react": "^18.2.0",
"react-devtools-core": "^5.0.0",
"react-dom": "^18.2.0",
"sass": "^1.71.1",
"sql.js": "1.10.2"
Expand Down Expand Up @@ -102,9 +100,8 @@
"postcss": "^8.4.35",
"prettier": "^3.2.5",
"react-dev-utils": "^12.0.1",
"react-devtools": "^5.0.0",
"storybook": "^7.6.17",
"typescript": "^5.3.3",
"typescript": "^5.4.3",
"unocss": "^0.58.6",
"unocss-preset-primitives": "0.0.2-beta.0",
"unplugin-icons": "^0.18.5",
Expand Down
Loading
Loading