@haltcase/style 8.0.1 → 9.0.0-canary.2
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 +8 -4
- package/THIRD-PARTY-NOTICES +28 -0
- package/dist/editorconfig/index.d.ts +1 -4
- package/dist/editorconfig/index.js +1 -2
- package/dist/oxfmt/index.d.ts +2 -5
- package/dist/oxfmt/index.js +3 -2
- package/dist/oxfmt/utils.d.ts +3 -0
- package/dist/oxfmt/utils.js +4 -0
- package/dist/oxlint/configs/base.d.ts +433 -12
- package/dist/oxlint/configs/base.js +7 -3
- package/dist/oxlint/configs/next.d.ts +31 -11
- package/dist/oxlint/configs/next.js +7 -3
- package/dist/oxlint/configs/node.d.ts +19 -11
- package/dist/oxlint/configs/node.js +4 -3
- package/dist/oxlint/configs/react.d.ts +1 -4
- package/dist/oxlint/configs/react.js +6 -5
- package/dist/oxlint/configs/tanstack-router.d.ts +8 -6
- package/dist/oxlint/configs/tanstack-router.js +5 -5
- package/dist/oxlint/configs/tanstack-start.d.ts +8 -11
- package/dist/oxlint/configs/tanstack-start.js +1 -2
- package/dist/oxlint/configs/testing.d.ts +83 -11
- package/dist/oxlint/configs/testing.js +4 -3
- package/dist/oxlint/configs/typescript.d.ts +95 -11
- package/dist/oxlint/configs/typescript.js +2 -3
- package/dist/oxlint/constants.d.ts +21 -24
- package/dist/oxlint/constants.js +7 -8
- package/dist/oxlint/index.d.ts +4 -6
- package/dist/oxlint/index.js +3 -3
- package/dist/oxlint/plugin.d.ts +4 -0
- package/dist/oxlint/plugin.js +11 -0
- package/dist/oxlint/rules/_next.d.ts +25 -0
- package/dist/oxlint/rules/_next.js +28 -0
- package/dist/oxlint/rules/_node.d.ts +13 -0
- package/dist/oxlint/rules/_node.js +16 -0
- package/dist/oxlint/rules/_testing.d.ts +77 -0
- package/dist/oxlint/rules/_testing.js +80 -0
- package/dist/oxlint/rules/_typescript-defaults.d.ts +113 -0
- package/dist/oxlint/rules/_typescript-defaults.js +116 -0
- package/dist/oxlint/rules/best-practice.d.ts +80 -5
- package/dist/oxlint/rules/best-practice.js +78 -1
- package/dist/oxlint/rules/imports.d.ts +16 -5
- package/dist/oxlint/rules/imports.js +14 -1
- package/dist/oxlint/rules/jsx-a11y.d.ts +38 -6
- package/dist/oxlint/rules/jsx-a11y.js +39 -2
- package/dist/oxlint/rules/playwright-test.d.ts +2 -5
- package/dist/oxlint/rules/playwright-test.js +1 -2
- package/dist/oxlint/rules/possible-errors.d.ts +114 -5
- package/dist/oxlint/rules/possible-errors.js +113 -2
- package/dist/oxlint/rules/react-x.d.ts +2 -5
- package/dist/oxlint/rules/react-x.js +0 -1
- package/dist/oxlint/rules/react.d.ts +78 -6
- package/dist/oxlint/rules/react.js +76 -2
- package/dist/oxlint/rules/restriction.d.ts +35 -5
- package/dist/oxlint/rules/restriction.js +34 -2
- package/dist/oxlint/rules/stylistic-jsx.d.ts +2 -5
- package/dist/oxlint/rules/stylistic-jsx.js +1 -2
- package/dist/oxlint/rules/stylistic.d.ts +78 -5
- package/dist/oxlint/rules/stylistic.js +76 -1
- package/dist/oxlint/rules/typescript/declaration-files.d.ts +2 -5
- package/dist/oxlint/rules/typescript/declaration-files.js +0 -1
- package/dist/oxlint/rules/typescript/index.d.ts +89 -5
- package/dist/oxlint/rules/typescript/index.js +87 -1
- package/dist/oxlint/rules/variables.d.ts +2 -5
- package/dist/oxlint/rules/variables.js +1 -2
- package/dist/oxlint/utils/eslint-compat.d.ts +3 -5
- package/dist/oxlint/utils/eslint-compat.js +1 -2
- package/dist/oxlint/vendor/gnkz/padding.d.ts +12 -0
- package/dist/oxlint/vendor/gnkz/padding.js +54 -0
- package/dist/oxlint/vendor/gnkz/rules/padding-between-statements.d.ts +14 -0
- package/dist/oxlint/vendor/gnkz/rules/padding-between-statements.js +111 -0
- package/dist/stylelint/_base.d.ts +1 -4
- package/dist/stylelint/_base.js +1 -2
- package/dist/stylelint/index.d.ts +0 -2
- package/dist/stylelint/index.js +1 -2
- package/dist/stylelint/modules.d.ts +0 -2
- package/dist/stylelint/modules.js +1 -2
- package/dist/stylelint/standard.js +1 -2
- package/dist/stylelint/tailwind.d.ts +0 -2
- package/dist/stylelint/tailwind.js +1 -2
- package/dist/vite-plus/index.d.ts +2 -4
- package/dist/vite-plus/index.js +1 -2
- package/package.json +42 -39
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "node:path";
|
|
2
2
|
import "node:url";
|
|
3
3
|
import.meta.url;
|
|
4
|
-
|
|
4
|
+
// src/oxlint/rules/variables.ts
|
|
5
5
|
const variablesRules = {
|
|
6
6
|
/**
|
|
7
7
|
* Disallow labels that share a name with a variable.
|
|
@@ -22,5 +22,4 @@ const variablesRules = {
|
|
|
22
22
|
varsIgnorePattern: "^_"
|
|
23
23
|
}]
|
|
24
24
|
};
|
|
25
|
-
//#endregion
|
|
26
25
|
export { variablesRules };
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import __tsdown_shims_path from 'node:path';
|
|
2
2
|
import __tsdown_shims_url from 'node:url';
|
|
3
3
|
import { DummyRuleMap, ExternalPluginEntry } from "oxlint";
|
|
4
|
-
//#region src/oxlint/utils/eslint-compat.d.ts
|
|
5
4
|
type PartialRuleMap = Partial<DummyRuleMap> | undefined;
|
|
6
|
-
declare const resolveRuleMap: (rules: PartialRuleMap) => DummyRuleMap;
|
|
7
|
-
declare const resolveJsPlugin: (name: string, specifier?: string) => ExternalPluginEntry;
|
|
8
|
-
|
|
9
|
-
export { resolveJsPlugin, resolveRuleMap };
|
|
5
|
+
export declare const resolveRuleMap: (rules: PartialRuleMap) => DummyRuleMap;
|
|
6
|
+
export declare const resolveJsPlugin: (name: string, specifier?: string) => ExternalPluginEntry;
|
|
7
|
+
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "node:path";
|
|
2
2
|
import "node:url";
|
|
3
3
|
import.meta.url;
|
|
4
|
-
|
|
4
|
+
// src/oxlint/utils/eslint-compat.ts
|
|
5
5
|
const resolveRuleMap = (rules) => {
|
|
6
6
|
if (!rules) return {};
|
|
7
7
|
return Object.fromEntries(Object.entries(rules).flatMap(([ruleName, ruleConfig]) => {
|
|
@@ -31,5 +31,4 @@ const resolveJsPlugin = (name, specifier = name) => {
|
|
|
31
31
|
};
|
|
32
32
|
}
|
|
33
33
|
};
|
|
34
|
-
//#endregion
|
|
35
34
|
export { resolveJsPlugin, resolveRuleMap };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import __tsdown_shims_path from 'node:path';
|
|
2
|
+
import __tsdown_shims_url from 'node:url';
|
|
3
|
+
import { Context, Span } from "@oxlint/plugins";
|
|
4
|
+
export declare function isMultiline(node: Span): boolean;
|
|
5
|
+
/** Each element paired with the one after it. */
|
|
6
|
+
export declare function adjacentPairs<T>(items: readonly T[]): Array<readonly [T, T]>;
|
|
7
|
+
export interface PaddingViolation {
|
|
8
|
+
readonly previous: Span;
|
|
9
|
+
readonly next: Span;
|
|
10
|
+
readonly messageId: string;
|
|
11
|
+
}
|
|
12
|
+
export declare function reportMissingBlankLine(context: Context, violation: PaddingViolation): void;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import "node:path";
|
|
2
|
+
import "node:url";
|
|
3
|
+
import.meta.url;
|
|
4
|
+
// src/oxlint/vendor/gnkz/padding.ts
|
|
5
|
+
function isMultiline(node) {
|
|
6
|
+
return node.loc.start.line !== node.loc.end.line;
|
|
7
|
+
}
|
|
8
|
+
/** Each element paired with the one after it. */
|
|
9
|
+
function adjacentPairs(items) {
|
|
10
|
+
return items.slice(1).flatMap((next, index) => {
|
|
11
|
+
const previous = items[index];
|
|
12
|
+
return previous === void 0 ? [] : [[previous, next]];
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
function commentsBetween(sourceCode, previous, next) {
|
|
16
|
+
return sourceCode.getCommentsBefore(next).filter((comment) => comment.range[0] >= previous.range[1]);
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* The comments between two siblings that belong to `next`. A comment on the same line as the end
|
|
20
|
+
* of `previous` is a trailing comment of `previous`, so the blank line goes after it.
|
|
21
|
+
*/
|
|
22
|
+
function leadingItems(sourceCode, previous, next) {
|
|
23
|
+
return [...commentsBetween(sourceCode, previous, next).filter((comment) => comment.loc.start.line > previous.loc.end.line), next];
|
|
24
|
+
}
|
|
25
|
+
function hasBlankLineBetween(sourceCode, previous, next) {
|
|
26
|
+
return adjacentPairs([
|
|
27
|
+
previous,
|
|
28
|
+
...commentsBetween(sourceCode, previous, next),
|
|
29
|
+
next
|
|
30
|
+
]).some(([before, after]) => after.loc.start.line - before.loc.end.line > 1);
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Inserts the blank line above `next` and its leading comments, so a comment stays attached to
|
|
34
|
+
* the code it describes.
|
|
35
|
+
*/
|
|
36
|
+
function insertBlankLine(sourceCode, previous, next) {
|
|
37
|
+
const [first = next] = leadingItems(sourceCode, previous, next);
|
|
38
|
+
if (first.loc.start.line === previous.loc.end.line) return (fixer) => fixer.insertTextBeforeRange(first.range, "\n\n");
|
|
39
|
+
const lineStart = sourceCode.getIndexFromLoc({
|
|
40
|
+
line: first.loc.start.line,
|
|
41
|
+
column: 0
|
|
42
|
+
});
|
|
43
|
+
return (fixer) => fixer.insertTextBeforeRange([lineStart, lineStart], "\n");
|
|
44
|
+
}
|
|
45
|
+
function reportMissingBlankLine(context, violation) {
|
|
46
|
+
const { previous, next, messageId } = violation;
|
|
47
|
+
if (hasBlankLineBetween(context.sourceCode, previous, next)) return;
|
|
48
|
+
context.report({
|
|
49
|
+
node: next,
|
|
50
|
+
messageId,
|
|
51
|
+
fix: insertBlankLine(context.sourceCode, previous, next)
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
export { adjacentPairs, isMultiline, reportMissingBlankLine };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import __tsdown_shims_path from 'node:path';
|
|
2
|
+
import __tsdown_shims_url from 'node:url';
|
|
3
|
+
/**
|
|
4
|
+
* Requires a blank line between statements that belong to different groups. Blank lines split a
|
|
5
|
+
* body into paragraphs: a run of declarations, a run of calls, a control-flow block, the final
|
|
6
|
+
* `return`. Without them every line reads with the same weight and the reader has to find the
|
|
7
|
+
* structure on their own.
|
|
8
|
+
*
|
|
9
|
+
* A blank line is required around block-like statements (`if`, loops, `try`, function and class
|
|
10
|
+
* declarations) and around any statement that spans several lines. Single-line statements may be
|
|
11
|
+
* grouped only with statements of the same kind: imports, re-exports, variable declarations, type
|
|
12
|
+
* declarations, `return`/`throw`, or other statements.
|
|
13
|
+
*/
|
|
14
|
+
export declare const paddingBetweenStatements: import("@oxlint/plugins").Rule;
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import "node:path";
|
|
2
|
+
import "node:url";
|
|
3
|
+
import.meta.url;
|
|
4
|
+
import { adjacentPairs, isMultiline, reportMissingBlankLine } from "../padding.js";
|
|
5
|
+
import { defineRule } from "@oxlint/plugins";
|
|
6
|
+
// src/oxlint/vendor/gnkz/rules/padding-between-statements.ts
|
|
7
|
+
const BLOCK_LIKE = /* @__PURE__ */ new Set([
|
|
8
|
+
"BlockStatement",
|
|
9
|
+
"ClassDeclaration",
|
|
10
|
+
"DoWhileStatement",
|
|
11
|
+
"ForInStatement",
|
|
12
|
+
"ForOfStatement",
|
|
13
|
+
"ForStatement",
|
|
14
|
+
"FunctionDeclaration",
|
|
15
|
+
"IfStatement",
|
|
16
|
+
"LabeledStatement",
|
|
17
|
+
"SwitchStatement",
|
|
18
|
+
"TryStatement",
|
|
19
|
+
"TSEnumDeclaration",
|
|
20
|
+
"TSModuleDeclaration",
|
|
21
|
+
"WhileStatement"
|
|
22
|
+
]);
|
|
23
|
+
const KIND_BY_TYPE = /* @__PURE__ */ new Map([
|
|
24
|
+
["ImportDeclaration", "import"],
|
|
25
|
+
["TSImportEqualsDeclaration", "import"],
|
|
26
|
+
["ExportAllDeclaration", "reexport"],
|
|
27
|
+
["VariableDeclaration", "variable"],
|
|
28
|
+
["TSTypeAliasDeclaration", "type"],
|
|
29
|
+
["TSInterfaceDeclaration", "type"],
|
|
30
|
+
["ReturnStatement", "jump"],
|
|
31
|
+
["ThrowStatement", "jump"]
|
|
32
|
+
]);
|
|
33
|
+
/** The declaration an `export` wraps, so `export const` pads like `const`. */
|
|
34
|
+
function unwrapExport(node) {
|
|
35
|
+
if (node.type === "ExportNamedDeclaration") return node.declaration ?? node;
|
|
36
|
+
return node.type === "ExportDefaultDeclaration" ? node.declaration : node;
|
|
37
|
+
}
|
|
38
|
+
function kindOf(node) {
|
|
39
|
+
if (node.type === "ExportNamedDeclaration" && node.source !== null) return "reexport";
|
|
40
|
+
return KIND_BY_TYPE.get(unwrapExport(node).type) ?? "other";
|
|
41
|
+
}
|
|
42
|
+
function isBlockLike(node) {
|
|
43
|
+
return BLOCK_LIKE.has(unwrapExport(node).type);
|
|
44
|
+
}
|
|
45
|
+
/** Overload signatures sit directly above their implementation. */
|
|
46
|
+
function isOverloadPair(previous, next) {
|
|
47
|
+
return unwrapExport(previous).type === "TSDeclareFunction" && isBlockLike(next);
|
|
48
|
+
}
|
|
49
|
+
function paddingReason(previous, next) {
|
|
50
|
+
const previousKind = kindOf(previous);
|
|
51
|
+
const nextKind = kindOf(next);
|
|
52
|
+
if ((previousKind === "import" || previousKind === "reexport") && previousKind === nextKind) return;
|
|
53
|
+
if (isOverloadPair(previous, next)) return;
|
|
54
|
+
if (isBlockLike(previous) || isBlockLike(next)) return "blockLike";
|
|
55
|
+
if (isMultiline(previous) || isMultiline(next)) return "multiline";
|
|
56
|
+
return previousKind === nextKind ? void 0 : "kindChange";
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Requires a blank line between statements that belong to different groups. Blank lines split a
|
|
60
|
+
* body into paragraphs: a run of declarations, a run of calls, a control-flow block, the final
|
|
61
|
+
* `return`. Without them every line reads with the same weight and the reader has to find the
|
|
62
|
+
* structure on their own.
|
|
63
|
+
*
|
|
64
|
+
* A blank line is required around block-like statements (`if`, loops, `try`, function and class
|
|
65
|
+
* declarations) and around any statement that spans several lines. Single-line statements may be
|
|
66
|
+
* grouped only with statements of the same kind: imports, re-exports, variable declarations, type
|
|
67
|
+
* declarations, `return`/`throw`, or other statements.
|
|
68
|
+
*/
|
|
69
|
+
const paddingBetweenStatements = defineRule({
|
|
70
|
+
meta: {
|
|
71
|
+
type: "layout",
|
|
72
|
+
fixable: "whitespace",
|
|
73
|
+
docs: { description: "Require blank lines that separate statements into related groups." },
|
|
74
|
+
messages: {
|
|
75
|
+
blockLike: "Separate block statements and function or class declarations from their neighbours with a blank line.",
|
|
76
|
+
multiline: "Separate statements that span several lines from their neighbours with a blank line.",
|
|
77
|
+
kindChange: "Add a blank line where the statement kind changes (declarations, other statements, return or throw)."
|
|
78
|
+
},
|
|
79
|
+
schema: []
|
|
80
|
+
},
|
|
81
|
+
create(context) {
|
|
82
|
+
function checkBody(body) {
|
|
83
|
+
for (const [previous, next] of adjacentPairs(body)) {
|
|
84
|
+
const messageId = paddingReason(previous, next);
|
|
85
|
+
if (messageId !== void 0) reportMissingBlankLine(context, {
|
|
86
|
+
previous,
|
|
87
|
+
next,
|
|
88
|
+
messageId
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
return {
|
|
93
|
+
Program: (node) => {
|
|
94
|
+
checkBody(node.body);
|
|
95
|
+
},
|
|
96
|
+
BlockStatement: (node) => {
|
|
97
|
+
checkBody(node.body);
|
|
98
|
+
},
|
|
99
|
+
StaticBlock: (node) => {
|
|
100
|
+
checkBody(node.body);
|
|
101
|
+
},
|
|
102
|
+
TSModuleBlock: (node) => {
|
|
103
|
+
checkBody(node.body);
|
|
104
|
+
},
|
|
105
|
+
SwitchCase: (node) => {
|
|
106
|
+
checkBody(node.consequent);
|
|
107
|
+
}
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
});
|
|
111
|
+
export { paddingBetweenStatements };
|
|
@@ -1,6 +1,3 @@
|
|
|
1
1
|
import __tsdown_shims_path from 'node:path';
|
|
2
2
|
import __tsdown_shims_url from 'node:url';
|
|
3
|
-
|
|
4
|
-
declare const stylelintBase: import("stylelint-define-config").StylelintConfig;
|
|
5
|
-
//#endregion
|
|
6
|
-
export { stylelintBase };
|
|
3
|
+
export declare const stylelintBase: import("stylelint-define-config").StylelintConfig;
|
package/dist/stylelint/_base.js
CHANGED
|
@@ -2,7 +2,7 @@ import "node:path";
|
|
|
2
2
|
import "node:url";
|
|
3
3
|
import.meta.url;
|
|
4
4
|
import { defineConfig } from "stylelint-define-config";
|
|
5
|
-
|
|
5
|
+
// src/stylelint/_base.ts
|
|
6
6
|
const stylelintBase = defineConfig({
|
|
7
7
|
extends: [
|
|
8
8
|
"stylelint-config-standard",
|
|
@@ -36,5 +36,4 @@ const stylelintBase = defineConfig({
|
|
|
36
36
|
}]
|
|
37
37
|
}
|
|
38
38
|
});
|
|
39
|
-
//#endregion
|
|
40
39
|
export { stylelintBase };
|
package/dist/stylelint/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import "node:url";
|
|
|
3
3
|
import.meta.url;
|
|
4
4
|
import { stylelintBase } from "./_base.js";
|
|
5
5
|
import { defineConfig } from "stylelint-define-config";
|
|
6
|
-
|
|
6
|
+
// src/stylelint/index.ts
|
|
7
7
|
var stylelint_default = defineConfig({
|
|
8
8
|
...stylelintBase,
|
|
9
9
|
rules: {
|
|
@@ -14,5 +14,4 @@ var stylelint_default = defineConfig({
|
|
|
14
14
|
"selector-class-pattern": null
|
|
15
15
|
}
|
|
16
16
|
});
|
|
17
|
-
//#endregion
|
|
18
17
|
export { stylelint_default as default };
|
|
@@ -3,7 +3,7 @@ import "node:url";
|
|
|
3
3
|
import.meta.url;
|
|
4
4
|
import { stylelintBase } from "./_base.js";
|
|
5
5
|
import { defineConfig } from "stylelint-define-config";
|
|
6
|
-
|
|
6
|
+
// src/stylelint/modules.ts
|
|
7
7
|
const camelCaseRegex = /^[a-z][a-zA-Z0-9]+$/;
|
|
8
8
|
var modules_default = defineConfig({
|
|
9
9
|
...stylelintBase,
|
|
@@ -15,5 +15,4 @@ var modules_default = defineConfig({
|
|
|
15
15
|
"selector-pseudo-class-no-unknown": [true, { ignorePseudoClasses: ["global"] }]
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
|
-
//#endregion
|
|
19
18
|
export { modules_default as default };
|
|
@@ -2,10 +2,9 @@ import "node:path";
|
|
|
2
2
|
import "node:url";
|
|
3
3
|
import.meta.url;
|
|
4
4
|
import { defineConfig } from "stylelint-define-config";
|
|
5
|
-
|
|
5
|
+
// src/stylelint/tailwind.ts
|
|
6
6
|
var tailwind_default = defineConfig({
|
|
7
7
|
extends: "@dreamsicle.io/stylelint-config-tailwindcss",
|
|
8
8
|
rules: { "media-query-no-invalid": [true, { ignoreFunctions: ["theme"] }] }
|
|
9
9
|
});
|
|
10
|
-
//#endregion
|
|
11
10
|
export { tailwind_default as default };
|
|
@@ -2,10 +2,8 @@ import __tsdown_shims_path from 'node:path';
|
|
|
2
2
|
import __tsdown_shims_url from 'node:url';
|
|
3
3
|
import { CreateOxlintConfigOptions } from "../oxlint/index.js";
|
|
4
4
|
import { UserConfig } from "vite-plus";
|
|
5
|
-
//#region src/vite-plus/index.d.ts
|
|
6
5
|
interface CreateVitePlusConfigOptions extends Partial<UserConfig> {
|
|
7
6
|
lintOptions?: CreateOxlintConfigOptions;
|
|
8
7
|
}
|
|
9
|
-
declare const createVitePlusConfig: (options?: CreateVitePlusConfigOptions) => UserConfig;
|
|
10
|
-
|
|
11
|
-
export { createVitePlusConfig };
|
|
8
|
+
export declare const createVitePlusConfig: (options?: CreateVitePlusConfigOptions) => UserConfig;
|
|
9
|
+
export {};
|
package/dist/vite-plus/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import "node:url";
|
|
|
3
3
|
import.meta.url;
|
|
4
4
|
import { createOxfmtConfig } from "../oxfmt/index.js";
|
|
5
5
|
import { createOxlintConfig } from "../oxlint/index.js";
|
|
6
|
-
|
|
6
|
+
// src/vite-plus/index.ts
|
|
7
7
|
const createVitePlusConfig = (options) => ({
|
|
8
8
|
...options,
|
|
9
9
|
fmt: createOxfmtConfig(options?.fmt),
|
|
@@ -12,5 +12,4 @@ const createVitePlusConfig = (options) => ({
|
|
|
12
12
|
...options?.lint
|
|
13
13
|
}
|
|
14
14
|
});
|
|
15
|
-
//#endregion
|
|
16
15
|
export { createVitePlusConfig };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@haltcase/style",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "9.0.0-canary.2",
|
|
4
4
|
"description": "haltcase's web ecosystem style guide & configurations",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"editorconfig",
|
|
@@ -20,7 +20,8 @@
|
|
|
20
20
|
"url": "https://github.com/haltcase/style.git"
|
|
21
21
|
},
|
|
22
22
|
"files": [
|
|
23
|
-
"dist"
|
|
23
|
+
"dist",
|
|
24
|
+
"THIRD-PARTY-NOTICES"
|
|
24
25
|
],
|
|
25
26
|
"type": "module",
|
|
26
27
|
"imports": {
|
|
@@ -42,6 +43,7 @@
|
|
|
42
43
|
"./oxlint/configs/testing": "./dist/oxlint/configs/testing.js",
|
|
43
44
|
"./oxlint/configs/typescript": "./dist/oxlint/configs/typescript.js",
|
|
44
45
|
"./oxlint/constants": "./dist/oxlint/constants.js",
|
|
46
|
+
"./oxlint/plugin": "./dist/oxlint/plugin.js",
|
|
45
47
|
"./oxlint/rules/best-practice": "./dist/oxlint/rules/best-practice.js",
|
|
46
48
|
"./oxlint/rules/imports": "./dist/oxlint/rules/imports.js",
|
|
47
49
|
"./oxlint/rules/jsx-a11y": "./dist/oxlint/rules/jsx-a11y.js",
|
|
@@ -69,44 +71,45 @@
|
|
|
69
71
|
"access": "public"
|
|
70
72
|
},
|
|
71
73
|
"dependencies": {
|
|
72
|
-
"@dreamsicle.io/stylelint-config-tailwindcss": "
|
|
73
|
-
"@eslint-react/eslint-plugin": "
|
|
74
|
-
"@
|
|
75
|
-
"
|
|
76
|
-
"
|
|
77
|
-
"
|
|
78
|
-
"
|
|
79
|
-
"stylelint-config-
|
|
80
|
-
"stylelint-config-
|
|
81
|
-
"stylelint-config-
|
|
82
|
-
"stylelint-
|
|
74
|
+
"@dreamsicle.io/stylelint-config-tailwindcss": "1.2.2",
|
|
75
|
+
"@eslint-react/eslint-plugin": "5.17.3",
|
|
76
|
+
"@oxlint/plugins": "1.89.0",
|
|
77
|
+
"@semantic-release/exec": "7.1.0",
|
|
78
|
+
"es-toolkit": "1.52.0",
|
|
79
|
+
"eslint-plugin-react-you-might-not-need-an-effect": "1.0.1",
|
|
80
|
+
"local-pkg": "1.2.1",
|
|
81
|
+
"stylelint-config-clean-order": "8.0.2",
|
|
82
|
+
"stylelint-config-html": "1.1.0",
|
|
83
|
+
"stylelint-config-standard": "40.0.0",
|
|
84
|
+
"stylelint-config-tailwindcss": "1.0.1",
|
|
85
|
+
"stylelint-define-config": "17.15.0"
|
|
83
86
|
},
|
|
84
87
|
"devDependencies": {
|
|
85
|
-
"@actions/core": "
|
|
86
|
-
"@actions/exec": "
|
|
87
|
-
"@actions/github": "
|
|
88
|
-
"@arethetypeswrong/core": "
|
|
89
|
-
"@commitlint/cli": "
|
|
90
|
-
"@commitlint/config-conventional": "
|
|
91
|
-
"@commitlint/types": "
|
|
92
|
-
"@
|
|
93
|
-
"@octokit/
|
|
94
|
-
"@
|
|
95
|
-
"@
|
|
96
|
-
"
|
|
97
|
-
"
|
|
98
|
-
"
|
|
99
|
-
"
|
|
100
|
-
"oxlint
|
|
101
|
-
"
|
|
102
|
-
"
|
|
103
|
-
"
|
|
104
|
-
"
|
|
105
|
-
"typescript
|
|
106
|
-
"
|
|
107
|
-
"vite
|
|
108
|
-
"
|
|
109
|
-
"
|
|
88
|
+
"@actions/core": "3.0.1",
|
|
89
|
+
"@actions/exec": "3.0.0",
|
|
90
|
+
"@actions/github": "9.1.1",
|
|
91
|
+
"@arethetypeswrong/core": "0.18.5",
|
|
92
|
+
"@commitlint/cli": "21.2.3",
|
|
93
|
+
"@commitlint/config-conventional": "21.2.3",
|
|
94
|
+
"@commitlint/types": "21.2.3",
|
|
95
|
+
"@haltcase/style": "9.0.0-canary.2",
|
|
96
|
+
"@octokit/types": "16.0.0",
|
|
97
|
+
"@octokit/webhooks-types": "7.6.1",
|
|
98
|
+
"@semantic-release/git": "11.0.1",
|
|
99
|
+
"@types/node": "24.13.3",
|
|
100
|
+
"conventional-changelog-conventionalcommits": "9.3.1",
|
|
101
|
+
"jsdom": "29.1.1",
|
|
102
|
+
"oxfmt": "0.75.0",
|
|
103
|
+
"oxlint": "1.89.0",
|
|
104
|
+
"oxlint-tsgolint": "7.0.2004",
|
|
105
|
+
"semantic-release": "25.0.9",
|
|
106
|
+
"stylelint": "17.16.0",
|
|
107
|
+
"syncpack": "15.3.3",
|
|
108
|
+
"typescript": "npm:@typescript/typescript6@6.0.2",
|
|
109
|
+
"typescript-7": "npm:typescript@7.0.2",
|
|
110
|
+
"vite": "npm:@voidzero-dev/vite-plus-core@1.4.0",
|
|
111
|
+
"vite-plus": "1.4.0",
|
|
112
|
+
"vitest": "5.0.5"
|
|
110
113
|
},
|
|
111
114
|
"peerDependencies": {
|
|
112
115
|
"@tanstack/eslint-plugin-router": "^1.161.6",
|
|
@@ -134,7 +137,7 @@
|
|
|
134
137
|
"devEngines": {
|
|
135
138
|
"packageManager": {
|
|
136
139
|
"name": "pnpm",
|
|
137
|
-
"version": "
|
|
140
|
+
"version": "12.16.1",
|
|
138
141
|
"onFail": "download"
|
|
139
142
|
}
|
|
140
143
|
},
|