@nekoyasuii/config 0.1.0 → 0.1.1
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.
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__require
|
|
3
|
+
} from "./chunk-5wgwscd0.js";
|
|
4
|
+
|
|
1
5
|
// tools/oxlint/config/js-plugins/index.ts
|
|
2
6
|
import { existsSync } from "node:fs";
|
|
3
7
|
import { fileURLToPath } from "node:url";
|
|
@@ -7,6 +11,7 @@ var lazueePluginCandidates = [
|
|
|
7
11
|
new URL("tools/oxlint/rules/index.js", import.meta.url)
|
|
8
12
|
];
|
|
9
13
|
var lazueePluginSpecifier = fileURLToPath(lazueePluginCandidates.find((candidate) => existsSync(candidate)) ?? lazueePluginCandidates[0]);
|
|
14
|
+
var reactDoctorRules = await import("oxlint-plugin-react-doctor").then(({ ALL_REACT_DOCTOR_RULES }) => ALL_REACT_DOCTOR_RULES).catch(() => null);
|
|
10
15
|
var jsPluginEntries = [
|
|
11
16
|
{ name: "github", specifier: "eslint-plugin-github" },
|
|
12
17
|
{ name: "sonarjs", specifier: "eslint-plugin-sonarjs" },
|
|
@@ -237,6 +242,7 @@ var config = defineConfig({
|
|
|
237
242
|
"sonarjs/weak-ssl": "error",
|
|
238
243
|
"sonarjs/x-powered-by": "error",
|
|
239
244
|
"sonarjs/xml-parser-xxe": "error",
|
|
245
|
+
...reactDoctorRules,
|
|
240
246
|
"react-doctor/activity-wraps-effect-heavy-subtree": "error",
|
|
241
247
|
"react-doctor/advanced-event-handler-refs": "error",
|
|
242
248
|
"react-doctor/async-await-in-loop": "error",
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "../../../chunk-xmts0xe5.js";
|
|
4
4
|
import {
|
|
5
5
|
selectJsPlugins
|
|
6
|
-
} from "../../../chunk-
|
|
6
|
+
} from "../../../chunk-1chg07xf.js";
|
|
7
7
|
import"../../../chunk-41590bpf.js";
|
|
8
8
|
import {
|
|
9
9
|
reactConfig
|
|
@@ -11,13 +11,10 @@ import {
|
|
|
11
11
|
import {
|
|
12
12
|
antiSlopConfig
|
|
13
13
|
} from "../../../chunk-c8jq73qx.js";
|
|
14
|
-
import
|
|
15
|
-
__require
|
|
16
|
-
} from "../../../chunk-5wgwscd0.js";
|
|
14
|
+
import"../../../chunk-5wgwscd0.js";
|
|
17
15
|
|
|
18
16
|
// tools/oxlint/config/index.ts
|
|
19
17
|
import { defineConfig } from "oxlint";
|
|
20
|
-
var reactDoctorRules = await import("oxlint-plugin-react-doctor").then(({ ALL_REACT_DOCTOR_RULES }) => ALL_REACT_DOCTOR_RULES).catch(() => null);
|
|
21
18
|
var config_default = defineConfig({
|
|
22
19
|
extends: [coreConfig, reactConfig, selectJsPlugins(["lazuee", "react-doctor"]), antiSlopConfig],
|
|
23
20
|
ignorePatterns: [...coreConfig.ignorePatterns ?? []],
|
|
@@ -41,7 +38,6 @@ var config_default = defineConfig({
|
|
|
41
38
|
}
|
|
42
39
|
],
|
|
43
40
|
rules: {
|
|
44
|
-
...reactDoctorRules,
|
|
45
41
|
"anti-slop/require-safety-comment-for-type-assertion": "off",
|
|
46
42
|
"anti-slop/no-known-value-widening": "off",
|
|
47
43
|
"anti-slop/no-runtime-typeof": "off"
|