Skip to content
Closed
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
28 changes: 26 additions & 2 deletions .codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
---
codecov:
notify:
after_n_builds: 2
after_n_builds: 7
wait_for_ci: true
require_ci_to_pass: true

comment:
after_n_builds: 2
after_n_builds: 7
behavior: default
layout: header,diff,flags,components,tree,footer
require_base: false
Expand All @@ -24,6 +24,10 @@ component_management:
- type: project
target: 100%
individual_components:
- component_id: internal
name: internal
paths:
- src/internal/*.mts
- component_id: lib
name: lib
paths:
Expand Down Expand Up @@ -76,6 +80,18 @@ coverage:
threshold: 0%

flags:
bun-canary:
carryforward: false
paths:
- src/
bun-latest:
carryforward: false
paths:
- src/
node24:
carryforward: false
paths:
- src/
node23:
carryforward: false
paths:
Expand All @@ -84,6 +100,14 @@ flags:
carryforward: false
paths:
- src/
node21:
carryforward: false
paths:
- src/
node20:
carryforward: false
paths:
- src/

github_checks:
annotations: true
Expand Down
13 changes: 2 additions & 11 deletions .dictionary.txt
Original file line number Diff line number Diff line change
@@ -1,28 +1,19 @@
attw
cefc
codecov
commitlintrc
dedupe
dessant
devlop
docast
dohm
dprint
dirents
fbca
ggshield
fldv
gpgsign
hmarr
jchen
kaisugi
ksort
lcov
mkbuild
nocase
nvmrc
pkgs
preid
remarkrc
sarif
shfmt
unstub
vates
Expand Down
33 changes: 24 additions & 9 deletions .dprint.jsonc
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"$schema": "https://dprint.dev/schemas/v0.json",
"excludes": [
"!*.scratch.*",
"!scratch.*",
"**/*.patch",
"**/*.snap",
Expand All @@ -10,21 +11,19 @@
".git/",
".husky/_/",
".yarn/",
"node_modules/",
"yarn.lock"
],
"exec": {
"commands": [
{
"command": "node --experimental-strip-types --experimental-transform-types ./dprint/prettier.mts {{file_path}}",
"exts": ["css", "html", "json5", "scss", "yaml", "yml"],
"stdin": true
},
{
"cacheKeyFiles": ["package.json"],
"command": "node --experimental-strip-types --experimental-transform-types ./dprint/remark.mts {{file_path}}",
"exts": ["md", "mdx"],
"stdin": true
},
{
"cacheKeyFiles": [".editorconfig"],
"command": "node --experimental-strip-types --experimental-transform-types ./dprint/shfmt.mts {{file_path}}",
"exts": ["sh", "zsh"],
"fileNames": [
Expand Down Expand Up @@ -61,9 +60,10 @@
"lineWidth": 80,
"newLineKind": "lf",
"plugins": [
"https://plugins.dprint.dev/typescript-0.91.6.wasm",
"https://plugins.dprint.dev/json-0.19.3.wasm",
"https://plugins.dprint.dev/exec-0.5.0.json@8d9972eee71fa1590e04873540421f3eda7674d0f1aae3d7c788615e7b7413d0"
"https://plugins.dprint.dev/typescript-0.95.12.wasm",
"https://plugins.dprint.dev/json-0.21.0.wasm",
"https://plugins.dprint.dev/g-plane/pretty_yaml-v0.5.1.wasm",
"https://plugins.dprint.dev/exec-0.6.0.json@a054130d458f124f9b5c91484833828950723a5af3f8ff2bd1523bd47b83b364"
],
"typescript": {
"arrowFunction.useParentheses": "preferNone",
Expand Down Expand Up @@ -129,5 +129,20 @@
"useBraces": "maintain",
"whileStatement.spaceAfterWhileKeyword": true
},
"useTabs": false
"useTabs": false,
"yaml": {
"braceSpacing": false,
"bracketSpacing": false,
"flowMap.preferSingleLine": false,
"flowSequence.preferSingleLine": false,
"formatComments": true,
"ignoreCommentDirective": "dprint-ignore",
"indentBlockSequenceInMap": true,
"lineBreak": "lf",
"printWidth": 100,
"quotes": "preferSingle",
"trailingComma": false,
"trimTrailingWhitespaces": true,
"trimTrailingZero": false
}
}
2 changes: 0 additions & 2 deletions .env.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,3 @@
[ -f $PWD/.env.repo ] && source $PWD/.env.repo
[ -f $PWD/.env.vars ] && source $PWD/.env.vars
HOMEBREW_BREWFILE=./Brewfile
NODE_NO_WARNINGS=1
NODE_OPTIONS='--experimental-strip-types --experimental-transform-types'
9 changes: 1 addition & 8 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -18,22 +18,15 @@
# ------------------------------------------------------------------------------
# TEXT FILE ATTRIBUTES
# ------------------------------------------------------------------------------
*.cjs text eol=lf
*.cts text eol=lf
*.gql text eol=lf
*.html text eol=lf diff=html
*.js text eol=lf
*.json text eol=lf linguist-language=JSON-with-Comments
*.json5 text eol=lf
*.jsonc text eol=lf
*.jsx text eol=lf
*.jsonc text eol=lf linguist-language=JSON-with-Comments
*.md text eol=lf diff=markdown
*.mjs text eol=lf
*.mts text eol=lf
*.sh text eol=lf
*.snap text eol=lf
*.ts text eol=lf
*.tsx text eol=lf
*.txt text eol=lf
*.yml text eol=lf

Expand Down
17 changes: 0 additions & 17 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,6 @@

---
version: 2
registries:
github:
token: ${{ secrets.GH_REGISTRY_TOKEN }}
type: npm-registry
url: https://npm.pkg.github.com
updates:
- package-ecosystem: github-actions
commit-message:
Expand All @@ -31,31 +26,19 @@ updates:
commitlint:
patterns:
- '@commitlint/*'
eslint:
patterns:
- '@eslint/js'
- '@types/eslint'
- '@types/eslint__js'
- eslint
flex-development:
patterns:
- '@flex-development/*'
remark:
patterns:
- 'remark-*'
- remark
typescript-eslint:
patterns:
- '@typescript-eslint/*'
- typescript-eslint
vitest:
patterns:
- '@vitest/*'
- vitest
labels:
- scope:dependencies
- type:build
registries:
- github
schedule:
interval: daily
37 changes: 24 additions & 13 deletions .github/infrastructure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,27 @@ branches:
required_status_checks:
checks:
- context: add-to-project
- context: artifacts
- context: auto-merge
- context: auto-review
- context: build
- context: changelog
- context: codecov/changes
- context: codecov/patch
- context: codecov/project
- context: codecov/project/internal
- context: codecov/project/lib
- context: commitlint
- context: dependabot-dedupe
- context: format
- context: gitguardian
- context: lint
- context: spelling
- context: test (22)
- context: test (24)
- context: test (23)
- context: typescript (5.6.3)
- context: typescript (5.7.2)
- context: test (22)
- context: test (21)
- context: test (20)
- context: test-bun (canary)
- context: test-bun (latest)
- context: typescript
strict: true
restrictions: null
environments:
Expand Down Expand Up @@ -136,11 +143,17 @@ labels:
- name: type:docs
description: documentation improvements
color: 0052cc
- name: type:bug
description: bug reports
color: 0052cc
- name: type:epic
description: epics
color: 0052cc
- name: type:feat
description: new features and improvements
description: new features
color: 0052cc
- name: type:fix
description: bug reports and fixes
description: bug fixes
color: 0052cc
- name: type:perf
description: performance updates
Expand All @@ -151,6 +164,9 @@ labels:
- name: type:refactor
description: code improvements
color: 0052cc
- name: type:story
description: user stories
color: 0052cc
- name: type:task
description: project tasks
color: 0052cc
Expand All @@ -171,11 +187,6 @@ repository:
homepage: https://github.com/flex-development/tsconfig-utils
is_template: false
private: false
security_and_analysis:
secret_scanning:
status: enabled
secret_scanning_push_protection:
status: disabled
squash_merge_commit_message: BLANK
squash_merge_commit_title: PR_TITLE
topics:
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/add-to-project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,13 @@ jobs:
with:
app-id: ${{ secrets.BOT_APP_ID }}
private-key: ${{ secrets.BOT_PRIVATE_KEY }}
- id: url
name: Get project url
run: |
echo "result=$(echo "${{ github.server_url }}/orgs/${{ github.repository_owner }}/projects/${{ vars.GH_PROJECT_NUMBER }}" | xargs)" >>$GITHUB_OUTPUT
- id: add-item
name: Add ${{ format('#{0}', github.event.number) }} to project
uses: actions/[email protected]
with:
github-token: ${{ steps.bot-token.outputs.token }}
project-url: |
${{ format('{0}/orgs/{1}/projects/{2}', github.server_url, github.repository_owner, vars.GH_PROJECT_NUMBER) }}
project-url: ${{ steps.url.outputs.result }}
10 changes: 8 additions & 2 deletions .github/workflows/auto-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,16 @@

---
name: auto-merge
on: pull_request
on:
pull_request:
types:
- opened
- ready_for_review
- reopened
- synchronize
jobs:
auto-merge:
if: github.event.pull_request.auto_merge == null && !github.event.pull_request.draft
if: ${{ !github.event.pull_request.draft }}
runs-on: ubuntu-latest
steps:
- id: debug
Expand Down
11 changes: 9 additions & 2 deletions .github/workflows/auto-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,13 @@

---
name: auto-review
on: pull_request
on:
pull_request:
types:
- opened
- ready_for_review
- reopened
- synchronize
concurrency:
cancel-in-progress: true
group: ${{ github.workflow }}-${{ github.ref }}
Expand All @@ -46,7 +52,8 @@ jobs:
run: |
GITHUB_TOKEN=

if [[ $GITHUB_ACTOR == 'flex-development[bot]' ]]; then
if [[ $GITHUB_ACTOR == '${{ vars.BOT_NAME }}' ]]; then
# bots cannot approve their own pull request.
GITHUB_TOKEN=${{ secrets.GH_REPO_TOKEN }}
else
GITHUB_TOKEN=${{ steps.bot-token.outputs.token }}
Expand Down
Loading
Loading