oxlint-tailwindcss 1.3.2 → 1.3.4

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/dist/index.mjs CHANGED
@@ -1,12 +1,76 @@
1
1
  import { createRequire } from "node:module";
2
- import { definePlugin, defineRule } from "@oxlint/plugins";
3
2
  import { Worker, threadId } from "node:worker_threads";
4
3
  import { createHash } from "node:crypto";
5
4
  import { closeSync, existsSync, mkdirSync, openSync, readFileSync, renameSync, statSync, unlinkSync } from "node:fs";
6
5
  import { dirname, isAbsolute, join, relative, resolve } from "node:path";
7
6
  import { tmpdir, userInfo } from "node:os";
8
7
  //#region \0rolldown/runtime.js
9
- var __require = /* @__PURE__ */ createRequire(import.meta.url);
8
+ var __require = /* #__PURE__ */ (() => createRequire(import.meta.url))();
9
+ //#endregion
10
+ //#region ../../node_modules/.pnpm/@oxlint+plugins@1.72.0/node_modules/@oxlint/plugins/index.js
11
+ /**
12
+ * Define a plugin.
13
+ *
14
+ * No-op function, just to provide type safety. Input is passed through unchanged.
15
+ *
16
+ * @param plugin - Plugin to define
17
+ * @returns Same plugin as passed in
18
+ */
19
+ function definePlugin(plugin) {
20
+ return plugin;
21
+ }
22
+ /**
23
+ * Define a rule.
24
+ *
25
+ * No-op function, just to provide type safety. Input is passed through unchanged.
26
+ *
27
+ * @param rule - Rule to define
28
+ * @returns Same rule as passed in
29
+ */
30
+ function defineRule(rule) {
31
+ return rule;
32
+ }
33
+ Object.freeze({
34
+ get filename() {
35
+ throw Error("Cannot access `context.filename` in `createOnce`");
36
+ },
37
+ getFilename() {
38
+ throw Error("Cannot call `context.getFilename` in `createOnce`");
39
+ },
40
+ get physicalFilename() {
41
+ throw Error("Cannot access `context.physicalFilename` in `createOnce`");
42
+ },
43
+ getPhysicalFilename() {
44
+ throw Error("Cannot call `context.getPhysicalFilename` in `createOnce`");
45
+ },
46
+ get cwd() {
47
+ throw Error("Cannot access `context.cwd` in `createOnce`");
48
+ },
49
+ getCwd() {
50
+ throw Error("Cannot call `context.getCwd` in `createOnce`");
51
+ },
52
+ get sourceCode() {
53
+ throw Error("Cannot access `context.sourceCode` in `createOnce`");
54
+ },
55
+ getSourceCode() {
56
+ throw Error("Cannot call `context.getSourceCode` in `createOnce`");
57
+ },
58
+ get languageOptions() {
59
+ throw Error("Cannot access `context.languageOptions` in `createOnce`");
60
+ },
61
+ get settings() {
62
+ throw Error("Cannot access `context.settings` in `createOnce`");
63
+ },
64
+ extend(extension) {
65
+ return Object.freeze(Object.assign(Object.create(this), extension));
66
+ },
67
+ get parserOptions() {
68
+ throw Error("Cannot access `context.parserOptions` in `createOnce`");
69
+ },
70
+ get parserPath() {
71
+ throw Error("Cannot access `context.parserPath` in `createOnce`");
72
+ }
73
+ });
10
74
  //#endregion
11
75
  //#region src/utils/allowlist.ts
12
76
  /**
@@ -725,7 +789,7 @@ function reattachImportant(bare, position) {
725
789
  * `consistent-variant-order` (partitions them last) and
726
790
  * `no-contradicting-variants` (they can't contradict a base class).
727
791
  */
728
- const PSEUDO_ELEMENT_VARIANTS = new Set([
792
+ const PSEUDO_ELEMENT_VARIANTS = /* @__PURE__ */ new Set([
729
793
  "before",
730
794
  "after",
731
795
  "file",
@@ -1700,7 +1764,7 @@ const IMPORT_RE = /@import\s+(?:url\(\s*)?['"]([^'"]+)['"]/g;
1700
1764
  */
1701
1765
  function hashableContent(entryPath, entryContent) {
1702
1766
  const parts = [entryContent];
1703
- const seen = new Set([resolve(entryPath)]);
1767
+ const seen = /* @__PURE__ */ new Set([resolve(entryPath)]);
1704
1768
  const visit = (cssPath, content, depth) => {
1705
1769
  if (depth <= 0) return;
1706
1770
  const baseDir = dirname(cssPath);
@@ -3264,7 +3328,7 @@ const enforceSortOrder = defineRule({
3264
3328
  //#endregion
3265
3329
  //#region src/rules/enforce-shorthand.ts
3266
3330
  const VALUE_RE = /^(?:m[trbl]|mx|my|p[trbl]|px|py|[wh]|rounded-t[lr]|rounded-b[lr]|min-[wh]|max-[wh])-(.+)$/;
3267
- const INVALID_SIZE_VALUES = new Set([
3331
+ const INVALID_SIZE_VALUES = /* @__PURE__ */ new Set([
3268
3332
  "screen",
3269
3333
  "dvw",
3270
3334
  "dvh",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oxlint-tailwindcss",
3
- "version": "1.3.2",
3
+ "version": "1.3.4",
4
4
  "description": "Tailwind CSS linting rules for oxlint",
5
5
  "keywords": [
6
6
  "css",
@@ -51,23 +51,20 @@
51
51
  "prepublishOnly": "pnpm run build"
52
52
  },
53
53
  "dependencies": {
54
- "@tailwindcss/node": "^4.3.1",
55
- "tailwindcss": "^4.3.1"
54
+ "@tailwindcss/node": "^4.3.2",
55
+ "tailwindcss": "^4.3.2"
56
56
  },
57
57
  "devDependencies": {
58
58
  "@oxlint/plugins": "catalog:",
59
59
  "@tailwindcss/typography": "^0.5.20",
60
- "@types/node": "^25.9.3",
61
- "@typescript/native-preview": "7.0.0-dev.20260608.1",
60
+ "@types/node": "^26.0.1",
61
+ "@typescript/native-preview": "7.0.0-dev.20260630.1",
62
62
  "oxlint": "catalog:",
63
63
  "tailwindcss-animate": "^1.0.7",
64
- "tsdown": "^0.22.2",
64
+ "tsdown": "^0.22.3",
65
65
  "tw-animate-css": "^1.4.0",
66
66
  "typescript": "^6.0.3",
67
- "vitest": "^4.1.8"
68
- },
69
- "peerDependencies": {
70
- "@oxlint/plugins": ">=1.43.0 <2"
67
+ "vitest": "^4.1.9"
71
68
  },
72
69
  "engines": {
73
70
  "node": ">=20"