@adbayb/stack 2.40.0-next-f971d11 → 2.40.0-next-40261d0
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/oxlint/index.ts +9 -1
- package/dist/configs/oxlint.d.ts +18 -4
- package/dist/configs/oxlint.js +14 -3
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/configs/oxlint/index.ts
CHANGED
|
@@ -35,6 +35,10 @@ const config = defineConfig({
|
|
|
35
35
|
{
|
|
36
36
|
files: TEST_LIKE_FILES,
|
|
37
37
|
plugins: ["vitest"],
|
|
38
|
+
rules: {
|
|
39
|
+
"vitest/consistent-test-it": ["error", { fn: "test", withinDescribe: "test" }],
|
|
40
|
+
"vitest/no-importing-vitest-globals": "off",
|
|
41
|
+
},
|
|
38
42
|
},
|
|
39
43
|
{
|
|
40
44
|
files: [
|
|
@@ -79,6 +83,7 @@ const config = defineConfig({
|
|
|
79
83
|
"@stylistic/jsx-self-closing-comp": "error",
|
|
80
84
|
"@stylistic/lines-between-class-members": "error",
|
|
81
85
|
"@stylistic/multiline-comment-style": "error",
|
|
86
|
+
"@stylistic/padded-blocks": ["error", "never"],
|
|
82
87
|
"@stylistic/padding-line-between-statements": [
|
|
83
88
|
"error",
|
|
84
89
|
// Default: separate everything.
|
|
@@ -145,7 +150,6 @@ const config = defineConfig({
|
|
|
145
150
|
{ allowTemplateLiterals: "avoidEscape", avoidEscape: true },
|
|
146
151
|
],
|
|
147
152
|
"@stylistic/spaced-comment": "error",
|
|
148
|
-
"array-callback-return": ["error", { allowImplicit: true }],
|
|
149
153
|
"arrow-body-style": ["error", "always"],
|
|
150
154
|
"id-length": "off",
|
|
151
155
|
"import/exports-last": "off",
|
|
@@ -156,6 +160,7 @@ const config = defineConfig({
|
|
|
156
160
|
"import/no-nodejs-modules": "off",
|
|
157
161
|
"import/no-relative-parent-imports": "off",
|
|
158
162
|
"import/prefer-default-export": "off",
|
|
163
|
+
"import/unambiguous": "off",
|
|
159
164
|
"jsdoc/require-param-type": "off",
|
|
160
165
|
"jsdoc/require-property-type": "off",
|
|
161
166
|
"jsdoc/require-returns-type": "off",
|
|
@@ -186,7 +191,9 @@ const config = defineConfig({
|
|
|
186
191
|
"perfectionist/sort-named-imports": "off", // Already supported by eslint/sort-imports
|
|
187
192
|
"prefer-named-capture-group": "off",
|
|
188
193
|
"prefer-readonly-parameter-types": "off",
|
|
194
|
+
"react/jsx-filename-extension": ["error", { extensions: ["jsx", "tsx"] }],
|
|
189
195
|
"react/jsx-max-depth": "off",
|
|
196
|
+
"react/react-in-jsx-scope": "off",
|
|
190
197
|
"sort-imports": ["error", { ignoreDeclarationSort: true }],
|
|
191
198
|
"strict-boolean-expressions": "off",
|
|
192
199
|
"typescript/consistent-return": "off",
|
|
@@ -196,6 +203,7 @@ const config = defineConfig({
|
|
|
196
203
|
"typescript/no-unsafe-type-assertion": "off",
|
|
197
204
|
"unicorn/filename-case": "off",
|
|
198
205
|
"unicorn/import-style": "off",
|
|
206
|
+
"unicorn/no-useless-undefined": "off",
|
|
199
207
|
},
|
|
200
208
|
});
|
|
201
209
|
|
package/dist/configs/oxlint.d.ts
CHANGED
|
@@ -22,12 +22,22 @@ declare const config: {
|
|
|
22
22
|
overrides: ({
|
|
23
23
|
files: string[];
|
|
24
24
|
plugins: "vitest"[];
|
|
25
|
-
rules
|
|
25
|
+
rules: {
|
|
26
|
+
"vitest/consistent-test-it": ["error", {
|
|
27
|
+
fn: "test";
|
|
28
|
+
withinDescribe: "test";
|
|
29
|
+
}];
|
|
30
|
+
"vitest/no-importing-vitest-globals": "off";
|
|
31
|
+
"import/no-anonymous-default-export"?: never;
|
|
32
|
+
"import/no-default-export"?: never;
|
|
33
|
+
};
|
|
26
34
|
} | {
|
|
27
35
|
files: string[];
|
|
28
36
|
rules: {
|
|
29
37
|
"import/no-anonymous-default-export": "off";
|
|
30
38
|
"import/no-default-export": "off";
|
|
39
|
+
"vitest/consistent-test-it"?: never;
|
|
40
|
+
"vitest/no-importing-vitest-globals"?: never;
|
|
31
41
|
};
|
|
32
42
|
plugins?: never;
|
|
33
43
|
})[];
|
|
@@ -37,6 +47,7 @@ declare const config: {
|
|
|
37
47
|
"@stylistic/jsx-self-closing-comp": "error";
|
|
38
48
|
"@stylistic/lines-between-class-members": "error";
|
|
39
49
|
"@stylistic/multiline-comment-style": "error";
|
|
50
|
+
"@stylistic/padded-blocks": ["error", string];
|
|
40
51
|
"@stylistic/padding-line-between-statements": ["error", {
|
|
41
52
|
blankLine: string;
|
|
42
53
|
next: string;
|
|
@@ -83,9 +94,6 @@ declare const config: {
|
|
|
83
94
|
avoidEscape: boolean;
|
|
84
95
|
}];
|
|
85
96
|
"@stylistic/spaced-comment": "error";
|
|
86
|
-
"array-callback-return": ["error", {
|
|
87
|
-
allowImplicit: true;
|
|
88
|
-
}];
|
|
89
97
|
"arrow-body-style": ["error", "always"];
|
|
90
98
|
"id-length": "off";
|
|
91
99
|
"import/exports-last": "off";
|
|
@@ -96,6 +104,7 @@ declare const config: {
|
|
|
96
104
|
"import/no-nodejs-modules": "off";
|
|
97
105
|
"import/no-relative-parent-imports": "off";
|
|
98
106
|
"import/prefer-default-export": "off";
|
|
107
|
+
"import/unambiguous": "off";
|
|
99
108
|
"jsdoc/require-param-type": "off";
|
|
100
109
|
"jsdoc/require-property-type": "off";
|
|
101
110
|
"jsdoc/require-returns-type": "off";
|
|
@@ -128,7 +137,11 @@ declare const config: {
|
|
|
128
137
|
"perfectionist/sort-named-imports": "off";
|
|
129
138
|
"prefer-named-capture-group": "off";
|
|
130
139
|
"prefer-readonly-parameter-types": "off";
|
|
140
|
+
"react/jsx-filename-extension": ["error", {
|
|
141
|
+
extensions: string[];
|
|
142
|
+
}];
|
|
131
143
|
"react/jsx-max-depth": "off";
|
|
144
|
+
"react/react-in-jsx-scope": "off";
|
|
132
145
|
"sort-imports": ["error", {
|
|
133
146
|
ignoreDeclarationSort: true;
|
|
134
147
|
}];
|
|
@@ -140,6 +153,7 @@ declare const config: {
|
|
|
140
153
|
"typescript/no-unsafe-type-assertion": "off";
|
|
141
154
|
"unicorn/filename-case": "off";
|
|
142
155
|
"unicorn/import-style": "off";
|
|
156
|
+
"unicorn/no-useless-undefined": "off";
|
|
143
157
|
};
|
|
144
158
|
};
|
|
145
159
|
declare const createConfig: (input: Required<Pick<OxlintConfig, "ignorePatterns">>) => OxlintConfig;
|
package/dist/configs/oxlint.js
CHANGED
|
@@ -43,7 +43,14 @@ const config = defineConfig({
|
|
|
43
43
|
},
|
|
44
44
|
overrides: [{
|
|
45
45
|
files: TEST_LIKE_FILES,
|
|
46
|
-
plugins: ["vitest"]
|
|
46
|
+
plugins: ["vitest"],
|
|
47
|
+
rules: {
|
|
48
|
+
"vitest/consistent-test-it": ["error", {
|
|
49
|
+
fn: "test",
|
|
50
|
+
withinDescribe: "test"
|
|
51
|
+
}],
|
|
52
|
+
"vitest/no-importing-vitest-globals": "off"
|
|
53
|
+
}
|
|
47
54
|
}, {
|
|
48
55
|
files: [
|
|
49
56
|
...TEST_LIKE_FILES,
|
|
@@ -86,6 +93,7 @@ const config = defineConfig({
|
|
|
86
93
|
"@stylistic/jsx-self-closing-comp": "error",
|
|
87
94
|
"@stylistic/lines-between-class-members": "error",
|
|
88
95
|
"@stylistic/multiline-comment-style": "error",
|
|
96
|
+
"@stylistic/padded-blocks": ["error", "never"],
|
|
89
97
|
"@stylistic/padding-line-between-statements": [
|
|
90
98
|
"error",
|
|
91
99
|
{
|
|
@@ -156,7 +164,6 @@ const config = defineConfig({
|
|
|
156
164
|
}
|
|
157
165
|
],
|
|
158
166
|
"@stylistic/spaced-comment": "error",
|
|
159
|
-
"array-callback-return": ["error", { allowImplicit: true }],
|
|
160
167
|
"arrow-body-style": ["error", "always"],
|
|
161
168
|
"id-length": "off",
|
|
162
169
|
"import/exports-last": "off",
|
|
@@ -167,6 +174,7 @@ const config = defineConfig({
|
|
|
167
174
|
"import/no-nodejs-modules": "off",
|
|
168
175
|
"import/no-relative-parent-imports": "off",
|
|
169
176
|
"import/prefer-default-export": "off",
|
|
177
|
+
"import/unambiguous": "off",
|
|
170
178
|
"jsdoc/require-param-type": "off",
|
|
171
179
|
"jsdoc/require-property-type": "off",
|
|
172
180
|
"jsdoc/require-returns-type": "off",
|
|
@@ -197,7 +205,9 @@ const config = defineConfig({
|
|
|
197
205
|
"perfectionist/sort-named-imports": "off",
|
|
198
206
|
"prefer-named-capture-group": "off",
|
|
199
207
|
"prefer-readonly-parameter-types": "off",
|
|
208
|
+
"react/jsx-filename-extension": ["error", { extensions: ["jsx", "tsx"] }],
|
|
200
209
|
"react/jsx-max-depth": "off",
|
|
210
|
+
"react/react-in-jsx-scope": "off",
|
|
201
211
|
"sort-imports": ["error", { ignoreDeclarationSort: true }],
|
|
202
212
|
"strict-boolean-expressions": "off",
|
|
203
213
|
"typescript/consistent-return": "off",
|
|
@@ -206,7 +216,8 @@ const config = defineConfig({
|
|
|
206
216
|
"typescript/explicit-module-boundary-types": "off",
|
|
207
217
|
"typescript/no-unsafe-type-assertion": "off",
|
|
208
218
|
"unicorn/filename-case": "off",
|
|
209
|
-
"unicorn/import-style": "off"
|
|
219
|
+
"unicorn/import-style": "off",
|
|
220
|
+
"unicorn/no-useless-undefined": "off"
|
|
210
221
|
}
|
|
211
222
|
});
|
|
212
223
|
const createConfig = (input) => {
|
package/dist/index.js
CHANGED