From 6d469a5ec0f34698164de35ed6a381831e3b6e1d Mon Sep 17 00:00:00 2001 From: Justin Dalrymple Date: Sun, 28 Jan 2024 15:11:28 -0500 Subject: [PATCH] Formatting --- .autorc.yml | 4 +- .codeclimate.yml | 6 +-- .eslintignore | 4 +- .eslintrc.yml | 2 +- .github/ISSUE_TEMPLATE/1-bug.md | 3 +- .github/ISSUE_TEMPLATE/2-feature-proposal.md | 3 +- .github/ISSUE_TEMPLATE/3-question.md | 3 +- .github/ISSUE_TEMPLATE/4-technical-debt.md | 1 + .gitlab-ci.yml | 4 +- .prettierignore | 4 +- README.md | 7 ++- docs/FAQ.md | 10 ++-- docs/TESTING.md | 1 - jest.config.base.mjs | 7 ++- lint-staged.config.base.mjs | 10 ++-- nx.json | 53 +++---------------- package.json | 14 ++--- packages/cli/jest.config.mjs | 4 +- packages/cli/lint-staged.config.mjs | 2 +- packages/cli/package.json | 13 +---- packages/cli/tsconfig.json | 6 +-- packages/core/lint-staged.config.mjs | 2 +- packages/core/package.json | 13 +---- packages/core/tsconfig.json | 6 +-- .../requester-utils/lint-staged.config.mjs | 2 +- packages/requester-utils/package.json | 13 +---- packages/requester-utils/tsconfig.json | 6 +-- packages/rest/lint-staged.config.mjs | 2 +- packages/rest/package.json | 13 +---- packages/rest/playwright.config.mjs | 20 +++---- packages/rest/test/assets/test-import.html | 46 ++++++++-------- packages/rest/tsconfig.json | 6 +-- prettier.config.cjs | 14 ++--- 33 files changed, 117 insertions(+), 187 deletions(-) diff --git a/.autorc.yml b/.autorc.yml index ec0bb49c7..2458c0253 100644 --- a/.autorc.yml +++ b/.autorc.yml @@ -8,10 +8,10 @@ plugins: - ./scripts/auto-before-commit-changelog-plugin.js - - omit-release-notes - username: - - coqbot + - coqbot - - omit-commits - username: - - coqbot + - coqbot prereleaseBranches: - next diff --git a/.codeclimate.yml b/.codeclimate.yml index 2b60ca85e..d9b6dfe7e 100644 --- a/.codeclimate.yml +++ b/.codeclimate.yml @@ -9,6 +9,6 @@ checks: enabled: false exclude_patterns: - - "**/test/" - - "**/*.d.ts" - - ".yarn/" + - '**/test/' + - '**/*.d.ts' + - '.yarn/' diff --git a/.eslintignore b/.eslintignore index a741ebf28..cb259564b 100644 --- a/.eslintignore +++ b/.eslintignore @@ -9,5 +9,7 @@ reports yarn-error.log .env .npmrc -.turbo scripts +.yarn +.nx +.husky \ No newline at end of file diff --git a/.eslintrc.yml b/.eslintrc.yml index 9ce9dadad..e590d56f7 100644 --- a/.eslintrc.yml +++ b/.eslintrc.yml @@ -30,7 +30,7 @@ plugins: - jest-extended rules: - "@typescript-eslint/dot-notation": error + '@typescript-eslint/dot-notation': error no-shadow: off import/no-default-export: off import/prefer-default-export: off diff --git a/.github/ISSUE_TEMPLATE/1-bug.md b/.github/ISSUE_TEMPLATE/1-bug.md index d857e3364..653d89dfb 100644 --- a/.github/ISSUE_TEMPLATE/1-bug.md +++ b/.github/ISSUE_TEMPLATE/1-bug.md @@ -1,5 +1,5 @@ --- -name: "🐞 Bug report" +name: '🐞 Bug report' labels: bug about: Something is not working as it should --- @@ -33,5 +33,6 @@ logs, and code as it's very hard to read otherwise.) --> **Checklist** + - [ ] I have checked that this is not a duplicate issue. - [ ] I have read the documentation. diff --git a/.github/ISSUE_TEMPLATE/2-feature-proposal.md b/.github/ISSUE_TEMPLATE/2-feature-proposal.md index 6ec2a87b8..45f0b104b 100644 --- a/.github/ISSUE_TEMPLATE/2-feature-proposal.md +++ b/.github/ISSUE_TEMPLATE/2-feature-proposal.md @@ -1,5 +1,5 @@ --- -name: "🚀 Feature request" +name: '🚀 Feature request' labels: feature about: Suggest an idea --- @@ -13,5 +13,6 @@ about: Suggest an idea **Checklist** + - [ ] I have checked that this is not a duplicate issue. - [ ] I have read the documentation. diff --git a/.github/ISSUE_TEMPLATE/3-question.md b/.github/ISSUE_TEMPLATE/3-question.md index 5e5867164..78d811838 100644 --- a/.github/ISSUE_TEMPLATE/3-question.md +++ b/.github/ISSUE_TEMPLATE/3-question.md @@ -1,5 +1,5 @@ --- -name: "❓ Question" +name: '❓ Question' labels: question about: Something is unclear or needs to be discussed --- @@ -11,5 +11,6 @@ about: Something is unclear or needs to be discussed **Checklist** + - [ ] I have checked that this is not a duplicate issue. - [ ] I have read the documentation. diff --git a/.github/ISSUE_TEMPLATE/4-technical-debt.md b/.github/ISSUE_TEMPLATE/4-technical-debt.md index d46e553cc..97f285509 100644 --- a/.github/ISSUE_TEMPLATE/4-technical-debt.md +++ b/.github/ISSUE_TEMPLATE/4-technical-debt.md @@ -16,5 +16,6 @@ logs, and code as it's very hard to read otherwise.) --> **Checklist** + - [ ] I have checked that this is not a duplicate issue. - [ ] I have read the documentation. diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 33a1af78d..fa291a4e4 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -130,7 +130,7 @@ test:unit:setup: stage: setup image: alpine/curl needs: - - install + - install script: - mkdir -p tmp/codeclimate - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./tmp/codeclimate/cc-test-reporter @@ -144,7 +144,7 @@ test:live:setup: stage: setup image: gcr.io/google.com/cloudsdktool/cloud-sdk:alpine needs: - - install + - install rules: - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH when: on_success diff --git a/.prettierignore b/.prettierignore index 608ccac74..e5b6d3b69 100644 --- a/.prettierignore +++ b/.prettierignore @@ -3,5 +3,7 @@ coverage dist package.json yarn.lock +.yarn +.nx +.husky CHANGELOG.md -/.nx/cache \ No newline at end of file diff --git a/README.md b/README.md index 005380285..e8315c1a4 100644 --- a/README.md +++ b/README.md @@ -44,10 +44,10 @@

- ->A typed [GitLab](https://gitlab.com/gitlab-org/gitlab/) SDK for Browser, Node.js, Deno and CLI usage. +> A typed [GitLab](https://gitlab.com/gitlab-org/gitlab/) SDK for Browser, Node.js, Deno and CLI usage. ## Table of Contents + - [Features](#features) - [Packages](#packages) - [Usage](./packages/rest/README.md#usage) @@ -56,18 +56,21 @@ - [Changelog](./CHANGELOG.md) ## Features + - **Complete** - All features of Gitlab's exposed APIs are covered up to version [16.0](https://docs.gitlab.com/16.0/ee/api/api_resources.html). See [here](./packages/core/README.md#supported-apis) for the full list. - **Universal** - Works in all modern browsers, [Node.js](https://nodejs.org/), and [Deno](https://deno.land/) and supports [CLI](https://www.npmjs.com/package/@gitbeaker/cli) usage. - **Tested** - All libraries have > 80% test coverage. - **Typed** - All libraries have extensive TypeScript declarations. ## Packages + - :wrench: [**@gitbeaker/requester-utils**](https://www.npmjs.com/package/@gitbeaker/requester-utils) - Utilities for the underlying HTTP request functionality. - :scroll: [**@gitbeaker/core**](https://www.npmjs.com/package/@gitbeaker/core) - The core API detailing all the Gitlab resource support. - :computer: [**@gitbeaker/rest**](https://www.npmjs.com/package/@gitbeaker/rest) - The Node.js, Deno and Modern Browser wrapper around the gitbeaker core API, using native fetch. This is the primary library for consumption. - :pager: [**@gitbeaker/cli**](https://www.npmjs.com/package/@gitbeaker/cli) - The CLI Wrapper around the @gitbeaker/rest distribution. ## Contributors + diff --git a/docs/FAQ.md b/docs/FAQ.md index 787cb1473..07801bd7c 100644 --- a/docs/FAQ.md +++ b/docs/FAQ.md @@ -35,10 +35,10 @@ Since everything builds off fetch support, applying a poly fill will allow for N 2. Set the following in your entry point: ```js -const semver = require('semver') +const semver = require('semver'); -if ( semver.lt(process.version, '20.0.0') ) { - global.fetch = require('node-fetch') +if (semver.lt(process.version, '20.0.0')) { + global.fetch = require('node-fetch'); } ``` @@ -47,9 +47,9 @@ if ( semver.lt(process.version, '20.0.0') ) { This is caused by the internal undici fetch implementation's dispatcher [defaults](https://github.com/nodejs/undici/issues/1373) for the headers and body timeout when performing a request. In the future we will support modifying these properties in a more defined way, but for now, once can override this by setting the global symbol at the beginning of your script: ```js -import { Agent } from 'undici' +import { Agent } from 'undici'; -globalThis[Symbol.for("undici.globalDispatcher.1")] = new Agent({ +globalThis[Symbol.for('undici.globalDispatcher.1')] = new Agent({ headersTimeout: 0, bodyTimeout: 0, }); diff --git a/docs/TESTING.md b/docs/TESTING.md index 9d836a309..1b32e3e4f 100644 --- a/docs/TESTING.md +++ b/docs/TESTING.md @@ -1,4 +1,3 @@ - Testing is a work-in-progress right now but here is the start. **Unit Tests** diff --git a/jest.config.base.mjs b/jest.config.base.mjs index f58b891a1..02cc1bdeb 100644 --- a/jest.config.base.mjs +++ b/jest.config.base.mjs @@ -4,9 +4,12 @@ export default { coverageDirectory: 'coverage', collectCoverage: true, coverageReporters: ['lcov', 'text', 'text-summary', 'cobertura'], - reporters: ['default', ['jest-junit', { outputDirectory: 'reports', outputName: 'nodejs_junit.xml' }]], + reporters: [ + 'default', + ['jest-junit', { outputDirectory: 'reports', outputName: 'nodejs_junit.xml' }], + ], moduleNameMapper: { - '^@gitbeaker/(.*)$': '/../$1/src' + '^@gitbeaker/(.*)$': '/../$1/src', }, transform: { '^.+\\.(t|j)sx?$': '@swc/jest', diff --git a/lint-staged.config.base.mjs b/lint-staged.config.base.mjs index 82a0fd9b2..57a5945af 100644 --- a/lint-staged.config.base.mjs +++ b/lint-staged.config.base.mjs @@ -1,8 +1,4 @@ export default { - "**/*.{ts,js,json,md,yml}": [ - "prettier --write" - ], - "**/*.{ts,js}": [ - "eslint --fix" - ] -} + '**/*.{ts,js,json,md,yml}': ['prettier --write'], + '**/*.{ts,js}': ['eslint --fix'], +}; diff --git a/nx.json b/nx.json index d4af45392..3bab9c224 100644 --- a/nx.json +++ b/nx.json @@ -1,50 +1,24 @@ { "targetDefaults": { "test:unit": { - "outputs": [ - "{projectRoot}/coverage", - "{projectRoot}/reports" - ], + "outputs": ["{projectRoot}/coverage", "{projectRoot}/reports"], "cache": true }, "test:integration": { - "outputs": [ - "{projectRoot}/coverage", - "{projectRoot}/reports" - ], + "outputs": ["{projectRoot}/coverage", "{projectRoot}/reports"], "cache": true }, "build": { - "dependsOn": [ - "^build" - ], - "outputs": [ - "{projectRoot}/dist" - ], + "dependsOn": ["^build"], + "outputs": ["{projectRoot}/dist"], "cache": true }, "test:types": { - "dependsOn": [ - "build" - ], + "dependsOn": ["build"], "cache": true }, "test:e2e": { - "dependsOn": [ - "build" - ], - "cache": true - }, - "test:e2e:browser": { - "dependsOn": [ - "build" - ], - "cache": true - }, - "test:e2e:nodejs": { - "dependsOn": [ - "build" - ], + "dependsOn": ["build"], "cache": true }, "lint": { @@ -58,23 +32,12 @@ }, "format:fix": { "cache": true - }, - "test:integration:browser": { - "cache": true - }, - "test:integration:nodejs": { - "cache": true } }, "defaultBase": "main", "namedInputs": { - "default": [ - "{projectRoot}/**/*", - "sharedGlobals" - ], + "default": ["{projectRoot}/**/*", "sharedGlobals"], "sharedGlobals": [], - "production": [ - "default" - ] + "production": ["default"] } } diff --git a/package.json b/package.json index e6ae5b2aa..3dcd70b21 100644 --- a/package.json +++ b/package.json @@ -14,19 +14,19 @@ }, "scripts": { "build": "nx run-many --target=build", - "clean": "npx rimraf --glob '**/{tmp,dist,node_modules,coverage,reports}'", "lint": "nx run-many --target=lint", "lint:fix": "nx run-many --target=lint:fix", - "format": "nx run-many --target=format", - "format:fix": "nx run-many --target=format:fix", + "clean": "yarn dlx rimraf --glob '**/{tmp,dist,node_modules,coverage,reports}'", + "format:docs": "prettier './**/(*.json|*.yml|*.md|*.(c|m)js|*.(c|m)ts)' --ignore-path ./.prettierignore --check", + "format:docs:fix": "yarn format:docs --write", + "format:src": "prettier '**/{src,test,scripts}/**/*.ts' --ignore-path ./.prettierignore --check", + "format:src:fix": "yarn format:src --write", + "format": "yarn format:src && yarn format:docs", + "format:fix": "yarn format:src:fix && yarn format:docs:fix", "test:types": "nx run-many --target=test:types", "test:unit": "nx run-many --target=test:unit", "test:integration": "nx run-many --target=test:integration", - "test:integration:browser": "nx run-many --target=test:integration:browser", - "test:integration:nodejs": "nx run-many --target=test:integration:nodejs", "test:e2e": "nx run-many --target=test:e2e", - "test:e2e:browser": "nx run-many --target=test:e2e:browser", - "test:e2e:nodejs": "nx run-many --target=test:e2e:nodejs", "release:next": "auto next", "release:canary": "auto canary", "release": "auto shipit", diff --git a/packages/cli/jest.config.mjs b/packages/cli/jest.config.mjs index 91d87e11e..1c657b23b 100644 --- a/packages/cli/jest.config.mjs +++ b/packages/cli/jest.config.mjs @@ -5,7 +5,7 @@ export default { displayName: 'Gitbeaker CLI', testTimeout: 10000, moduleNameMapper: { - "@gitbeaker/core/map.json": '/test/__mocks__/map.json', + '@gitbeaker/core/map.json': '/test/__mocks__/map.json', ...base.moduleNameMapper, - } + }, }; diff --git a/packages/cli/lint-staged.config.mjs b/packages/cli/lint-staged.config.mjs index 2e761d30e..0cd1bc956 100644 --- a/packages/cli/lint-staged.config.mjs +++ b/packages/cli/lint-staged.config.mjs @@ -1 +1 @@ -export { default } from '../../lint-staged.config.base.mjs' +export { default } from '../../lint-staged.config.base.mjs'; diff --git a/packages/cli/package.json b/packages/cli/package.json index ac3468a48..fd742ec79 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -34,17 +34,8 @@ "build": "tsup src/index.ts --format esm --treeshake --target node18", "test:unit": "jest --maxWorkers=50% test/unit", "test:e2e": "jest --maxWorkers=50% test/e2e", - "format:docs": "prettier './(*.json|*.yml|*.md|*.(c|m)js|*.(c|m)ts)' --ignore-path ../../.prettierignore --check", - "format:docs:fix": "yarn format:docs --write", - "format:src": "prettier '{src,test}/**/*.ts' --ignore-path ../../.prettierignore", - "format:src:fix": "yarn format:src --write", - "format": "yarn format:src && yarn format:docs", - "format:fix": "yarn format:src:fix && yarn format:docs:fix", - "lint": "eslint '{src,test}/**/*.ts'", - "lint:fix": "yarn lint --fix", - "release:rc": "auto next", - "release:canary": "auto canary", - "release": "auto shipit" + "lint": "eslint '**/{src,test,scripts}/**/*.ts'", + "lint:fix": "yarn lint --fix" }, "dependencies": { "@gitbeaker/core": "^39.33.0", diff --git a/packages/cli/tsconfig.json b/packages/cli/tsconfig.json index 6762e0cff..42570a1aa 100644 --- a/packages/cli/tsconfig.json +++ b/packages/cli/tsconfig.json @@ -3,8 +3,8 @@ "compilerOptions": { "paths": { "@gitbeaker/core/map.json": ["../core/dist/map.json"], - "@gitbeaker/*": ["../*/src"] - } + "@gitbeaker/*": ["../*/src"], + }, }, - "include": ["./**/*.ts"] + "include": ["./**/*.ts"], } diff --git a/packages/core/lint-staged.config.mjs b/packages/core/lint-staged.config.mjs index 2e761d30e..0cd1bc956 100644 --- a/packages/core/lint-staged.config.mjs +++ b/packages/core/lint-staged.config.mjs @@ -1 +1 @@ -export { default } from '../../lint-staged.config.base.mjs' +export { default } from '../../lint-staged.config.base.mjs'; diff --git a/packages/core/package.json b/packages/core/package.json index 05b5e0b78..d88bcd70e 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -47,17 +47,8 @@ "test:types": "tsc", "test:integration": "jest --maxWorkers=50% test/integration", "test:unit": "jest --maxWorkers=50% test/unit", - "format:docs": "prettier './(*.json|*.yml|*.md|*.(c|m)js|*.(c|m)ts)' --ignore-path ../../.prettierignore --check", - "format:docs:fix": "yarn format:docs --write", - "format:src": "prettier '{src,test}/**/*.ts' --ignore-path ../../.prettierignore", - "format:src:fix": "yarn format:src --write", - "format": "yarn format:src && yarn format:docs", - "format:fix": "yarn format:src:fix && yarn format:docs:fix", - "lint": "eslint '{src,test,scripts}/**/*.ts'", - "lint:fix": "yarn lint --fix", - "release:rc": "auto next", - "release:canary": "auto canary", - "release": "auto shipit" + "lint": "eslint '**/{src,test,scripts}/**/*.ts'", + "lint:fix": "yarn lint --fix" }, "dependencies": { "@gitbeaker/requester-utils": "^39.33.0", diff --git a/packages/core/tsconfig.json b/packages/core/tsconfig.json index 3b8abba79..ec75fb7fd 100644 --- a/packages/core/tsconfig.json +++ b/packages/core/tsconfig.json @@ -2,8 +2,8 @@ "extends": "../../tsconfig.base.json", "compilerOptions": { "paths": { - "@gitbeaker/*": ["../*/src"] - } + "@gitbeaker/*": ["../*/src"], + }, }, - "include": ["./**/*.ts"] + "include": ["./**/*.ts"], } diff --git a/packages/requester-utils/lint-staged.config.mjs b/packages/requester-utils/lint-staged.config.mjs index 2e761d30e..0cd1bc956 100644 --- a/packages/requester-utils/lint-staged.config.mjs +++ b/packages/requester-utils/lint-staged.config.mjs @@ -1 +1 @@ -export { default } from '../../lint-staged.config.base.mjs' +export { default } from '../../lint-staged.config.base.mjs'; diff --git a/packages/requester-utils/package.json b/packages/requester-utils/package.json index 41725c830..f22c1b306 100644 --- a/packages/requester-utils/package.json +++ b/packages/requester-utils/package.json @@ -43,17 +43,8 @@ "test:types": "tsc", "test:integration": "jest --maxWorkers=50% test/integration", "test:unit": "jest --maxWorkers=50% test/unit", - "format:docs": "prettier './(*.json|*.yml|*.md|*.(c|m)js|*.(c|m)ts)' --ignore-path ../../.prettierignore --check", - "format:docs:fix": "yarn format:docs --write", - "format:src": "prettier '{src,test}/**/*.ts' --ignore-path ../../.prettierignore", - "format:src:fix": "yarn format:src --write", - "format": "yarn format:src && yarn format:docs", - "format:fix": "yarn format:src:fix && yarn format:docs:fix", - "lint": "eslint '{src,test}/**/*.ts'", - "lint:fix": "yarn lint --fix", - "release:rc": "auto next", - "release:canary": "auto canary", - "release": "auto shipit" + "lint": "eslint '**/{src,test,scripts}/**/*.ts'", + "lint:fix": "yarn lint --fix" }, "dependencies": { "picomatch-browser": "^2.2.6", diff --git a/packages/requester-utils/tsconfig.json b/packages/requester-utils/tsconfig.json index 3b8abba79..ec75fb7fd 100644 --- a/packages/requester-utils/tsconfig.json +++ b/packages/requester-utils/tsconfig.json @@ -2,8 +2,8 @@ "extends": "../../tsconfig.base.json", "compilerOptions": { "paths": { - "@gitbeaker/*": ["../*/src"] - } + "@gitbeaker/*": ["../*/src"], + }, }, - "include": ["./**/*.ts"] + "include": ["./**/*.ts"], } diff --git a/packages/rest/lint-staged.config.mjs b/packages/rest/lint-staged.config.mjs index 2e761d30e..0cd1bc956 100644 --- a/packages/rest/lint-staged.config.mjs +++ b/packages/rest/lint-staged.config.mjs @@ -1 +1 @@ -export { default } from '../../lint-staged.config.base.mjs' +export { default } from '../../lint-staged.config.base.mjs'; diff --git a/packages/rest/package.json b/packages/rest/package.json index 0fed34e86..f74135567 100644 --- a/packages/rest/package.json +++ b/packages/rest/package.json @@ -49,17 +49,8 @@ "test:integration:browser": "playwright test --project=integration", "test:integration": "test:integration:browser", "test:unit": "jest --maxWorkers=50% test/unit", - "format:docs": "prettier './(*.json|*.yml|*.md|*.(c|m)js|*.(c|m)ts)' --ignore-path ../../.prettierignore --check", - "format:docs:fix": "yarn format:docs --write", - "format:src": "prettier '{src,test}/**/*.ts' --ignore-path ../../.prettierignore --check", - "format:src:fix": "yarn format:src --write", - "format": "yarn format:src && yarn format:docs", - "format:fix": "yarn format:src:fix && yarn format:docs:fix", - "lint": "eslint '{src,test}/**/*.ts'", - "lint:fix": "yarn lint --fix", - "release:rc": "auto next", - "release:canary": "auto canary", - "release": "auto shipit" + "lint": "eslint '**/{src,test,scripts}/**/*.ts'", + "lint:fix": "yarn lint --fix" }, "dependencies": { "@gitbeaker/core": "^39.33.0", diff --git a/packages/rest/playwright.config.mjs b/packages/rest/playwright.config.mjs index ca9b30b28..6d6c73f3a 100644 --- a/packages/rest/playwright.config.mjs +++ b/packages/rest/playwright.config.mjs @@ -1,25 +1,19 @@ import { defineConfig } from '@playwright/test'; const launchOptions = { - args: [ - '--disable-web-security', - '--allow-file-access-from-files' - ], -} + args: ['--disable-web-security', '--allow-file-access-from-files'], +}; export default defineConfig({ testMatch: /.*.ts/, testMatch: /.*.ts/, - reporter: [ - ['line'], - ['junit', { outputFile: './reports/browser_junit.xml' }], - ], + reporter: [['line'], ['junit', { outputFile: './reports/browser_junit.xml' }]], projects: [ { name: 'e2e', use: { browserName: 'chromium', - launchOptions + launchOptions, }, testDir: './test/e2e/browser', }, @@ -27,9 +21,9 @@ export default defineConfig({ name: 'integration', use: { browserName: 'chromium', - launchOptions + launchOptions, }, testDir: './test/integration/browser', - } - ] + }, + ], }); diff --git a/packages/rest/test/assets/test-import.html b/packages/rest/test/assets/test-import.html index 6f15fa355..942b27272 100644 --- a/packages/rest/test/assets/test-import.html +++ b/packages/rest/test/assets/test-import.html @@ -1,28 +1,28 @@ - + - - - - Document - - - - + - + + diff --git a/packages/rest/tsconfig.json b/packages/rest/tsconfig.json index 3b8abba79..ec75fb7fd 100644 --- a/packages/rest/tsconfig.json +++ b/packages/rest/tsconfig.json @@ -2,8 +2,8 @@ "extends": "../../tsconfig.base.json", "compilerOptions": { "paths": { - "@gitbeaker/*": ["../*/src"] - } + "@gitbeaker/*": ["../*/src"], + }, }, - "include": ["./**/*.ts"] + "include": ["./**/*.ts"], } diff --git a/prettier.config.cjs b/prettier.config.cjs index 273f6a692..b5965acbc 100644 --- a/prettier.config.cjs +++ b/prettier.config.cjs @@ -1,15 +1,15 @@ module.exports = { printWidth: 100, singleQuote: true, - trailingComma: "all", + trailingComma: 'all', tabWidth: 2, useTabs: false, overrides: [ { - files: "*.ts", + files: '*.ts', options: { - parser: "babel-ts" - } - } - ] -} + parser: 'babel-ts', + }, + }, + ], +};