Skip to content

Commit 5aea1d5

Browse files
committed
chore: cleanup
Signed-off-by: Lexus Drumgold <unicornware@flexdevelopment.llc>
1 parent c095a89 commit 5aea1d5

36 files changed

Lines changed: 628 additions & 865 deletions

.commitlintrc.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
"esm",
1818
"exports",
1919
"github",
20-
"helpers",
2120
"hybrid",
2221
"native",
2322
"pkg",

.cspell.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,10 @@
2424
"LICENSE.md",
2525
"__tests__/report.json",
2626
"dist/",
27+
"patches/",
2728
"yarn.lock"
2829
],
29-
"ignoreRegExpList": [],
30+
"ignoreRegExpList": ["/from\\s+(['\"]).*\\1/"],
3031
"ignoreWords": [],
3132
"language": "en-US",
3233
"patterns": [],

.dictionary.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ gpgsign
2222
graphqlrc
2323
hmarr
2424
iife
25-
instanceof
2625
keyid
2726
larsgw
2827
lcov
@@ -38,7 +37,6 @@ pkgs
3837
preid
3938
safecrlf
4039
syncer
41-
tsnode
4240
tspaths
4341
vates
4442
vitest

.editorconfig

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,18 @@ insert_final_newline = true
1414
max_line_length = 80
1515
trim_trailing_whitespace = true
1616

17+
# handlebars
18+
[*.hbs]
19+
max_line_length = 100
20+
21+
# shellscript
22+
[*.sh]
23+
max_line_length = 100
24+
25+
# snapshots
26+
[*.snap]
27+
max_line_length = 130
28+
1729
# yaml
1830
[*.yml]
1931
max_line_length = 100

.env.test

Lines changed: 0 additions & 7 deletions
This file was deleted.

.env.zsh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,4 @@
55
# - https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/dotenv
66

77
NODE_NO_WARNINGS=1
8-
NODE_OPTIONS='--es-module-specifier-resolution=node'
9-
PROJECT_CWD=$(node -e "console.log(path.resolve('.'))")
10-
TS_NODE_PROJECT=$PROJECT_CWD/tsconfig.tsnode.json
118
VITEST_SEGFAULT_RETRY=3

.eslintrc.base.cjs

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
*/
66

77
/**
8-
* @type {import('tsconfig.json')}
8+
* @type {typeof import('./tsconfig.json')}
99
* @const tsconfig - Tsconfig object
1010
*/
11-
const tsconfig = require('tsconfig/dist/tsconfig').loadSync(__dirname).config
11+
const tsconfig = require('./tsconfig.json')
1212

1313
/**
1414
* @type {boolean}
@@ -22,7 +22,7 @@ const jsx = Boolean(tsconfig.compilerOptions.jsx)
2222
*/
2323
const config = {
2424
env: {
25-
[tsconfig.compilerOptions.target]: true,
25+
[require('./tsconfig.build.json').compilerOptions.target]: true,
2626
node: true
2727
},
2828
extends: [
@@ -33,7 +33,7 @@ const config = {
3333
globals: {
3434
Chai: 'readonly',
3535
Console: 'readonly',
36-
JSX: 'readonly',
36+
JSX: jsx ? 'readonly' : false,
3737
LoadHook: 'readonly',
3838
LoadHookContext: 'readonly',
3939
LoadHookResult: 'readonly',
@@ -120,9 +120,10 @@ const config = {
120120
{
121121
allowArgumentsExplicitlyTypedAsAny: true,
122122
allowDirectConstAssertionInArrowFunctions: true,
123-
allowHigherOrderFunctions: true,
123+
allowHigherOrderFunctions: false,
124124
allowTypedFunctionExpressions: true,
125-
allowedNames: []
125+
allowedNames: [],
126+
shouldTrackReferences: true
126127
}
127128
],
128129
'@typescript-eslint/init-declarations': 0,
@@ -191,7 +192,7 @@ const config = {
191192
'@typescript-eslint/no-explicit-any': 0,
192193
'@typescript-eslint/no-extra-non-null-assertion': 2,
193194
'@typescript-eslint/no-extra-parens': 0,
194-
'@typescript-eslint/no-extra-semi': 2,
195+
'@typescript-eslint/no-extra-semi': 0,
195196
'@typescript-eslint/no-extraneous-class': [
196197
2,
197198
{
@@ -490,7 +491,7 @@ const config = {
490491
'node/no-new-require': 2,
491492
'node/no-path-concat': 2,
492493
'node/no-process-env': 0,
493-
'node/no-process-exit': 2,
494+
'node/no-process-exit': 0,
494495
'node/no-unpublished-bin': 0,
495496
'node/no-unpublished-import': 0,
496497
'node/no-unpublished-require': 0,
@@ -530,7 +531,6 @@ const config = {
530531
'unicorn/better-regex': [2, { sortCharacterClasses: true }],
531532
'unicorn/catch-error-name': [2, { name: 'e' }],
532533
'unicorn/consistent-destructuring': 2,
533-
'unicorn/consistent-function-scoping': 2,
534534
'unicorn/custom-error-definition': 2,
535535
'unicorn/empty-brace-spaces': 2,
536536
'unicorn/error-message': 2,
@@ -800,16 +800,14 @@ const config = {
800800
files: ['*.cjs', '*.md/*.cjs', '*.mjs'],
801801
rules: {
802802
'@typescript-eslint/explicit-module-boundary-types': 0,
803-
'@typescript-eslint/no-implicit-any-catch': 0,
804-
'@typescript-eslint/restrict-template-expressions': 0
803+
'@typescript-eslint/no-implicit-any-catch': 0
805804
}
806805
},
807806
{
808807
files: ['*.cjs', '*.cts'],
809808
rules: {
810809
'@typescript-eslint/no-require-imports': 0,
811-
'@typescript-eslint/no-var-requires': 0,
812-
'unicorn/prefer-module': 0
810+
'@typescript-eslint/no-var-requires': 0
813811
}
814812
},
815813
{
@@ -818,6 +816,12 @@ const config = {
818816
'no-undef': 0
819817
}
820818
},
819+
{
820+
files: ['*.cts'],
821+
rules: {
822+
'unicorn/prefer-module': 0
823+
}
824+
},
821825
{
822826
files: ['*.d.ts'],
823827
rules: {
@@ -918,7 +922,7 @@ const config = {
918922
}
919923
},
920924
{
921-
files: ['*.jsonc'],
925+
files: ['*.json5', '*.jsonc'],
922926
rules: {
923927
'jsonc/no-comments': 0
924928
}
@@ -1027,7 +1031,6 @@ const config = {
10271031
'promise/prefer-await-to-callbacks': 0,
10281032
'promise/valid-params': 0,
10291033
'unicorn/consistent-destructuring': 0,
1030-
'unicorn/consistent-function-scoping': 0,
10311034
'unicorn/explicit-length-check': 0,
10321035
'unicorn/no-array-for-each': 0,
10331036
'unicorn/prefer-at': 0,

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,13 @@
2121
*.cjs text eol=lf
2222
*.cts text eol=lf
2323
*.gql text eol=lf
24+
*.hbs text eol=lf
2425
*.json text eol=lf
2526
*.jsonc text eol=lf
2627
*.md text eol=lf diff=markdown
2728
*.mjs text eol=lf
2829
*.sh text eol=lf
30+
*.snap text eol=lf
2931
*.ts text eol=lf
3032
*.txt text eol=lf
3133
*.yml text eol=lf

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,19 +63,19 @@ jobs:
6363
- id: types
6464
name: Check types
6565
run: yarn check:types
66+
- id: types-build
67+
name: Check types build
68+
run: yarn check:types:build
6669
- id: test
6770
name: Run tests
6871
run: yarn test:cov
6972
env:
7073
NODE_ENV: test
7174
NODE_NO_WARNINGS: 1
72-
NODE_OPTIONS: --es-module-specifier-resolution=node
73-
TS_NODE_PROJECT: ./tsconfig.tsnode.json
7475
VITEST_SEGFAULT_RETRY: 3
7576
- id: pack
7677
name: Pack project
7778
run: yarn pack -o %s-%v.tgz
7879
env:
7980
NODE_ENV: production
8081
NODE_NO_WARNINGS: 1
81-
NODE_OPTIONS: --es-module-specifier-resolution=node

.github/workflows/lock-inactive-threads.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ permissions:
1313
issues: write
1414
pull-requests: write
1515
jobs:
16-
lock:
16+
lock-inactive-threads:
1717
runs-on: ubuntu-latest
1818
steps:
1919
- id: lock

0 commit comments

Comments
 (0)