Skip to content

Commit 9031a2e

Browse files
committed
chore: update project architecture
Signed-off-by: Lexus Drumgold <[email protected]>
1 parent 328c0d9 commit 9031a2e

27 files changed

+493
-574
lines changed

.cspell.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"flagWords": [],
1515
"ignorePaths": [
1616
"**/*.snap",
17+
"**/.gitconfig",
1718
"**/.gitignore",
1819
"**/dist/",
1920
".cspell.json",
@@ -29,9 +30,11 @@
2930
"LICENSE.md",
3031
"__tests__/report.json",
3132
"patches/",
33+
"tsconfig.temp.json",
3234
"yarn.lock"
3335
],
3436
"ignoreRegExpList": [
37+
"/0x*/",
3538
"/@flex-development\\/.*/",
3639
"/from\\s+(['\"]).*\\1/",
3740
"import\\(.*\\)"

.dictionary.txt

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,6 @@
11
ardatan
2-
autocrlf
3-
autosetuprebase
4-
bdel
5-
bdelr
62
bdougie
7-
bren
83
cefc
9-
chbfeat
10-
chbfix
11-
chbhotfix
12-
chbrelease
134
codecov
145
commitlintrc
156
dawidd
@@ -18,14 +9,14 @@ dessant
189
dohm
1910
esbuild
2011
fbca
21-
fpnv
2212
gpgsign
2313
hmarr
2414
iife
2515
instanceof
2616
keyid
2717
larsgw
2818
lcov
19+
lintstagedrc
2920
micnncim
3021
mkbuild
3122
mlly
@@ -36,7 +27,6 @@ nvmrc
3627
pkgs
3728
pnpm
3829
preid
39-
safecrlf
4030
syncer
4131
vates
4232
vitest

.eslintrc.base.cjs

Lines changed: 28 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ const config = {
3939
LoadHookResult: 'readonly',
4040
LoaderHookFormat: 'readonly',
4141
NodeJS: 'readonly',
42-
ResolveFilename: 'readonly',
4342
ResolveHook: 'readonly',
4443
ResolveHookContext: 'readonly',
4544
ResolveHookResult: 'readonly'
@@ -51,6 +50,7 @@ const config = {
5150
impliedStrict: true
5251
},
5352
emitDecoratorMetadata: tsconfig.compilerOptions.emitDecoratorMetadata,
53+
extraFileExtensions: [],
5454
project: ['./tsconfig.json'],
5555
sourceType: 'module',
5656
tsconfigRootDir: __dirname,
@@ -280,7 +280,7 @@ const config = {
280280
'@typescript-eslint/no-var-requires': 2,
281281
'@typescript-eslint/padding-line-between-statements': 0,
282282
'@typescript-eslint/prefer-as-const': 2,
283-
'@typescript-eslint/prefer-enum-initializers': 2,
283+
'@typescript-eslint/prefer-enum-initializers': 0,
284284
'@typescript-eslint/prefer-for-of': 2,
285285
'@typescript-eslint/prefer-function-type': 2,
286286
'@typescript-eslint/prefer-includes': 0,
@@ -319,7 +319,8 @@ const config = {
319319
'jsdoc/check-access': 1,
320320
'jsdoc/check-alignment': 1,
321321
'jsdoc/check-examples': 0,
322-
'jsdoc/check-indentation': [1, { excludeTags: ['description', 'example'] }],
322+
// https://github.com/gajus/eslint-plugin-jsdoc/issues/541
323+
'jsdoc/check-indentation': 0,
323324
'jsdoc/check-line-alignment': 1,
324325
'jsdoc/check-param-names': [
325326
1,
@@ -336,7 +337,7 @@ const config = {
336337
'jsdoc/check-tag-names': [
337338
1,
338339
{
339-
definedTags: ['visibleName'],
340+
definedTags: ['experimental', 'next', 'visibleName'],
340341
jsxTags: jsx
341342
}
342343
],
@@ -402,6 +403,7 @@ const config = {
402403
enableFixer: true,
403404
enableRestElementFixer: true,
404405
enableRootFixer: true,
406+
exemptedBy: ['inheritdoc', 'this'],
405407
unnamedRootBase: ['param'],
406408
useDefaultObjectProperties: true
407409
}
@@ -413,9 +415,9 @@ const config = {
413415
'jsdoc/require-returns-check': [
414416
1,
415417
{
416-
exemptAsync: true,
418+
exemptAsync: false,
417419
exemptGenerators: true,
418-
reportMissingReturnForUndefinedTypes: false
420+
reportMissingReturnForUndefinedTypes: true
419421
}
420422
],
421423
'jsdoc/require-returns-description': 1,
@@ -602,8 +604,9 @@ const config = {
602604
'unicorn/no-useless-spread': 2,
603605
'unicorn/no-useless-undefined': 2,
604606
'unicorn/no-zero-fractions': 2,
605-
'unicorn/number-literal-case': 2,
606-
'unicorn/numeric-separators-style': 2,
607+
'unicorn/number-literal-case': 0,
608+
// https://github.com/sindresorhus/eslint-plugin-unicorn/issues/2003
609+
'unicorn/numeric-separators-style': 0,
607610
'unicorn/prefer-add-event-listener': 2,
608611
'unicorn/prefer-array-find': 2,
609612
'unicorn/prefer-array-flat': [2, { functions: [] }],
@@ -616,7 +619,7 @@ const config = {
616619
'unicorn/prefer-default-parameters': 2,
617620
'unicorn/prefer-export-from': [2, { ignoreUsedVariables: true }],
618621
'unicorn/prefer-includes': 2,
619-
'unicorn/prefer-json-parse-buffer': 2,
622+
'unicorn/prefer-json-parse-buffer': 0,
620623
'unicorn/prefer-math-trunc': 2,
621624
'unicorn/prefer-module': 2,
622625
'unicorn/prefer-negative-index': 2,
@@ -709,7 +712,7 @@ const config = {
709712
'@typescript-eslint/no-unnecessary-condition': [
710713
2,
711714
{
712-
allowConstantLoopConditions: false,
715+
allowConstantLoopConditions: true,
713716
allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing: false
714717
}
715718
],
@@ -826,14 +829,9 @@ const config = {
826829
files: ['*.d.ts'],
827830
rules: {
828831
'@typescript-eslint/ban-types': 0,
829-
'@typescript-eslint/lines-between-class-members': 0,
830-
'@typescript-eslint/no-redundant-type-constituents': 0,
831832
'@typescript-eslint/triple-slash-reference': 0,
832833
'jsdoc/no-undefined-types': 0,
833-
'jsdoc/require-file-overview': 0,
834834
'no-var': 0,
835-
'unicorn/filename-case': 0,
836-
'unicorn/no-empty-file': 0,
837835
'unicorn/no-keyword-prefix': 0
838836
}
839837
},
@@ -1016,6 +1014,7 @@ const config = {
10161014
plugins: ['chai-expect', 'jest-formatting'],
10171015
rules: {
10181016
'@typescript-eslint/no-base-to-string': 0,
1017+
'@typescript-eslint/no-empty-function': 0,
10191018
'@typescript-eslint/no-unused-expressions': 0,
10201019
'@typescript-eslint/restrict-template-expressions': 0,
10211020
'@typescript-eslint/unbound-method': 0,
@@ -1039,7 +1038,6 @@ const config = {
10391038
'unicorn/no-useless-undefined': 0,
10401039
'unicorn/prefer-at': 0,
10411040
'unicorn/prefer-dom-node-append': 0,
1042-
'unicorn/prefer-json-parse-buffer': 0,
10431041
'unicorn/string-content': 0
10441042
}
10451043
},
@@ -1050,6 +1048,13 @@ const config = {
10501048
'unicorn/no-keyword-prefix': 0
10511049
}
10521050
},
1051+
{
1052+
files: ['**/typings/**/*.d.ts', '*-env.d.ts'],
1053+
rules: {
1054+
'jsdoc/require-file-overview': 0,
1055+
'unicorn/filename-case': 0
1056+
}
1057+
},
10531058
{
10541059
files: ['.eslintrc.*'],
10551060
rules: {
@@ -1124,6 +1129,9 @@ const config = {
11241129
name: 'namepath-defining',
11251130
required: ['name', 'type']
11261131
},
1132+
experimental: {
1133+
name: 'none'
1134+
},
11271135
extends: {
11281136
name: 'namepath-defining',
11291137
required: ['type']
@@ -1140,6 +1148,10 @@ const config = {
11401148
name: 'namepath-defining',
11411149
required: ['name', 'type']
11421150
},
1151+
next: {
1152+
name: 'namepath-defining',
1153+
required: ['type']
1154+
},
11431155
return: {
11441156
name: 'namepath-defining',
11451157
required: ['type']

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ on:
2626
description: release tag
2727
required: true
2828
env:
29-
ARTIFACT:
29+
ARTIFACT: |
3030
${{ github.event.inputs.artifact || github.event.release.assets[0].browser_download_url }}
3131
TAG: ${{ github.event.inputs.tag || github.event.release.tag_name }}
3232
jobs:

.husky/pre-commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@
99

1010
yarn typecheck --changed HEAD^
1111
yarn check:types:build
12-
lint-staged
12+
lint-staged --config=.lintstagedrc.json

.lintstagedrc.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
{
2-
"*": ["yarn check:format", "yarn check:spelling"],
3-
"**/*.{cjs,cts,gql,json,jsonc,md,mjs,ts,yml}": ["yarn check:lint"],
2+
"*": ["prettier --check", "cspell lint --color --no-progress --relative $@"],
3+
"**/*.{cjs,cts,gql,json,jsonc,md,mjs,ts,yml}": [
4+
"eslint --exit-on-fatal-error"
5+
],
46
"**/yarn.lock": "yarn dedupe --check"
57
}

.markdownlint.jsonc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,6 @@
7979
"MD032": true,
8080
"MD033": {
8181
"allowed_elements": [
82-
"Doc",
83-
"ThemeConfig",
8482
"a",
8583
"blockquote",
8684
"br",

__tests__/interfaces/index.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,3 @@ export type { default as Spy } from './spy'
77
export type { default as Testcase } from './testcase'
88
export type { default as TestcaseCalled } from './testcase-called'
99
export type { default as TestcaseFn } from './testcase-fn'
10-
export type { default as ViAssertionResult } from './vi-assertion-result'
11-
export type { default as ViTestResult } from './vi-test-result'
12-
export type { default as ViTestResults } from './vi-test-results'

__tests__/interfaces/vi-assertion-result.ts

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

__tests__/interfaces/vi-test-result.ts

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

0 commit comments

Comments
 (0)