Skip to content

Commit 47b3a3e

Browse files
committed
Update dependencies
1 parent d095475 commit 47b3a3e

10 files changed

Lines changed: 976 additions & 538 deletions

File tree

.eslintrc.cjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// eslint-disable-next-line no-undef
12
module.exports = {
23
env: { browser: true, es2020: true },
34
extends: [
@@ -10,5 +11,6 @@ module.exports = {
1011
plugins: ['react-refresh'],
1112
rules: {
1213
'react-refresh/only-export-components': 'warn',
14+
'@typescript-eslint/no-explicit-any': 'off',
1315
},
1416
}

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@ dist-ssr
2323
*.sw?
2424

2525
build
26-
tsconfig.node.tsbuildinfo
26+
*.tsbuildinfo
2727
vite.config.d.ts
2828
vite.config.js
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
22
"compilerOptions": {
33
"composite": true,
4-
"skipLibCheck": true,
4+
"noEmit": true,
55
"module": "ESNext",
66
"moduleResolution": "bundler",
7-
"allowSyntheticDefaultImports": true,
8-
"types": ["node"]
9-
},
10-
"include": ["vite.config.ts"]
11-
}
7+
"skipLibCheck": true,
8+
"lib": ["DOM", "DOM.Iterable", "ESNext"],
9+
"types": ["cypress"]
10+
}
11+
}

package-lock.json

Lines changed: 921 additions & 511 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"scripts": {
1111
"dev": "vite",
1212
"build": "tsc && vite build",
13+
"tsc": "tsc -p tsconfig.json && tsc -p cypress/tsconfig.json",
1314
"cypress:open": "cypress open",
1415
"lint": "eslint src --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
1516
"prettyp": "prettier --write \"./src/**/*.{ts,tsx,scss,json}\"",
@@ -31,14 +32,14 @@
3132
"@types/react": "^18.0.28",
3233
"@types/react-dom": "^18.0.11",
3334
"@types/uuid": "^9.0.1",
34-
"@typescript-eslint/eslint-plugin": "^5.57.1",
35-
"@typescript-eslint/parser": "^5.57.1",
35+
"@typescript-eslint/eslint-plugin": "^6.7.4",
36+
"@typescript-eslint/parser": "^6.7.4",
3637
"@vitejs/plugin-react": "^4.0.0",
37-
"cypress": "^12.10.0",
38+
"cypress": "^13.3.0",
3839
"eslint": "^8.38.0",
3940
"eslint-plugin-react-hooks": "^4.6.0",
4041
"eslint-plugin-react-refresh": "^0.4.0",
41-
"prettier": "^2.8.8",
42+
"prettier": "^3.0.3",
4243
"prettier-plugin-organize-imports": "^3.2.2",
4344
"typescript": "^5.0.2",
4445
"vite": "^4.3.2"

.prettierrc.cjs renamed to prettier.config.mjs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
module.exports = {
1+
export default {
22
printWidth: 160,
33
trailingComma: "all",
4-
// Plugins are now loaded explicitly
5-
pluginSearchDirs: false,
64
overrides: [
75
{
86
files: ["*.ts", "*.tsx"],

src/UserInput.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ export default class UserInput extends Component<IProps, IState> {
199199
return null;
200200
}
201201

202-
let options: any = [];
202+
let options: React.ReactNode[] = [];
203203
const selectedOption = this.state.npcOptions[userOption.optionName];
204204
if (enable) {
205205
let opts = userOption.options;

src/styles/Footer.scss

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,11 @@
6464

6565
.footer-outline {
6666
color: white;
67-
text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
67+
text-shadow:
68+
-1px -1px 0 #000,
69+
1px -1px 0 #000,
70+
-1px 1px 0 #000,
71+
1px 1px 0 #000;
6872
}
6973

7074
.EMD-button {

src/styles/custom-variables.scss

Lines changed: 33 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -780,7 +780,9 @@ $btn-font-size-lg: $input-btn-font-size-lg !default;
780780
$btn-border-width: $input-btn-border-width !default;
781781

782782
$btn-font-weight: $font-weight-normal !default;
783-
$btn-box-shadow: inset 0 1px 0 rgba($white, 0.15), 0 1px 1px rgba($black, 0.075) !default;
783+
$btn-box-shadow:
784+
inset 0 1px 0 rgba($white, 0.15),
785+
0 1px 1px rgba($black, 0.075) !default;
784786
$btn-focus-width: $input-btn-focus-width !default;
785787
$btn-focus-box-shadow: $input-btn-focus-box-shadow !default;
786788
$btn-disabled-opacity: 0.65 !default;
@@ -795,7 +797,11 @@ $btn-border-radius: $border-radius !default;
795797
$btn-border-radius-sm: $border-radius-sm !default;
796798
$btn-border-radius-lg: $border-radius-lg !default;
797799

798-
$btn-transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out !default;
800+
$btn-transition:
801+
color 0.15s ease-in-out,
802+
background-color 0.15s ease-in-out,
803+
border-color 0.15s ease-in-out,
804+
box-shadow 0.15s ease-in-out !default;
799805

800806
$btn-hover-bg-shade-amount: 15% !default;
801807
$btn-hover-bg-tint-amount: 15% !default;
@@ -873,7 +879,9 @@ $input-height: add($input-line-height * 1em, add($input-padding-y * 2, $input-he
873879
$input-height-sm: add($input-line-height * 1em, add($input-padding-y-sm * 2, $input-height-border, false)) !default;
874880
$input-height-lg: add($input-line-height * 1em, add($input-padding-y-lg * 2, $input-height-border, false)) !default;
875881

876-
$input-transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out !default;
882+
$input-transition:
883+
border-color 0.15s ease-in-out,
884+
box-shadow 0.15s ease-in-out !default;
877885

878886
$form-color-width: 3rem !default;
879887
// scss-docs-end form-input-variables
@@ -997,11 +1005,16 @@ $form-range-thumb-bg: $component-active-bg !default;
9971005
$form-range-thumb-border: 0 !default;
9981006
$form-range-thumb-border-radius: 1rem !default;
9991007
$form-range-thumb-box-shadow: 0 0.1rem 0.25rem rgba($black, 0.1) !default;
1000-
$form-range-thumb-focus-box-shadow: 0 0 0 1px $body-bg, $input-focus-box-shadow !default;
1008+
$form-range-thumb-focus-box-shadow:
1009+
0 0 0 1px $body-bg,
1010+
$input-focus-box-shadow !default;
10011011
$form-range-thumb-focus-box-shadow-width: $input-focus-width !default; // For focus box shadow issue in Edge
10021012
$form-range-thumb-active-bg: tint-color($component-active-bg, 70%) !default;
10031013
$form-range-thumb-disabled-bg: $gray-500 !default;
1004-
$form-range-thumb-transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out !default;
1014+
$form-range-thumb-transition:
1015+
background-color 0.15s ease-in-out,
1016+
border-color 0.15s ease-in-out,
1017+
box-shadow 0.15s ease-in-out !default;
10051018
// scss-docs-end form-range-variables
10061019

10071020
// scss-docs-start form-file-variables
@@ -1019,7 +1032,9 @@ $form-floating-input-padding-t: 1.625rem !default;
10191032
$form-floating-input-padding-b: 0.625rem !default;
10201033
$form-floating-label-opacity: 0.65 !default;
10211034
$form-floating-label-transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem) !default;
1022-
$form-floating-transition: opacity 0.1s ease-in-out, transform 0.1s ease-in-out !default;
1035+
$form-floating-transition:
1036+
opacity 0.1s ease-in-out,
1037+
transform 0.1s ease-in-out !default;
10231038
// scss-docs-end form-floating-variables
10241039

10251040
// Form validation
@@ -1076,7 +1091,10 @@ $nav-link-font-size: null !default;
10761091
$nav-link-font-weight: null !default;
10771092
$nav-link-color: $link-color !default;
10781093
$nav-link-hover-color: $link-hover-color !default;
1079-
$nav-link-transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out !default;
1094+
$nav-link-transition:
1095+
color 0.15s ease-in-out,
1096+
background-color 0.15s ease-in-out,
1097+
border-color 0.15s ease-in-out !default;
10801098
$nav-link-disabled-color: $gray-600 !default;
10811099

10821100
$nav-tabs-border-color: $gray-300 !default;
@@ -1221,7 +1239,11 @@ $pagination-disabled-color: $gray-600 !default;
12211239
$pagination-disabled-bg: $white !default;
12221240
$pagination-disabled-border-color: $gray-300 !default;
12231241

1224-
$pagination-transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out !default;
1242+
$pagination-transition:
1243+
color 0.15s ease-in-out,
1244+
background-color 0.15s ease-in-out,
1245+
border-color 0.15s ease-in-out,
1246+
box-shadow 0.15s ease-in-out !default;
12251247

12261248
$pagination-border-radius-sm: $border-radius-sm !default;
12271249
$pagination-border-radius-lg: $border-radius-lg !default;
@@ -1275,7 +1297,9 @@ $accordion-button-padding-y: $accordion-padding-y !default;
12751297
$accordion-button-padding-x: $accordion-padding-x !default;
12761298
$accordion-button-color: $accordion-color !default;
12771299
$accordion-button-bg: $accordion-bg !default;
1278-
$accordion-transition: $btn-transition, border-radius 0.15s ease !default;
1300+
$accordion-transition:
1301+
$btn-transition,
1302+
border-radius 0.15s ease !default;
12791303
$accordion-button-active-bg: tint-color($component-active-bg, 90%) !default;
12801304
$accordion-button-active-color: shade-color($primary, 10%) !default;
12811305

tsconfig.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@
1717
"strict": true,
1818
"noUnusedLocals": true,
1919
"noUnusedParameters": true,
20-
"noFallthroughCasesInSwitch": true
20+
"noFallthroughCasesInSwitch": true,
2121
},
2222
"include": ["src"],
23-
"references": [{ "path": "./tsconfig.node.json" }]
2423
}

0 commit comments

Comments
 (0)