Skip to content

Commit 8dd024e

Browse files
committed
1 parent 2ed290d commit 8dd024e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+1415
-1475
lines changed

.cspell.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,12 @@
2121
"**/LICENSE.md",
2222
"**/RELEASE_NOTES.md",
2323
".cspell.json",
24+
".dictionary.txt",
2425
".git/",
2526
".husky/_/",
2627
".vscode/settings.json",
2728
".yarn/",
29+
"dist/",
2830
"patches/",
2931
"yarn.lock"
3032
],

.dictionary.txt

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,10 @@ bdougie
33
cefc
44
codecov
55
commitlintrc
6-
dawidd
76
dedupe
87
dessant
98
dohm
109
dtos
11-
esbuild
1210
fbca
1311
ggshield
1412
gpgsign
@@ -19,17 +17,15 @@ keyid
1917
larsgw
2018
lcov
2119
lintstagedrc
22-
micnncim
2320
mkbuild
2421
mlly
2522
nocheck
2623
npmrc
2724
nvmrc
2825
pathe
2926
pkgs
30-
pnpm
3127
preid
32-
syncer
28+
tscu
3329
unstub
3430
vates
3531
yarnrc

.editorconfig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ max_line_length = 100
3838
[*.snap]
3939
max_line_length = 130
4040

41+
# xml
42+
[*.xml]
43+
max_line_length = 100
44+
4145
# yaml
4246
[*.yml]
4347
max_line_length = 100

.env.zsh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
# References:
44
#
55
# - https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/dotenv
6+
# - https://homebrew-file.readthedocs.io/en/latest/usage.html
67

7-
[ -f $PWD/.env.local ] && source $PWD/.env.local
8+
[ -f $PWD/.env.repo ] && source $PWD/.env.repo
9+
HOMEBREW_BREWFILE=./Brewfile
810
NODE_NO_WARNINGS=1

.eslintrc.base.cjs

Lines changed: 41 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -41,19 +41,12 @@ const config = {
4141
Chai: 'readonly',
4242
Console: 'readonly',
4343
JSX: jsx ? 'readonly' : false,
44-
LoadHook: 'readonly',
45-
LoadHookContext: 'readonly',
46-
LoadHookResult: 'readonly',
47-
LoaderHookFormat: 'readonly',
48-
NodeJS: 'readonly',
49-
ResolveHook: 'readonly',
50-
ResolveHookContext: 'readonly',
51-
ResolveHookResult: 'readonly'
44+
NodeJS: 'readonly'
5245
},
5346
parser: '@typescript-eslint/parser',
5447
parserOptions: {
5548
extraFileExtensions: [],
56-
project: ['./tsconfig.json', 'tsconfig.cjs.json'],
49+
project: ['./tsconfig.json', './tsconfig.cjs.json'],
5750
sourceType: require('./package.json').type,
5851
tsconfigRootDir: process.cwd(),
5952
warnOnUnsupportedTypeScriptVersion: true
@@ -147,23 +140,15 @@ const config = {
147140
default: {
148141
memberTypes: [
149142
'static-field',
150-
'decorated-field',
151143
'instance-field',
152-
'abstract-field',
153144
'constructor',
154145
'signature',
155146
'static-get',
156147
'static-set',
157148
'static-method',
158-
'decorated-get',
159-
'decorated-set',
160-
'decorated-method',
161149
'instance-get',
162150
'instance-set',
163-
'instance-method',
164-
'abstract-get',
165-
'abstract-set',
166-
'abstract-method'
151+
'instance-method'
167152
],
168153
order: 'alphabetically'
169154
}
@@ -431,7 +416,14 @@ const config = {
431416
'jsdoc/check-tag-names': [
432417
1,
433418
{
434-
definedTags: ['experimental', 'next', 'visibleName'],
419+
definedTags: [
420+
'experimental',
421+
'maximum',
422+
'minimum',
423+
'next',
424+
'packageManager',
425+
'visibleName'
426+
],
435427
jsxTags: false
436428
}
437429
],
@@ -579,6 +571,7 @@ const config = {
579571
'no-empty': [2, { allowEmptyCatch: true }],
580572
'no-empty-function': 0,
581573
'no-ex-assign': 0,
574+
'no-extra-parens': 0,
582575
'no-implied-eval': 0,
583576
'no-invalid-this': 0,
584577
'no-loop-func': 0,
@@ -688,7 +681,7 @@ const config = {
688681
],
689682
'unicorn/new-for-builtins': 2,
690683
'unicorn/no-abusive-eslint-disable': 2,
691-
'unicorn/no-array-callback-reference': 2,
684+
'unicorn/no-array-callback-reference': 0,
692685
'unicorn/no-array-for-each': 2,
693686
'unicorn/no-array-method-this-argument': 2,
694687
'unicorn/no-array-push-push': 2,
@@ -766,14 +759,7 @@ const config = {
766759
'unicorn/relative-url-style': [2, 'never'],
767760
'unicorn/require-array-join-separator': 2,
768761
'unicorn/require-number-to-fixed-digits-argument': 2,
769-
'unicorn/string-content': [
770-
2,
771-
{
772-
patterns: {
773-
'^http:\\/\\/': '^https:\\/\\/'
774-
}
775-
}
776-
],
762+
'unicorn/string-content': [2, { patterns: {} }],
777763
'unicorn/template-indent': [2, { indent: 2 }],
778764
'unicorn/text-encoding-identifier-case': 2,
779765
'unicorn/throw-new-error': 2
@@ -822,8 +808,9 @@ const config = {
822808
}
823809
},
824810
{
825-
files: '**/__mocks__/*.ts',
811+
files: '**/__mocks__/**/*.ts',
826812
rules: {
813+
'@typescript-eslint/no-unused-vars': 0,
827814
'@typescript-eslint/require-await': 0
828815
}
829816
},
@@ -853,6 +840,7 @@ const config = {
853840
'@typescript-eslint/no-empty-function': 0,
854841
'@typescript-eslint/no-unused-expressions': 0,
855842
'@typescript-eslint/prefer-ts-expect-error': 0,
843+
'@typescript-eslint/require-await': 0,
856844
'@typescript-eslint/restrict-template-expressions': 0,
857845
'@typescript-eslint/unbound-method': 0,
858846
'chai-expect/missing-assertion': 2,
@@ -886,7 +874,8 @@ const config = {
886874
expectTypeOf: true
887875
},
888876
rules: {
889-
'@typescript-eslint/ban-types': 0
877+
'@typescript-eslint/ban-types': 0,
878+
'@typescript-eslint/no-redundant-type-constituents': 0
890879
}
891880
},
892881
{
@@ -1140,13 +1129,17 @@ const config = {
11401129
}
11411130
},
11421131
{
1143-
files: ['.github/dependabot.yml', '.github/workflows/*.yml'],
1132+
files: [
1133+
'.github/dependabot.yml',
1134+
'.github/workflows/*.yml',
1135+
'action.yml'
1136+
],
11441137
rules: {
11451138
'yml/sort-keys': 0
11461139
}
11471140
},
11481141
{
1149-
files: ['.github/workflows/no-response-handler.yml', '.yarnrc.yml'],
1142+
files: ['.github/workflows/*.yml', '.yarnrc.yml'],
11501143
rules: {
11511144
'yml/key-name-casing': 0
11521145
}
@@ -1160,9 +1153,13 @@ const config = {
11601153
settings: {
11611154
jsdoc: {
11621155
augmentsExtendsReplacesDocs: true,
1156+
ignoreInternal: false,
11631157
ignorePrivate: false,
11641158
implementsReplacesDocs: true,
11651159
overrideReplacesDocs: true,
1160+
preferredTypes: {
1161+
'*': false
1162+
},
11661163
structuredTags: {
11671164
const: {
11681165
name: 'namepath-defining',
@@ -1183,14 +1180,26 @@ const config = {
11831180
name: 'namepath-defining',
11841181
required: ['type']
11851182
},
1183+
maximum: {
1184+
name: 'text',
1185+
required: ['name']
1186+
},
11861187
member: {
11871188
name: 'namepath-defining',
11881189
required: ['name', 'type']
11891190
},
1191+
minimum: {
1192+
name: 'text',
1193+
required: ['name']
1194+
},
11901195
next: {
11911196
name: 'namepath-defining',
11921197
required: ['type']
11931198
},
1199+
packageManager: {
1200+
name: 'text',
1201+
required: ['name']
1202+
},
11941203
param: {
11951204
name: 'namepath-defining',
11961205
required: ['name', 'type']

.github/.gitconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ pou = "!f() { git push origin --no-verify -u $@; }; f"
3434
restart = "!f() { rm -rf .git; echo \"removed .git directory.\"; }; f"
3535

3636
# create new local repo and perform initial commit
37-
setup = "!f() { git init && git config branch.autosetuprebase always && git config core.ignorecase false && git config pull.rebase true && git config rebase.autoStash true && git ac \"initial commit\"; }; f"
37+
setup = "!f() { git init && git config branch.autosetuprebase always && git config core.ignorecase false && git config pull.rebase true && git config rebase.autoStash true && git ac \"chore: initial commit\"; }; f"
3838

3939
# undo last commit
4040
ulc = "!f() { git reset head~1 --soft; }; f"

.github/workflows/add-to-project.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,12 @@
44
#
55
# References:
66
#
7+
# - https://docs.github.com/actions/learn-github-actions/contexts
8+
# - https://docs.github.com/actions/learn-github-actions/expressions
79
# - https://docs.github.com/actions/using-workflows/events-that-trigger-workflows#issues
810
# - https://docs.github.com/actions/using-workflows/events-that-trigger-workflows#pull_request
11+
# - https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#issues
12+
# - https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#pull_request
913
# - https://github.com/actions/add-to-project
1014

1115
---
@@ -22,9 +26,9 @@ jobs:
2226
add-to-project:
2327
runs-on: ubuntu-latest
2428
steps:
25-
- id: add
26-
name: Add ${{ format('#{0}', github.event.number || github.event.issue.number) }} to project
27-
uses: actions/add-to-project@v0.4.1
29+
- id: add-item
30+
name: Add ${{ format('#{0}', github.event.number) }} to project
31+
uses: actions/add-to-project@v0.5.0
2832
with:
2933
github-token: ${{ secrets.PAT_REPO }}
3034
project-url: |

.github/workflows/approve-pr.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,15 @@
33
# Automatically approve a pull request when a review is requested from @flexdevelopment by certain
44
# users.
55
#
6-
#
76
# References:
87
#
98
# - https://cli.github.com/manual/gh_pr_review
9+
# - https://docs.github.com/actions/learn-github-actions/contexts
1010
# - https://docs.github.com/actions/learn-github-actions/expressions
1111
# - https://docs.github.com/actions/using-workflows/events-that-trigger-workflows#pull_request
12+
# - https://docs.github.com/actions/using-workflows/using-github-cli-in-workflows
13+
# - https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions
14+
# - https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#pull_request
1215
# - https://github.com/actions/checkout
1316
# - https://github.com/dependabot/fetch-metadata
1417
# - https://github.com/hmarr/debug-action
@@ -36,15 +39,18 @@ jobs:
3639
skip-commit-verification: true
3740
- id: checkout
3841
name: Checkout ${{ github.head_ref }}
39-
uses: actions/checkout@v3.4.0
42+
uses: actions/checkout@v3.5.2
4043
with:
4144
persist-credentials: false
4245
ref: ${{ github.head_ref }}
46+
- id: requested-reviewers
47+
name: Get requested reviewers
48+
run: |
49+
echo "result=${{ join(github.event.pull_request.requested_reviewers.*.login, ',') }}" >>$GITHUB_OUTPUT
4350
- id: approve
4451
name: Approve pull request
4552
if: |
46-
(github.event.requested_reviewer.login == 'flexdevelopment'
47-
|| contains(join(github.event.requested_reviewers.*.login, ','), 'flexdevelopment'))
53+
contains(steps.requested-reviewers.outputs.result, 'flexdevelopment')
4854
&& (github.actor == 'dependabot[bot]' || github.actor == 'unicornware')
4955
&& steps.dependabot-metadata.outputs.update-type != 'version-update:semver-major'
5056
run: gh pr review ${{ github.event.number }} --approve --body 'lgtm 👍🏾'

0 commit comments

Comments
 (0)