@adbayb/stack 0.0.0-next-36b2628 → 0.0.0-next-db16d68
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/configs/eslint/presets/react.js +15 -0
- package/configs/eslint/presets/unicorn.js +3 -0
- package/dist/index.js +5 -3
- package/package.json +1 -1
- package/templates/multi-projects/.github/workflows/continuous_delivery.yml +2 -6
- package/templates/multi-projects/.github/workflows/workflow.yml +2 -6
- package/templates/single-project/.github/workflows/continuous_delivery.yml +2 -6
- package/templates/single-project/.github/workflows/workflow.yml +2 -6
|
@@ -76,8 +76,23 @@ export const config = createConfig(
|
|
|
76
76
|
"@eslint-react/web-api/no-leaked-interval": "error",
|
|
77
77
|
"@eslint-react/web-api/no-leaked-resize-observer": "error",
|
|
78
78
|
"@eslint-react/web-api/no-leaked-timeout": "error",
|
|
79
|
+
"react-hooks/component-hook-factories": "error",
|
|
80
|
+
"react-hooks/config": "error",
|
|
81
|
+
"react-hooks/error-boundaries": "error",
|
|
79
82
|
"react-hooks/exhaustive-deps": "warn",
|
|
83
|
+
"react-hooks/gating": "error",
|
|
84
|
+
"react-hooks/globals": "error",
|
|
85
|
+
"react-hooks/immutability": "error",
|
|
86
|
+
"react-hooks/incompatible-library": "error",
|
|
87
|
+
"react-hooks/preserve-manual-memoization": "error",
|
|
88
|
+
"react-hooks/purity": "error",
|
|
89
|
+
"react-hooks/refs": "error",
|
|
80
90
|
"react-hooks/rules-of-hooks": "error",
|
|
91
|
+
"react-hooks/set-state-in-effect": "error",
|
|
92
|
+
"react-hooks/set-state-in-render": "error",
|
|
93
|
+
"react-hooks/static-components": "error",
|
|
94
|
+
"react-hooks/unsupported-syntax": "error",
|
|
95
|
+
"react-hooks/use-memo": "error",
|
|
81
96
|
},
|
|
82
97
|
settings: reactPluginConfig.settings,
|
|
83
98
|
},
|
|
@@ -43,6 +43,7 @@ export const config = createConfig({
|
|
|
43
43
|
"unicorn/no-document-cookie": "error",
|
|
44
44
|
"unicorn/no-empty-file": "error",
|
|
45
45
|
"unicorn/no-for-loop": "error",
|
|
46
|
+
"unicorn/no-immediate-mutation": "error",
|
|
46
47
|
"unicorn/no-instanceof-array": "error",
|
|
47
48
|
"unicorn/no-invalid-fetch-options": "error",
|
|
48
49
|
"unicorn/no-invalid-remove-event-listener": "error",
|
|
@@ -59,6 +60,7 @@ export const config = createConfig({
|
|
|
59
60
|
"unicorn/no-unreadable-array-destructuring": "error",
|
|
60
61
|
"unicorn/no-unreadable-iife": "error",
|
|
61
62
|
"unicorn/no-unused-properties": "error",
|
|
63
|
+
"unicorn/no-useless-collection-argument": "error",
|
|
62
64
|
"unicorn/no-useless-error-capture-stack-trace": "error",
|
|
63
65
|
"unicorn/no-useless-fallback-in-spread": "error",
|
|
64
66
|
"unicorn/no-useless-length-check": "error",
|
|
@@ -102,6 +104,7 @@ export const config = createConfig({
|
|
|
102
104
|
"unicorn/prefer-query-selector": "error",
|
|
103
105
|
"unicorn/prefer-reflect-apply": "error",
|
|
104
106
|
"unicorn/prefer-regexp-test": "error",
|
|
107
|
+
"unicorn/prefer-response-static-json": "error",
|
|
105
108
|
"unicorn/prefer-set-has": "error",
|
|
106
109
|
"unicorn/prefer-set-size": "error",
|
|
107
110
|
"unicorn/prefer-single-call": "error",
|
package/dist/index.js
CHANGED
|
@@ -131,9 +131,11 @@ const eslint = (options)=>async (files = [])=>{
|
|
|
131
131
|
if (eslintFiles.length === 0) return;
|
|
132
132
|
}
|
|
133
133
|
const arguments_ = [
|
|
134
|
-
...eslintFiles
|
|
134
|
+
...eslintFiles,
|
|
135
|
+
"--cache",
|
|
136
|
+
`--cache-location ${resolveFromProjectDirectory("node_modules/.cache/.eslintcache")}`,
|
|
137
|
+
"--no-error-on-unmatched-pattern"
|
|
135
138
|
];
|
|
136
|
-
arguments_.push("--cache", `--cache-location ${resolveFromProjectDirectory("node_modules/.cache/.eslintcache")}`, "--no-error-on-unmatched-pattern");
|
|
137
139
|
if (options.isFixMode) {
|
|
138
140
|
arguments_.push("--fix");
|
|
139
141
|
}
|
|
@@ -195,7 +197,7 @@ const ESLINT_EXTENSIONS = [
|
|
|
195
197
|
"mdx"
|
|
196
198
|
];
|
|
197
199
|
|
|
198
|
-
var version = "0.0.0-next-
|
|
200
|
+
var version = "0.0.0-next-db16d68";
|
|
199
201
|
|
|
200
202
|
const createWatchCommand = (program)=>{
|
|
201
203
|
program.command({
|
package/package.json
CHANGED
|
@@ -20,13 +20,9 @@ jobs:
|
|
|
20
20
|
steps:
|
|
21
21
|
- uses: actions/checkout@v5
|
|
22
22
|
- uses: pnpm/action-setup@v4
|
|
23
|
-
-
|
|
24
|
-
run: echo "version=$(cat .nvmrc)" >> $GITHUB_OUTPUT
|
|
25
|
-
id: node
|
|
26
|
-
- name: Setup node ${{ steps.node.outputs.version }}
|
|
27
|
-
uses: actions/setup-node@v4
|
|
23
|
+
- uses: actions/setup-node@v6
|
|
28
24
|
with:
|
|
29
|
-
node-version:
|
|
25
|
+
node-version-file: ".nvmrc"
|
|
30
26
|
cache: pnpm
|
|
31
27
|
- name: Setup .npmrc
|
|
32
28
|
run: |
|
|
@@ -11,13 +11,9 @@ jobs:
|
|
|
11
11
|
- name: Checkout the code
|
|
12
12
|
uses: actions/checkout@v5
|
|
13
13
|
- uses: pnpm/action-setup@v4
|
|
14
|
-
-
|
|
15
|
-
run: echo "version=$(cat .nvmrc)" >> $GITHUB_OUTPUT
|
|
16
|
-
id: node
|
|
17
|
-
- name: Setup node ${{ steps.node.outputs.version }}
|
|
18
|
-
uses: actions/setup-node@v4
|
|
14
|
+
- uses: actions/setup-node@v6
|
|
19
15
|
with:
|
|
20
|
-
node-version:
|
|
16
|
+
node-version-file: ".nvmrc"
|
|
21
17
|
cache: pnpm
|
|
22
18
|
- name: Setup cache
|
|
23
19
|
id: cache
|
|
@@ -20,13 +20,9 @@ jobs:
|
|
|
20
20
|
steps:
|
|
21
21
|
- uses: actions/checkout@v5
|
|
22
22
|
- uses: pnpm/action-setup@v4
|
|
23
|
-
-
|
|
24
|
-
run: echo "version=$(cat .nvmrc)" >> $GITHUB_OUTPUT
|
|
25
|
-
id: node
|
|
26
|
-
- name: Setup node ${{ steps.node.outputs.version }}
|
|
27
|
-
uses: actions/setup-node@v4
|
|
23
|
+
- uses: actions/setup-node@v6
|
|
28
24
|
with:
|
|
29
|
-
node-version:
|
|
25
|
+
node-version-file: ".nvmrc"
|
|
30
26
|
cache: pnpm
|
|
31
27
|
- name: Setup .npmrc
|
|
32
28
|
run: |
|
|
@@ -11,13 +11,9 @@ jobs:
|
|
|
11
11
|
- name: Checkout the code
|
|
12
12
|
uses: actions/checkout@v5
|
|
13
13
|
- uses: pnpm/action-setup@v4
|
|
14
|
-
-
|
|
15
|
-
run: echo "version=$(cat .nvmrc)" >> $GITHUB_OUTPUT
|
|
16
|
-
id: node
|
|
17
|
-
- name: Setup node ${{ steps.node.outputs.version }}
|
|
18
|
-
uses: actions/setup-node@v4
|
|
14
|
+
- uses: actions/setup-node@v6
|
|
19
15
|
with:
|
|
20
|
-
node-version:
|
|
16
|
+
node-version-file: ".nvmrc"
|
|
21
17
|
cache: pnpm
|
|
22
18
|
- name: Setup cache
|
|
23
19
|
id: cache
|