Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 1 addition & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
FROM --platform=linux/amd64 mcr.microsoft.com/devcontainers/typescript-node:dev-22-bookworm
11 changes: 9 additions & 2 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
{
"forwardPorts": [8000],
"image": "mcr.microsoft.com/devcontainers/typescript-node",
"build": {
"dockerfile": "Dockerfile"
},
"features": {
"ghcr.io/devcontainers/features/docker-in-docker:2": {}
},
"forwardPorts": [
8000
],
"remoteUser": "node",
"updateContentCommand": "npm clean-install && npm run build"
}
20 changes: 10 additions & 10 deletions .eslintrc.production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,15 @@ rules:
- '**/*.css'
- dotenv/config
settings:
import/extensions:
- .cjs
- .mjs
- .js
- .jsx
- .cts
- .mts
- .ts
- .tsx
import/resolver:
node: true
node:
extensions:
- .cjs
- .mjs
- .js
- .jsx
- .cts
- .mts
- .ts
- .tsx
typescript: true
4 changes: 4 additions & 0 deletions .eslintrc.react.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
extends:
- plugin:react/recommended
- plugin:react-hooks/recommended
plugins:
- react
- react-hooks
settings:
react:
version: 18.3.1
rules:
react-hooks/refs: off
11 changes: 11 additions & 0 deletions .eslintrc.test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
env:
commonjs: true
es2021: true
es2022: true
jest: true
rules:
# Disable for convenience
react/display-name: off
# Disable for convenience
react/prop-types: off
'@typescript-eslint/no-require-imports': off
2 changes: 1 addition & 1 deletion .eslintrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ overrides:
- '**/*.mts'
- '**/*.ts'
- '**/*.tsx'
- extends: .eslintrc.jest.yml
- extends: .eslintrc.test.yml
files:
- '**/__tests__/**'
- '**/*.spec.cjs'
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/bump-dependencies.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Bump dependencies
name: 🧼 Bump dependencies

on:
workflow_dispatch: {}
Expand All @@ -9,6 +9,6 @@ jobs:
contents: write
id-token: write
secrets:
APP_ID: ${{ secrets.WORKFLOW_BOT_APP_ID }}
PRIVATE_KEY: ${{ secrets.WORKFLOW_BOT_PRIVATE_KEY }}
WORKFLOW_BOT_APP_ID: ${{ secrets.WORKFLOW_BOT_APP_ID }}
WORKFLOW_BOT_PRIVATE_KEY: ${{ secrets.WORKFLOW_BOT_PRIVATE_KEY }}
uses: compulim/workflows/.github/workflows/bump-dependencies.yml@main
4 changes: 2 additions & 2 deletions .github/workflows/bump-scaffold.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: Bump scaffold
name: 🧼 Bump scaffold

on:
workflow_dispatch:
inputs:
package-name:
default: react-dictate-button
default: 'react-dictate-button'
description: Name of the package
required: true
type: string
Expand Down
9 changes: 4 additions & 5 deletions .github/workflows/continuous-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,8 @@ jobs:
id-token: write
pages: write
secrets:
APP_ID: ${{ secrets.WORKFLOW_BOT_APP_ID }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
PRIVATE_KEY: ${{ secrets.WORKFLOW_BOT_PRIVATE_KEY }}
uses: compulim/workflows/.github/workflows/continuous-deployment.yml@main
WORKFLOW_BOT_APP_ID: ${{ secrets.WORKFLOW_BOT_APP_ID }}
WORKFLOW_BOT_PRIVATE_KEY: ${{ secrets.WORKFLOW_BOT_PRIVATE_KEY }}
uses: compulim/workflows/.github/workflows/continuous-deployment-oidc.yml@main
with:
package-name: react-dictate-button
package-name: 'react-dictate-button'
6 changes: 3 additions & 3 deletions .github/workflows/prepare-release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Prepare release
name: 🚢 Prepare release

on:
workflow_dispatch:
Expand All @@ -19,8 +19,8 @@ jobs:
contents: write
id-token: write
secrets:
APP_ID: ${{ secrets.WORKFLOW_BOT_APP_ID }}
PRIVATE_KEY: ${{ secrets.WORKFLOW_BOT_PRIVATE_KEY }}
WORKFLOW_BOT_APP_ID: ${{ secrets.WORKFLOW_BOT_APP_ID }}
WORKFLOW_BOT_PRIVATE_KEY: ${{ secrets.WORKFLOW_BOT_PRIVATE_KEY }}
uses: compulim/workflows/.github/workflows/prepare-release.yml@main
with:
version-to-bump: ${{ inputs.version-to-bump }}
9 changes: 4 additions & 5 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,9 @@ jobs:
pages: write
id-token: write
secrets:
APP_ID: ${{ secrets.WORKFLOW_BOT_APP_ID }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
PRIVATE_KEY: ${{ secrets.WORKFLOW_BOT_PRIVATE_KEY }}
uses: compulim/workflows/.github/workflows/publish-release.yml@main
WORKFLOW_BOT_APP_ID: ${{ secrets.WORKFLOW_BOT_APP_ID }}
WORKFLOW_BOT_PRIVATE_KEY: ${{ secrets.WORKFLOW_BOT_PRIVATE_KEY }}
uses: compulim/workflows/.github/workflows/publish-release-oidc.yml@main
with:
package-name: react-dictate-button
package-name: 'react-dictate-button'
tag: ${{ github.ref_name }}
2 changes: 1 addition & 1 deletion .github/workflows/pull-request-validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ jobs:
switch: [current, react-16, react-17, react-18]
uses: compulim/workflows/.github/workflows/pull-request-validation.yml@main
with:
package-name: react-dictate-button
package-name: 'react-dictate-button'
skip-integration-test: false
switch: ${{ matrix.switch }}
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ignore-scripts=true
2 changes: 1 addition & 1 deletion .prettierrc.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
arrowParens: avoid
bracketSameLine: false
bracketSpacing: true
endOfLine: auto
jsxBracketSameLine: false
printWidth: 120
proseWrap: preserve
quoteProps: as-needed
Expand Down
Loading