diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..981005a --- /dev/null +++ b/.editorconfig @@ -0,0 +1,4 @@ +root = true + +[*] +indent_size = 2 diff --git a/.eslintrc.js b/.eslintrc.cjs similarity index 100% rename from .eslintrc.js rename to .eslintrc.cjs diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 88ad86b..69021e5 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -15,15 +15,15 @@ jobs: - name: Get tag number id: get_tag run: echo ::set-output name=TAG::$(echo "$GITHUB_REF" | cut -d / -f 3) - - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 # zizmor: ignore[artipacked] + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 # zizmor: ignore[artipacked] with: persist-credentials: true - - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4 + - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 with: - node-version: 20 + node-version: 22 registry-url: https://registry.npmjs.org/ - name: Cache node modules - uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4 + uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 env: cache-name: cache-node-modules with: diff --git a/.github/workflows/manual.yaml b/.github/workflows/manual.yaml index e6253a3..aa68b27 100644 --- a/.github/workflows/manual.yaml +++ b/.github/workflows/manual.yaml @@ -15,17 +15,17 @@ jobs: permissions: contents: write steps: - - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 # zizmor: ignore[artipacked] + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 # zizmor: ignore[artipacked] with: fetch-depth: 0 filter: 'blob:none' persist-credentials: true - - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4 + - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 with: - node-version: 20 + node-version: 22 registry-url: https://registry.npmjs.org/ - name: Cache node modules - uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4 + uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 env: cache-name: cache-node-modules with: diff --git a/.github/workflows/zizmor.yml b/.github/workflows/zizmor.yml index 13d8af5..7407d7c 100644 --- a/.github/workflows/zizmor.yml +++ b/.github/workflows/zizmor.yml @@ -14,11 +14,11 @@ jobs: contents: read steps: - - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: persist-credentials: false - - uses: zizmorcore/zizmor-action@b1d7e1fb5de872772f31590499237e7cce841e8e # v0.5.3 + - uses: zizmorcore/zizmor-action@70fb788f84895a7701f5643d103d587e460b5c99 # v0.6.3 with: config: .github/zizmor.yml advanced-security: "false" diff --git a/.prettierrc.js b/.prettierrc.cjs similarity index 100% rename from .prettierrc.js rename to .prettierrc.cjs diff --git a/src/components/Carousel/Carousel.tsx b/src/components/Carousel/Carousel.tsx index f34f14c..add28e7 100644 --- a/src/components/Carousel/Carousel.tsx +++ b/src/components/Carousel/Carousel.tsx @@ -177,7 +177,7 @@ const Carousel: (props: { aria-roledescription={ cardRef === undefined ? undefined - : accessibility?.carousel?.slideRoleDescription ?? 'Slide' + : (accessibility?.carousel?.slideRoleDescription ?? 'Slide') } > {cloneElement( diff --git a/src/components/Conversation/Conversation.tsx b/src/components/Conversation/Conversation.tsx index 1091c64..3fb80e2 100644 --- a/src/components/Conversation/Conversation.tsx +++ b/src/components/Conversation/Conversation.tsx @@ -44,7 +44,7 @@ const ConversationInnerContainer = styled.ul` ::-webkit-scrollbar { display: none; } -`; +`; const ConversationItemLi = styled.li` width: 100%; diff --git a/src/model/buttons.ts b/src/model/buttons.ts index ac58ff3..38a4087 100644 --- a/src/model/buttons.ts +++ b/src/model/buttons.ts @@ -5,10 +5,10 @@ export class QuickReply { imageUrl?: string; constructor( - label: string, - payload: string, - nlpText?: string, - imageUrl?: string, + label: string, + payload: string, + nlpText?: string, + imageUrl?: string, ) { this.label = label; this.payload = payload; @@ -24,10 +24,10 @@ export class PostBackButton { style?: string; constructor( - label: string, - payload: string, - imageUrl?: string, - style?: string, + label: string, + payload: string, + imageUrl?: string, + style?: string, ) { this.label = label; this.payload = payload; @@ -45,12 +45,12 @@ export class UrlButton { style?: string; constructor( - label: string, - url: string, - imageUrl?: string, - target?: string, - windowFeatures?: string, - style?: string, + label: string, + url: string, + imageUrl?: string, + target?: string, + windowFeatures?: string, + style?: string, ) { this.label = label; this.url = url;