Skip to content

Commit b185938

Browse files
authored
Merge pull request #2418 from hashicorp/alex-ju/upgrade-eslint-deps
Upgrade eslint dependencies
2 parents 2bd55b7 + aa9be9d commit b185938

File tree

9 files changed

+140
-219
lines changed

9 files changed

+140
-219
lines changed

.changeset/plenty-otters-fry.md

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
"@hashicorp/design-system-components": patch
3+
---
4+
5+
`Dropdown::Toggle::Chevron` - fix subcomponent signature
6+
7+
`hds-clipboard` modifier - extend error when copy action fails

packages/components/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@
7979
"@types/prismjs": "^1.26.4",
8080
"@types/qunit": "^2.19.10",
8181
"@types/rsvp": "^4.0.9",
82-
"@typescript-eslint/eslint-plugin": "^6.21.0",
83-
"@typescript-eslint/parser": "^6.21.0",
82+
"@typescript-eslint/eslint-plugin": "^8.5.0",
83+
"@typescript-eslint/parser": "^8.5.0",
8484
"babel-plugin-ember-template-compilation": "^2.2.4",
8585
"concurrently": "^8.2.2",
8686
"ember-basic-dropdown": "^8.1.0",

packages/components/src/components/hds/dropdown/toggle/chevron.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55

66
import templateOnlyComponent from '@ember/component/template-only';
77

8-
interface HdsDropdownToggleChevronSignature {}
8+
interface HdsDropdownToggleChevronSignature {
9+
Element: HTMLDivElement;
10+
}
911

1012
const HdsDropdownToggleChevron =
1113
templateOnlyComponent<HdsDropdownToggleChevronSignature>();

packages/components/src/modifiers/hds-clipboard.ts

+8-3
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,14 @@ export const writeTextToClipboard = async (
120120
} catch (error) {
121121
// clipboard write failed
122122
// this probably never happens (see comment above) or happens only for very old browsers that don't for which `navigator.clipboard` is undefined
123-
warn('copy action failed, please check your browser‘s permissions', {
124-
id: 'hds-clipboard.write-text-to-clipboard.catch-error',
125-
});
123+
warn(
124+
`copy action failed, please check your browser‘s permissions: ${JSON.stringify(
125+
error
126+
)}`,
127+
{
128+
id: 'hds-clipboard.write-text-to-clipboard.catch-error',
129+
}
130+
);
126131
return false;
127132
}
128133
} else {

packages/ember-flight-icons/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@
5656
"@glint/template": "^1.2.1",
5757
"@rollup/plugin-babel": "^6.0.4",
5858
"@tsconfig/ember": "^3.0.6",
59-
"@typescript-eslint/eslint-plugin": "^6.21.0",
60-
"@typescript-eslint/parser": "^6.21.0",
59+
"@typescript-eslint/eslint-plugin": "^8.5.0",
60+
"@typescript-eslint/parser": "^8.5.0",
6161
"babel-plugin-ember-template-compilation": "^2.2.1",
6262
"concurrently": "^8.2.2",
6363
"ember-template-lint": "^6.0.0",

packages/flight-icons/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@
3636
"@types/react": "^18.2.33",
3737
"@types/react-dom": "^18.2.14",
3838
"@types/svgo": "~1.3.6",
39-
"@typescript-eslint/eslint-plugin": "^6.21.0",
40-
"@typescript-eslint/parser": "^6.21.0",
39+
"@typescript-eslint/eslint-plugin": "^8.5.0",
40+
"@typescript-eslint/parser": "^8.5.0",
4141
"archiver": "^6.0.1",
4242
"chalk": "^4.1.2",
4343
"del": "^6.1.1",

packages/tokens/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
"@types/lodash": "^4.14.200",
2727
"@types/node": "^20.8.9",
2828
"@types/tinycolor2": "^1.4.5",
29-
"@typescript-eslint/eslint-plugin": "^4.33.0",
30-
"@typescript-eslint/parser": "^4.33.0",
29+
"@typescript-eslint/eslint-plugin": "^8.5.0",
30+
"@typescript-eslint/parser": "^8.5.0",
3131
"del": "^5.1.0",
3232
"eslint": "^7.32.0",
3333
"fs-extra": "^11.1.1",

showcase/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@
5454
"@tsconfig/ember": "^3.0.8",
5555
"@types/qunit": "^2.19.10",
5656
"@types/rsvp": "^4.0.9",
57-
"@typescript-eslint/eslint-plugin": "^6.21.0",
58-
"@typescript-eslint/parser": "^6.21.0",
57+
"@typescript-eslint/eslint-plugin": "^8.5.0",
58+
"@typescript-eslint/parser": "^8.5.0",
5959
"broccoli-asset-rev": "^3.0.0",
6060
"concurrently": "^8.2.2",
6161
"ember-a11y-testing": "^6.1.1",

0 commit comments

Comments
 (0)