Skip to content

Commit

Permalink
Bump typed-rest-client from 1.8.11 to 2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
fabasoad committed Jun 18, 2024
1 parent 9f5e6d1 commit 2b60e73
Show file tree
Hide file tree
Showing 6 changed files with 204 additions and 916 deletions.
42 changes: 0 additions & 42 deletions .eslintrc.json

This file was deleted.

44 changes: 3 additions & 41 deletions .github/workflows/linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,47 +8,9 @@ on: # yamllint disable-line rule:truthy
- main

jobs:
eslint:
name: ESLint
runs-on: ubuntu-latest
steps:
- name: Checkout ${{ github.repository }}
uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: ".tool-versions"
- name: Cache yarn dependencies
id: yarn-cache
uses: actions/cache@v4
with:
path: |
.yarn/cache
node_modules
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}-${{ hashFiles('**/.yarnrc.yml') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Compile
if: ${{ steps.yarn-cache.outputs.cache-hit != 'true' }}
run: yarn install
- name: Run ESLint
uses: sibiraj-s/action-eslint@v3
with:
all-files: "true"
ignore-patterns: |
.github
.yarn
coverage
dist
node_modules
eslint-args: "-o eslint-results.sarif -f ${{ github.workspace }}/node_modules/@microsoft/eslint-formatter-sarif/sarif.js"
extensions: "js,jsx,ts,tsx"
annotations: true
- name: Upload to GHAS
if: always()
uses: github/codeql-action/upload-sarif@v3
with:
category: "eslint"
sarif_file: "eslint-results.sarif"
js-lint:
name: JS Lint
uses: fabasoad/reusable-workflows/.github/workflows/wf-js-lint.yml@main
pre-commit:
name: Pre-commit
uses: fabasoad/reusable-workflows/.github/workflows/wf-pre-commit.yml@main
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name: Release
on:
push:
tags:
- 'v*.*.*'
- "v*.*.*"

jobs:
github:
Expand Down
81 changes: 81 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
{
"linter": {
"enabled": true,
"rules": {
"recommended": false,
"a11y": { "noBlankTarget": "error" },
"complexity": {
"noExtraBooleanCast": "error",
"noMultipleSpacesInRegularExpressionLiterals": "error",
"noUselessCatch": "error",
"noWith": "error"
},
"correctness": {
"noChildrenProp": "error",
"noConstAssign": "error",
"noConstantCondition": "error",
"noEmptyCharacterClassInRegex": "error",
"noEmptyPattern": "error",
"noGlobalObjectCalls": "error",
"noInnerDeclarations": "error",
"noInvalidConstructorSuper": "error",
"noNewSymbol": "error",
"noNonoctalDecimalEscape": "error",
"noPrecisionLoss": "error",
"noSelfAssign": "error",
"noSetterReturn": "error",
"noSwitchDeclarations": "error",
"noUndeclaredVariables": "error",
"noUnreachable": "error",
"noUnreachableSuper": "error",
"noUnsafeFinally": "error",
"noUnsafeOptionalChaining": "error",
"noUnusedLabels": "error",
"noUnusedVariables": "off",
"useIsNan": "error",
"useJsxKeyInIterable": "error",
"useValidForDirection": "error",
"useYield": "error"
},
"security": { "noDangerouslySetInnerHtml": "error" },
"style": {
"noArguments": "error",
"noVar": "error",
"useBlockStatements": "error",
"useConst": "error",
"useSingleVarDeclarator": "error"
},
"suspicious": {
"noAsyncPromiseExecutor": "error",
"noCatchAssign": "error",
"noClassAssign": "error",
"noCommentText": "error",
"noCompareNegZero": "error",
"noControlCharactersInRegex": "error",
"noDebugger": "error",
"noDuplicateCase": "error",
"noDuplicateClassMembers": "error",
"noDuplicateJsxProps": "error",
"noDuplicateObjectKeys": "error",
"noDuplicateParameters": "error",
"noEmptyBlockStatements": "error",
"noFallthroughSwitchClause": "error",
"noFunctionAssign": "error",
"noGlobalAssign": "error",
"noImportAssign": "error",
"noMisleadingCharacterClass": "error",
"noPrototypeBuiltins": "error",
"noRedeclare": "error",
"noShadowRestrictedNames": "error",
"noUnsafeNegation": "error",
"useGetterReturn": "error",
"useValidTypeof": "error"
}
},
"ignore": ["src/libs", "**/TestUtils.ts"]
},
"javascript": {
"globals": ["Atomics", "SharedArrayBuffer", "jest", "afterEach", "beforeAll", "beforeEach", "expect", "test", "describe"]
},
"overrides": [{ "include": ["**/*.spec.ts", "**/*.spec.tsx"] }]
}
12 changes: 4 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "translation-action",
"version": "3.1.2",
"version": "3.1.3",
"description": "This GitHub action translates any text from any language to any language.",
"main": "dist/index.js",
"scripts": {
"build": "ncc build -m src/index.ts",
"lint": "eslint --ext ts src",
"lint": "biome lint --write src",
"test": "jest --config=jest.config.json --coverage"
},
"repository": {
Expand All @@ -29,17 +29,13 @@
"cross-fetch": "4.0.0",
"deepl-node": "1.13.0",
"google-translate-api-x": "10.6.8",
"typed-rest-client": "1.8.11"
"typed-rest-client": "2.0.0"
},
"devDependencies": {
"@microsoft/eslint-formatter-sarif": "3.1.0",
"@biomejs/biome": "1.8.1",
"@types/jest": "29.5.12",
"@typescript-eslint/eslint-plugin": "7.13.0",
"@typescript-eslint/parser": "7.13.0",
"@vercel/ncc": "0.38.1",
"dotenv": "16.4.5",
"eslint": "8.57.0",
"eslint-config-google": "0.14.0",
"jest": "29.7.0",
"jest-circus": "29.7.0",
"mocha-param": "2.0.1",
Expand Down
Loading

0 comments on commit 2b60e73

Please sign in to comment.