@adbayb/stack 2.40.0-next-4118432 → 2.40.0-next-14160b1
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 +4 -2
- package/dist/configs/oxlint.js +2 -2
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/configs/oxlint/index.ts
CHANGED
|
@@ -4,10 +4,11 @@ import type { OxlintConfig } from "oxlint";
|
|
|
4
4
|
import { defineConfig } from "oxlint";
|
|
5
5
|
|
|
6
6
|
const JAVASCRIPT_EXTENSIONS = ["js", "jsx", "cjs", "mjs", "mjsx"];
|
|
7
|
+
const JAVASCRIPT_EXTENSIONS_AS_STRING = JAVASCRIPT_EXTENSIONS.join(",");
|
|
8
|
+
const JAVASCRIPT_FILES = [`**/*.{${JAVASCRIPT_EXTENSIONS_AS_STRING}}`];
|
|
7
9
|
const TYPESCRIPT_EXTENSIONS = ["ts", "tsx", "cts", "mts", "mtsx"];
|
|
8
10
|
const JAVASCRIPT_LIKE_EXTENSIONS = [...JAVASCRIPT_EXTENSIONS, ...TYPESCRIPT_EXTENSIONS];
|
|
9
11
|
const JAVASCRIPT_LIKE_EXTENSIONS_AS_STRING = JAVASCRIPT_LIKE_EXTENSIONS.join(",");
|
|
10
|
-
const JAVASCRIPT_LIKE_FILES = [`**/*.{${JAVASCRIPT_LIKE_EXTENSIONS_AS_STRING}}`];
|
|
11
12
|
|
|
12
13
|
const TEST_LIKE_FILES = [
|
|
13
14
|
`**/{test,test-d}.{${JAVASCRIPT_LIKE_EXTENSIONS_AS_STRING}}`,
|
|
@@ -40,8 +41,9 @@ const config = defineConfig({
|
|
|
40
41
|
},
|
|
41
42
|
},
|
|
42
43
|
{
|
|
43
|
-
files:
|
|
44
|
+
files: JAVASCRIPT_FILES,
|
|
44
45
|
rules: {
|
|
46
|
+
// Following disabled rules are required until this issue is resolved https://github.com/oxc-project/oxc/issues/20073
|
|
45
47
|
"typescript/no-unsafe-assignment": "off",
|
|
46
48
|
"typescript/no-unsafe-call": "off",
|
|
47
49
|
"typescript/no-unsafe-member-access": "off",
|
package/dist/configs/oxlint.js
CHANGED
|
@@ -10,6 +10,7 @@ const JAVASCRIPT_EXTENSIONS = [
|
|
|
10
10
|
"mjs",
|
|
11
11
|
"mjsx"
|
|
12
12
|
];
|
|
13
|
+
const JAVASCRIPT_FILES = [`**/*.{${JAVASCRIPT_EXTENSIONS.join(",")}}`];
|
|
13
14
|
const TYPESCRIPT_EXTENSIONS = [
|
|
14
15
|
"ts",
|
|
15
16
|
"tsx",
|
|
@@ -18,7 +19,6 @@ const TYPESCRIPT_EXTENSIONS = [
|
|
|
18
19
|
"mtsx"
|
|
19
20
|
];
|
|
20
21
|
const JAVASCRIPT_LIKE_EXTENSIONS_AS_STRING = [...JAVASCRIPT_EXTENSIONS, ...TYPESCRIPT_EXTENSIONS].join(",");
|
|
21
|
-
const JAVASCRIPT_LIKE_FILES = [`**/*.{${JAVASCRIPT_LIKE_EXTENSIONS_AS_STRING}}`];
|
|
22
22
|
const TEST_LIKE_FILES = [`**/{test,test-d}.{${JAVASCRIPT_LIKE_EXTENSIONS_AS_STRING}}`, `**/*.{test,test-d}.{${JAVASCRIPT_LIKE_EXTENSIONS_AS_STRING}}`];
|
|
23
23
|
const config = defineConfig({
|
|
24
24
|
categories: {
|
|
@@ -48,7 +48,7 @@ const config = defineConfig({
|
|
|
48
48
|
rules: { "unicorn/require-module-specifiers": "off" }
|
|
49
49
|
},
|
|
50
50
|
{
|
|
51
|
-
files:
|
|
51
|
+
files: JAVASCRIPT_FILES,
|
|
52
52
|
rules: {
|
|
53
53
|
"typescript/no-unsafe-assignment": "off",
|
|
54
54
|
"typescript/no-unsafe-call": "off",
|
package/dist/index.js
CHANGED