@adbayb/stack 2.40.0 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/bin/index.js +2 -4
- package/configs/{prettier → oxfmt}/README.md +6 -14
- package/configs/oxfmt/index.ts +41 -0
- package/configs/{eslint → oxlint}/README.md +4 -4
- package/configs/oxlint/index.ts +317 -0
- package/configs/typescript/index.json +1 -7
- package/dist/configs/oxfmt.d.ts +32 -0
- package/dist/configs/oxfmt.js +37 -0
- package/dist/configs/oxlint.d.ts +271 -0
- package/dist/configs/oxlint.js +323 -0
- package/dist/index.js +261 -249
- package/package.json +42 -48
- package/templates/multi-projects/.github/workflows/continuous_delivery.yml +3 -3
- package/templates/multi-projects/.github/workflows/dependency_changelog.yml +1 -1
- package/templates/multi-projects/.github/workflows/workflow.yml +3 -3
- package/templates/multi-projects/.vscode/extensions.json +1 -1
- package/templates/multi-projects/.vscode/settings.json +7 -13
- package/templates/multi-projects/libraries/{{projectName}}/package.json +10 -10
- package/templates/multi-projects/oxfmt.config.ts +1 -0
- package/templates/multi-projects/oxlint.config.ts +1 -0
- package/templates/multi-projects/package.json +3 -4
- package/templates/multi-projects/pnpm-workspace.yaml +8 -9
- package/templates/single-project/.github/workflows/continuous_delivery.yml +3 -3
- package/templates/single-project/.github/workflows/dependency_changelog.yml +1 -1
- package/templates/single-project/.github/workflows/workflow.yml +3 -3
- package/templates/single-project/.vscode/extensions.json +1 -1
- package/templates/single-project/.vscode/settings.json +7 -13
- package/templates/single-project/oxfmt.config.ts +1 -0
- package/templates/single-project/oxlint.config.ts +1 -0
- package/templates/single-project/package.json +3 -4
- package/templates/single-project/pnpm-workspace.yaml +8 -9
- package/templates/single-project/{{projectName}}/package.json +10 -10
- package/configs/eslint/constants.js +0 -37
- package/configs/eslint/helpers.js +0 -5
- package/configs/eslint/index.js +0 -30
- package/configs/eslint/presets/dependencies.js +0 -14
- package/configs/eslint/presets/eslint.js +0 -133
- package/configs/eslint/presets/import.js +0 -65
- package/configs/eslint/presets/jsdoc.js +0 -78
- package/configs/eslint/presets/markdown.js +0 -1
- package/configs/eslint/presets/node.js +0 -51
- package/configs/eslint/presets/prettier.js +0 -1
- package/configs/eslint/presets/react.js +0 -111
- package/configs/eslint/presets/sonar.js +0 -201
- package/configs/eslint/presets/stylistic.js +0 -79
- package/configs/eslint/presets/test.js +0 -87
- package/configs/eslint/presets/typescript.js +0 -198
- package/configs/eslint/presets/unicorn.js +0 -257
- package/configs/prettier/index.js +0 -25
- package/templates/multi-projects/.nvmrc +0 -1
- package/templates/multi-projects/eslint.config.js.tmpl +0 -1
- package/templates/single-project/.nvmrc +0 -1
- package/templates/single-project/eslint.config.js.tmpl +0 -1
package/package.json
CHANGED
|
@@ -1,33 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adbayb/stack",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"description": "My opinionated JavaScript-based toolchain",
|
|
5
5
|
"keywords": [
|
|
6
|
-
"
|
|
6
|
+
"development",
|
|
7
7
|
"scripts",
|
|
8
|
-
"
|
|
9
|
-
"
|
|
8
|
+
"stack",
|
|
9
|
+
"toolchain"
|
|
10
10
|
],
|
|
11
|
-
"repository": {
|
|
12
|
-
"type": "git",
|
|
13
|
-
"url": "https://github.com/adbayb/stack.git",
|
|
14
|
-
"directory": "applications/stack"
|
|
15
|
-
},
|
|
16
11
|
"license": "MIT",
|
|
17
12
|
"author": {
|
|
18
13
|
"name": "Ayoub Adib",
|
|
19
14
|
"email": "adbayb@gmail.com",
|
|
20
15
|
"url": "https://twitter.com/adbayb"
|
|
21
16
|
},
|
|
22
|
-
"
|
|
23
|
-
|
|
24
|
-
"
|
|
25
|
-
|
|
26
|
-
"default": "./dist/index.js"
|
|
27
|
-
},
|
|
28
|
-
"./eslint": "./configs/eslint/index.js",
|
|
29
|
-
"./prettier": "./configs/prettier/index.js",
|
|
30
|
-
"./typescript": "./configs/typescript/index.json"
|
|
17
|
+
"repository": {
|
|
18
|
+
"type": "git",
|
|
19
|
+
"url": "https://github.com/adbayb/stack.git",
|
|
20
|
+
"directory": "applications/stack"
|
|
31
21
|
},
|
|
32
22
|
"bin": {
|
|
33
23
|
"stack": "./bin/index.js"
|
|
@@ -38,42 +28,46 @@
|
|
|
38
28
|
"dist",
|
|
39
29
|
"templates"
|
|
40
30
|
],
|
|
31
|
+
"type": "module",
|
|
32
|
+
"exports": {
|
|
33
|
+
".": {
|
|
34
|
+
"source": "./src/index.ts",
|
|
35
|
+
"default": "./dist/index.js"
|
|
36
|
+
},
|
|
37
|
+
"./oxfmt": {
|
|
38
|
+
"source": "./configs/oxfmt/index.ts",
|
|
39
|
+
"types": "./dist/configs/oxfmt.d.ts",
|
|
40
|
+
"default": "./dist/configs/oxfmt.js"
|
|
41
|
+
},
|
|
42
|
+
"./oxlint": {
|
|
43
|
+
"source": "./configs/oxlint/index.ts",
|
|
44
|
+
"types": "./dist/configs/oxlint.d.ts",
|
|
45
|
+
"default": "./dist/configs/oxlint.js"
|
|
46
|
+
},
|
|
47
|
+
"./typescript": "./configs/typescript/index.json"
|
|
48
|
+
},
|
|
49
|
+
"publishConfig": {
|
|
50
|
+
"access": "public",
|
|
51
|
+
"registry": "https://registry.npmjs.org"
|
|
52
|
+
},
|
|
41
53
|
"dependencies": {
|
|
42
54
|
"@changesets/changelog-github": "^0.7.0",
|
|
43
|
-
"@changesets/cli": "^2.31.
|
|
44
|
-
"@commitlint/cli": "^21.
|
|
45
|
-
"@commitlint/config-conventional": "^21.0
|
|
46
|
-
"@
|
|
47
|
-
"@eslint/compat": "^2.1.0",
|
|
55
|
+
"@changesets/cli": "^2.31.1",
|
|
56
|
+
"@commitlint/cli": "^21.2.1",
|
|
57
|
+
"@commitlint/config-conventional": "^21.2.0",
|
|
58
|
+
"@e18e/eslint-plugin": "^0.6.0",
|
|
48
59
|
"@stylistic/eslint-plugin": "^5.10.0",
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"eslint-plugin-depend": "^1.5.0",
|
|
54
|
-
"eslint-plugin-import-x": "^4.16.2",
|
|
55
|
-
"eslint-plugin-jsdoc": "^63.0.6",
|
|
56
|
-
"eslint-plugin-mdx": "^3.8.1",
|
|
57
|
-
"eslint-plugin-n": "^18.1.0",
|
|
58
|
-
"eslint-plugin-perfectionist": "^5.9.1",
|
|
59
|
-
"eslint-plugin-prettier": "^5.5.6",
|
|
60
|
-
"eslint-plugin-sonarjs": "^4.1.0",
|
|
61
|
-
"eslint-plugin-unicorn": "^68.0.0",
|
|
62
|
-
"globals": "^17.6.0",
|
|
63
|
-
"prettier": "^3.8.4",
|
|
64
|
-
"prettier-plugin-packagejson": "^3.0.2",
|
|
60
|
+
"eslint-plugin-perfectionist": "^5.10.0",
|
|
61
|
+
"oxfmt": "^0.61.0",
|
|
62
|
+
"oxlint": "^1.76.0",
|
|
63
|
+
"oxlint-tsgolint": "^7.0.2001",
|
|
65
64
|
"termost": "^1.9.1",
|
|
66
|
-
"turbo": "^2.
|
|
67
|
-
"typescript": "^6.0.3"
|
|
68
|
-
"typescript-eslint": "^8.61.1"
|
|
65
|
+
"turbo": "^2.10.8",
|
|
66
|
+
"typescript": "^6.0.3"
|
|
69
67
|
},
|
|
70
68
|
"devDependencies": {
|
|
71
|
-
"@types/node": "24.13.
|
|
72
|
-
"quickbundle": "3.
|
|
73
|
-
},
|
|
74
|
-
"publishConfig": {
|
|
75
|
-
"access": "public",
|
|
76
|
-
"registry": "https://registry.npmjs.org"
|
|
69
|
+
"@types/node": "24.13.3",
|
|
70
|
+
"quickbundle": "3.1.0"
|
|
77
71
|
},
|
|
78
72
|
"scripts": {
|
|
79
73
|
"build": "quickbundle build",
|
|
@@ -19,12 +19,12 @@ jobs:
|
|
|
19
19
|
id-token: write
|
|
20
20
|
pull-requests: write
|
|
21
21
|
steps:
|
|
22
|
-
- uses: actions/checkout@
|
|
22
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
23
23
|
- uses: pnpm/action-setup@v6
|
|
24
|
-
- uses: actions/setup-node@
|
|
24
|
+
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
|
|
25
25
|
with:
|
|
26
26
|
cache: pnpm
|
|
27
|
-
node-version-file: ".
|
|
27
|
+
node-version-file: "package.json"
|
|
28
28
|
- name: Install dependencies
|
|
29
29
|
run: pnpm install --frozen-lockfile
|
|
30
30
|
- name: Publish pre-release version(s)
|
|
@@ -9,12 +9,12 @@ jobs:
|
|
|
9
9
|
runs-on: ubuntu-latest
|
|
10
10
|
steps:
|
|
11
11
|
- name: Checkout the code
|
|
12
|
-
uses: actions/checkout@
|
|
12
|
+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
13
13
|
- uses: pnpm/action-setup@v6
|
|
14
|
-
- uses: actions/setup-node@
|
|
14
|
+
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
|
|
15
15
|
with:
|
|
16
16
|
cache: pnpm
|
|
17
|
-
node-version-file: ".
|
|
17
|
+
node-version-file: "package.json"
|
|
18
18
|
- name: Install dependencies
|
|
19
19
|
run: pnpm install --frozen-lockfile
|
|
20
20
|
- name: Build
|
|
@@ -1,19 +1,13 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
3
|
-
|
|
4
|
-
"javascriptreact",
|
|
5
|
-
"typescript",
|
|
6
|
-
"typescriptreact",
|
|
7
|
-
"markdown",
|
|
8
|
-
"mdx",
|
|
9
|
-
"astro"
|
|
10
|
-
],
|
|
2
|
+
"editor.defaultFormatter": "oxc.oxc-vscode",
|
|
3
|
+
"editor.formatOnSave": true,
|
|
11
4
|
"editor.codeActionsOnSave": {
|
|
12
|
-
"source.
|
|
13
|
-
"source.fixAll.
|
|
14
|
-
"source.
|
|
5
|
+
"source.format.oxc": "always",
|
|
6
|
+
"source.fixAll.oxc": "always",
|
|
7
|
+
"source.fixAll.ts": "always",
|
|
8
|
+
"source.addMissingImports.ts": "always",
|
|
15
9
|
"source.organizeImports": "never",
|
|
16
|
-
"source.organizeLinkDefinitions": "
|
|
10
|
+
"source.organizeLinkDefinitions": "always",
|
|
17
11
|
"source.removeUnused.ts": "never",
|
|
18
12
|
"source.removeUnusedImports": "never",
|
|
19
13
|
"source.sortImports": "never"
|
|
@@ -4,15 +4,18 @@
|
|
|
4
4
|
"description": "{{projectDescription}}",
|
|
5
5
|
"homepage": "https://github.com/{{repoId}}/tree/main/{{projectName}}#readme",
|
|
6
6
|
"bugs": "https://github.com/{{repoId}}/issues",
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"author": "Ayoub Adib <adbayb@gmail.com> (https://twitter.com/adbayb)",
|
|
7
9
|
"repository": {
|
|
8
10
|
"type": "git",
|
|
9
11
|
"url": "{{projectUrl}}",
|
|
10
12
|
"directory": "libraries/{{projectName}}"
|
|
11
13
|
},
|
|
12
|
-
"
|
|
13
|
-
|
|
14
|
-
|
|
14
|
+
"files": [
|
|
15
|
+
"dist"
|
|
16
|
+
],
|
|
15
17
|
"type": "module",
|
|
18
|
+
"sideEffects": false,
|
|
16
19
|
"exports": {
|
|
17
20
|
"source": "./src/index.ts",
|
|
18
21
|
"types": "./dist/index.d.ts",
|
|
@@ -20,9 +23,10 @@
|
|
|
20
23
|
"import": "./dist/index.mjs",
|
|
21
24
|
"default": "./dist/index.mjs"
|
|
22
25
|
},
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
|
|
26
|
+
"publishConfig": {
|
|
27
|
+
"access": "public",
|
|
28
|
+
"registry": "https://registry.npmjs.org"
|
|
29
|
+
},
|
|
26
30
|
"scripts": {
|
|
27
31
|
"build": "pnpm clean && quickbundle build",
|
|
28
32
|
"clean": "rm -rf dist",
|
|
@@ -30,9 +34,5 @@
|
|
|
30
34
|
"start": "pnpm watch",
|
|
31
35
|
"test": "vitest --passWithNoTests --typecheck --reporter=verbose",
|
|
32
36
|
"watch": "quickbundle watch"
|
|
33
|
-
},
|
|
34
|
-
"publishConfig": {
|
|
35
|
-
"access": "public",
|
|
36
|
-
"registry": "https://registry.npmjs.org"
|
|
37
37
|
}
|
|
38
38
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "@adbayb/stack/oxfmt";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "@adbayb/stack/oxlint";
|
|
@@ -16,8 +16,6 @@
|
|
|
16
16
|
"test": "stack test",
|
|
17
17
|
"watch": "stack watch"
|
|
18
18
|
},
|
|
19
|
-
"prettier": "@adbayb/stack/prettier",
|
|
20
|
-
"packageManager": "pnpm@{{pnpmVersion}}",
|
|
21
19
|
"devEngines": {
|
|
22
20
|
"packageManager": {
|
|
23
21
|
"name": "pnpm",
|
|
@@ -26,8 +24,9 @@
|
|
|
26
24
|
},
|
|
27
25
|
"runtime": {
|
|
28
26
|
"name": "node",
|
|
29
|
-
"version": "
|
|
27
|
+
"version": "{{nodeVersion}}",
|
|
30
28
|
"onFail": "error"
|
|
31
29
|
}
|
|
32
|
-
}
|
|
30
|
+
},
|
|
31
|
+
"packageManager": "pnpm@{{pnpmVersion}}"
|
|
33
32
|
}
|
|
@@ -1,20 +1,19 @@
|
|
|
1
|
-
allowBuilds:
|
|
2
|
-
esbuild: true
|
|
3
|
-
unrs-resolver: true
|
|
4
|
-
minimumReleaseAgeExclude:
|
|
5
|
-
- "@adbayb/*"
|
|
6
1
|
packages:
|
|
7
2
|
- "applications/*"
|
|
8
3
|
- "examples/*"
|
|
9
4
|
- "libraries/*"
|
|
10
5
|
- "tools/*"
|
|
6
|
+
saveExact: true
|
|
7
|
+
verifyDepsBeforeRun: "warn"
|
|
8
|
+
update:
|
|
9
|
+
githubActions: true
|
|
10
|
+
minimumReleaseAgeExclude:
|
|
11
|
+
- "@adbayb/*"
|
|
11
12
|
publicHoistPattern:
|
|
12
13
|
- "*changesets*"
|
|
13
14
|
- "*commitlint*"
|
|
14
|
-
- "*
|
|
15
|
-
- "*
|
|
15
|
+
- "*oxfmt*"
|
|
16
|
+
- "*oxlint*"
|
|
16
17
|
- "*turbo*"
|
|
17
18
|
- "*typescript*"
|
|
18
19
|
- "*types*"
|
|
19
|
-
saveExact: true
|
|
20
|
-
verifyDepsBeforeRun: "warn"
|
|
@@ -19,12 +19,12 @@ jobs:
|
|
|
19
19
|
id-token: write
|
|
20
20
|
pull-requests: write
|
|
21
21
|
steps:
|
|
22
|
-
- uses: actions/checkout@
|
|
22
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
23
23
|
- uses: pnpm/action-setup@v6
|
|
24
|
-
- uses: actions/setup-node@
|
|
24
|
+
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
|
|
25
25
|
with:
|
|
26
26
|
cache: pnpm
|
|
27
|
-
node-version-file: ".
|
|
27
|
+
node-version-file: "package.json"
|
|
28
28
|
- name: Install dependencies
|
|
29
29
|
run: pnpm install --frozen-lockfile
|
|
30
30
|
- name: Publish pre-release version(s)
|
|
@@ -9,12 +9,12 @@ jobs:
|
|
|
9
9
|
runs-on: ubuntu-latest
|
|
10
10
|
steps:
|
|
11
11
|
- name: Checkout the code
|
|
12
|
-
uses: actions/checkout@
|
|
12
|
+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
13
13
|
- uses: pnpm/action-setup@v6
|
|
14
|
-
- uses: actions/setup-node@
|
|
14
|
+
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
|
|
15
15
|
with:
|
|
16
16
|
cache: pnpm
|
|
17
|
-
node-version-file: ".
|
|
17
|
+
node-version-file: "package.json"
|
|
18
18
|
- name: Install dependencies
|
|
19
19
|
run: pnpm install --frozen-lockfile
|
|
20
20
|
- name: Build
|
|
@@ -1,19 +1,13 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
3
|
-
|
|
4
|
-
"javascriptreact",
|
|
5
|
-
"typescript",
|
|
6
|
-
"typescriptreact",
|
|
7
|
-
"markdown",
|
|
8
|
-
"mdx",
|
|
9
|
-
"astro"
|
|
10
|
-
],
|
|
2
|
+
"editor.defaultFormatter": "oxc.oxc-vscode",
|
|
3
|
+
"editor.formatOnSave": true,
|
|
11
4
|
"editor.codeActionsOnSave": {
|
|
12
|
-
"source.
|
|
13
|
-
"source.fixAll.
|
|
14
|
-
"source.
|
|
5
|
+
"source.format.oxc": "always",
|
|
6
|
+
"source.fixAll.oxc": "always",
|
|
7
|
+
"source.fixAll.ts": "always",
|
|
8
|
+
"source.addMissingImports.ts": "always",
|
|
15
9
|
"source.organizeImports": "never",
|
|
16
|
-
"source.organizeLinkDefinitions": "
|
|
10
|
+
"source.organizeLinkDefinitions": "always",
|
|
17
11
|
"source.removeUnused.ts": "never",
|
|
18
12
|
"source.removeUnusedImports": "never",
|
|
19
13
|
"source.sortImports": "never"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "@adbayb/stack/oxfmt";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "@adbayb/stack/oxlint";
|
|
@@ -16,8 +16,6 @@
|
|
|
16
16
|
"test": "stack test",
|
|
17
17
|
"watch": "stack watch"
|
|
18
18
|
},
|
|
19
|
-
"prettier": "@adbayb/stack/prettier",
|
|
20
|
-
"packageManager": "pnpm@{{pnpmVersion}}",
|
|
21
19
|
"devEngines": {
|
|
22
20
|
"packageManager": {
|
|
23
21
|
"name": "pnpm",
|
|
@@ -26,8 +24,9 @@
|
|
|
26
24
|
},
|
|
27
25
|
"runtime": {
|
|
28
26
|
"name": "node",
|
|
29
|
-
"version": "
|
|
27
|
+
"version": "{{nodeVersion}}",
|
|
30
28
|
"onFail": "error"
|
|
31
29
|
}
|
|
32
|
-
}
|
|
30
|
+
},
|
|
31
|
+
"packageManager": "pnpm@{{pnpmVersion}}"
|
|
33
32
|
}
|
|
@@ -1,19 +1,18 @@
|
|
|
1
|
-
allowBuilds:
|
|
2
|
-
esbuild: true
|
|
3
|
-
unrs-resolver: true
|
|
4
|
-
minimumReleaseAgeExclude:
|
|
5
|
-
- "@adbayb/*"
|
|
6
1
|
packages:
|
|
7
2
|
- "examples/*"
|
|
8
3
|
- "tools/*"
|
|
9
4
|
- "{{projectName}}"
|
|
5
|
+
saveExact: true
|
|
6
|
+
verifyDepsBeforeRun: "warn"
|
|
7
|
+
update:
|
|
8
|
+
githubActions: true
|
|
9
|
+
minimumReleaseAgeExclude:
|
|
10
|
+
- "@adbayb/*"
|
|
10
11
|
publicHoistPattern:
|
|
11
12
|
- "*changesets*"
|
|
12
13
|
- "*commitlint*"
|
|
13
|
-
- "*
|
|
14
|
-
- "*
|
|
14
|
+
- "*oxfmt*"
|
|
15
|
+
- "*oxlint*"
|
|
15
16
|
- "*turbo*"
|
|
16
17
|
- "*typescript*"
|
|
17
18
|
- "*types*"
|
|
18
|
-
saveExact: true
|
|
19
|
-
verifyDepsBeforeRun: "warn"
|
|
@@ -4,15 +4,18 @@
|
|
|
4
4
|
"description": "{{projectDescription}}",
|
|
5
5
|
"homepage": "https://github.com/{{repoId}}/tree/main/{{projectName}}#readme",
|
|
6
6
|
"bugs": "https://github.com/{{repoId}}/issues",
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"author": "Ayoub Adib <adbayb@gmail.com> (https://twitter.com/adbayb)",
|
|
7
9
|
"repository": {
|
|
8
10
|
"type": "git",
|
|
9
11
|
"url": "{{projectUrl}}",
|
|
10
12
|
"directory": "{{projectName}}"
|
|
11
13
|
},
|
|
12
|
-
"
|
|
13
|
-
|
|
14
|
-
|
|
14
|
+
"files": [
|
|
15
|
+
"dist"
|
|
16
|
+
],
|
|
15
17
|
"type": "module",
|
|
18
|
+
"sideEffects": false,
|
|
16
19
|
"exports": {
|
|
17
20
|
"source": "./src/index.ts",
|
|
18
21
|
"types": "./dist/index.d.ts",
|
|
@@ -20,9 +23,10 @@
|
|
|
20
23
|
"import": "./dist/index.mjs",
|
|
21
24
|
"default": "./dist/index.mjs"
|
|
22
25
|
},
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
|
|
26
|
+
"publishConfig": {
|
|
27
|
+
"access": "public",
|
|
28
|
+
"registry": "https://registry.npmjs.org"
|
|
29
|
+
},
|
|
26
30
|
"scripts": {
|
|
27
31
|
"build": "pnpm clean && quickbundle build",
|
|
28
32
|
"clean": "rm -rf dist",
|
|
@@ -30,9 +34,5 @@
|
|
|
30
34
|
"start": "pnpm watch",
|
|
31
35
|
"test": "vitest --passWithNoTests --typecheck --reporter=verbose",
|
|
32
36
|
"watch": "quickbundle watch"
|
|
33
|
-
},
|
|
34
|
-
"publishConfig": {
|
|
35
|
-
"access": "public",
|
|
36
|
-
"registry": "https://registry.npmjs.org"
|
|
37
37
|
}
|
|
38
38
|
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
const JAVASCRIPT_EXTENSIONS = ["js", "jsx", "cjs", "mjs", "mjsx"];
|
|
2
|
-
const TYPESCRIPT_EXTENSIONS = ["ts", "tsx", "cts", "mts", "mtsx"];
|
|
3
|
-
|
|
4
|
-
const JAVASCRIPT_LIKE_EXTENSIONS = [
|
|
5
|
-
...JAVASCRIPT_EXTENSIONS,
|
|
6
|
-
...TYPESCRIPT_EXTENSIONS,
|
|
7
|
-
];
|
|
8
|
-
|
|
9
|
-
const JAVASCRIPT_LIKE_EXTENSIONS_AS_STRING =
|
|
10
|
-
JAVASCRIPT_LIKE_EXTENSIONS.join(",");
|
|
11
|
-
|
|
12
|
-
export const JAVASCRIPT_FILES = [`**/*.{${JAVASCRIPT_EXTENSIONS.join(",")}}`];
|
|
13
|
-
|
|
14
|
-
export const TYPESCRIPT_FILES = [`**/*.{${TYPESCRIPT_EXTENSIONS.join(",")}}`];
|
|
15
|
-
|
|
16
|
-
export const JAVASCRIPT_LIKE_FILES = [
|
|
17
|
-
`**/*.{${JAVASCRIPT_LIKE_EXTENSIONS_AS_STRING}}`,
|
|
18
|
-
];
|
|
19
|
-
|
|
20
|
-
export const TEST_LIKE_FILES = [
|
|
21
|
-
`**/{test,test-d}.{${JAVASCRIPT_LIKE_EXTENSIONS_AS_STRING}}`,
|
|
22
|
-
`**/*.{test,test-d}.{${JAVASCRIPT_LIKE_EXTENSIONS_AS_STRING}}`,
|
|
23
|
-
];
|
|
24
|
-
|
|
25
|
-
export const RELAXED_LIKE_FILES = [
|
|
26
|
-
...TEST_LIKE_FILES,
|
|
27
|
-
"**/?(.)config?(s)/**",
|
|
28
|
-
"**/examples/**",
|
|
29
|
-
"**/scripts/**",
|
|
30
|
-
"**/tools/**",
|
|
31
|
-
`**/config?(s).{${JAVASCRIPT_LIKE_EXTENSIONS_AS_STRING}}`,
|
|
32
|
-
`**/*.config?(s).{${JAVASCRIPT_LIKE_EXTENSIONS_AS_STRING}}`,
|
|
33
|
-
`**/stories.{${JAVASCRIPT_LIKE_EXTENSIONS_AS_STRING}}`,
|
|
34
|
-
`**/*.stories.{${JAVASCRIPT_LIKE_EXTENSIONS_AS_STRING}}`,
|
|
35
|
-
];
|
|
36
|
-
|
|
37
|
-
export const CWD = process.cwd();
|
package/configs/eslint/index.js
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { createConfig } from "./helpers.js";
|
|
2
|
-
import { config as dependenciesConfig } from "./presets/dependencies.js";
|
|
3
|
-
import { config as eslintConfig } from "./presets/eslint.js";
|
|
4
|
-
import { config as importConfig } from "./presets/import.js";
|
|
5
|
-
import { config as jsdocConfig } from "./presets/jsdoc.js";
|
|
6
|
-
import { config as markdownConfig } from "./presets/markdown.js";
|
|
7
|
-
import { config as nodeConfig } from "./presets/node.js";
|
|
8
|
-
import { prettierConfig } from "./presets/prettier.js";
|
|
9
|
-
import { config as reactConfig } from "./presets/react.js";
|
|
10
|
-
import { config as sonarConfig } from "./presets/sonar.js";
|
|
11
|
-
import { config as stylisticConfig } from "./presets/stylistic.js";
|
|
12
|
-
import { config as testConfig } from "./presets/test.js";
|
|
13
|
-
import { config as typescriptConfig } from "./presets/typescript.js";
|
|
14
|
-
import { config as unicornConfig } from "./presets/unicorn.js";
|
|
15
|
-
|
|
16
|
-
export default createConfig(
|
|
17
|
-
eslintConfig,
|
|
18
|
-
typescriptConfig,
|
|
19
|
-
prettierConfig,
|
|
20
|
-
importConfig,
|
|
21
|
-
jsdocConfig,
|
|
22
|
-
markdownConfig,
|
|
23
|
-
nodeConfig,
|
|
24
|
-
reactConfig,
|
|
25
|
-
sonarConfig,
|
|
26
|
-
stylisticConfig,
|
|
27
|
-
testConfig,
|
|
28
|
-
unicornConfig,
|
|
29
|
-
dependenciesConfig,
|
|
30
|
-
);
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import dependPlugin from "eslint-plugin-depend";
|
|
2
|
-
|
|
3
|
-
import { JAVASCRIPT_LIKE_FILES } from "../constants.js";
|
|
4
|
-
import { createConfig } from "../helpers.js";
|
|
5
|
-
|
|
6
|
-
export const config = createConfig({
|
|
7
|
-
files: JAVASCRIPT_LIKE_FILES,
|
|
8
|
-
plugins: {
|
|
9
|
-
depend: dependPlugin,
|
|
10
|
-
},
|
|
11
|
-
rules: {
|
|
12
|
-
"depend/ban-dependencies": "error",
|
|
13
|
-
},
|
|
14
|
-
});
|