@haltcase/style 8.0.1 → 9.0.0-canary.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.
- package/README.md +7 -3
- 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 +431 -12
- package/dist/oxlint/configs/base.js +3 -2
- 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 +1 -2
- 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/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 +38 -38
|
@@ -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 };
|
|
@@ -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.1",
|
|
4
4
|
"description": "haltcase's web ecosystem style guide & configurations",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"editorconfig",
|
|
@@ -69,44 +69,44 @@
|
|
|
69
69
|
"access": "public"
|
|
70
70
|
},
|
|
71
71
|
"dependencies": {
|
|
72
|
-
"@dreamsicle.io/stylelint-config-tailwindcss": "
|
|
73
|
-
"@eslint-react/eslint-plugin": "
|
|
74
|
-
"@semantic-release/exec": "
|
|
75
|
-
"es-toolkit": "
|
|
76
|
-
"eslint-plugin-react-you-might-not-need-an-effect": "
|
|
77
|
-
"local-pkg": "
|
|
78
|
-
"stylelint-config-clean-order": "
|
|
79
|
-
"stylelint-config-html": "
|
|
80
|
-
"stylelint-config-standard": "
|
|
81
|
-
"stylelint-config-tailwindcss": "
|
|
82
|
-
"stylelint-define-config": "
|
|
72
|
+
"@dreamsicle.io/stylelint-config-tailwindcss": "1.2.2",
|
|
73
|
+
"@eslint-react/eslint-plugin": "5.17.3",
|
|
74
|
+
"@semantic-release/exec": "7.1.0",
|
|
75
|
+
"es-toolkit": "1.52.0",
|
|
76
|
+
"eslint-plugin-react-you-might-not-need-an-effect": "1.0.1",
|
|
77
|
+
"local-pkg": "1.2.1",
|
|
78
|
+
"stylelint-config-clean-order": "8.0.2",
|
|
79
|
+
"stylelint-config-html": "1.1.0",
|
|
80
|
+
"stylelint-config-standard": "40.0.0",
|
|
81
|
+
"stylelint-config-tailwindcss": "1.0.1",
|
|
82
|
+
"stylelint-define-config": "17.15.0"
|
|
83
83
|
},
|
|
84
84
|
"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
|
-
"
|
|
85
|
+
"@actions/core": "3.0.1",
|
|
86
|
+
"@actions/exec": "3.0.0",
|
|
87
|
+
"@actions/github": "9.1.1",
|
|
88
|
+
"@arethetypeswrong/core": "0.18.5",
|
|
89
|
+
"@commitlint/cli": "21.2.3",
|
|
90
|
+
"@commitlint/config-conventional": "21.2.3",
|
|
91
|
+
"@commitlint/types": "21.2.3",
|
|
92
|
+
"@haltcase/style": "9.0.0-canary.1",
|
|
93
|
+
"@octokit/types": "16.0.0",
|
|
94
|
+
"@octokit/webhooks-types": "7.6.1",
|
|
95
|
+
"@semantic-release/git": "11.0.1",
|
|
96
|
+
"@types/node": "24.13.3",
|
|
97
|
+
"conventional-changelog-conventionalcommits": "9.3.1",
|
|
98
|
+
"jsdom": "29.1.1",
|
|
99
|
+
"oxfmt": "0.75.0",
|
|
100
|
+
"oxlint": "1.89.0",
|
|
101
|
+
"oxlint-tsgolint": "7.0.2004",
|
|
102
|
+
"semantic-release": "25.0.9",
|
|
103
|
+
"stylelint": "17.16.0",
|
|
104
|
+
"syncpack": "15.3.3",
|
|
105
|
+
"typescript": "npm:@typescript/typescript6@6.0.2",
|
|
106
|
+
"typescript-7": "npm:typescript@7.0.2",
|
|
107
|
+
"vite": "npm:@voidzero-dev/vite-plus-core@1.4.0",
|
|
108
|
+
"vite-plus": "1.4.0",
|
|
109
|
+
"vitest": "5.0.5"
|
|
110
110
|
},
|
|
111
111
|
"peerDependencies": {
|
|
112
112
|
"@tanstack/eslint-plugin-router": "^1.161.6",
|
|
@@ -134,7 +134,7 @@
|
|
|
134
134
|
"devEngines": {
|
|
135
135
|
"packageManager": {
|
|
136
136
|
"name": "pnpm",
|
|
137
|
-
"version": "
|
|
137
|
+
"version": "12.16.1",
|
|
138
138
|
"onFail": "download"
|
|
139
139
|
}
|
|
140
140
|
},
|