oxlint-tailwindcss 1.3.2 → 1.3.3
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.cjs +135 -72
- package/dist/index.d.cts +4021 -1
- package/dist/index.d.mts +4021 -1
- package/dist/index.mjs +65 -1
- package/package.json +3 -6
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
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";
|
|
@@ -8,6 +7,71 @@ import { tmpdir, userInfo } from "node:os";
|
|
|
8
7
|
//#region \0rolldown/runtime.js
|
|
9
8
|
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
10
9
|
//#endregion
|
|
10
|
+
//#region ../../node_modules/.pnpm/@oxlint+plugins@1.70.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
|
+
});
|
|
74
|
+
//#endregion
|
|
11
75
|
//#region src/utils/allowlist.ts
|
|
12
76
|
/**
|
|
13
77
|
* Shared regex-allowlist helpers used by rules that accept an `allowlist`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oxlint-tailwindcss",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.3",
|
|
4
4
|
"description": "Tailwind CSS linting rules for oxlint",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"css",
|
|
@@ -58,16 +58,13 @@
|
|
|
58
58
|
"@oxlint/plugins": "catalog:",
|
|
59
59
|
"@tailwindcss/typography": "^0.5.20",
|
|
60
60
|
"@types/node": "^25.9.3",
|
|
61
|
-
"@typescript/native-preview": "7.0.0-dev.
|
|
61
|
+
"@typescript/native-preview": "7.0.0-dev.20260615.1",
|
|
62
62
|
"oxlint": "catalog:",
|
|
63
63
|
"tailwindcss-animate": "^1.0.7",
|
|
64
64
|
"tsdown": "^0.22.2",
|
|
65
65
|
"tw-animate-css": "^1.4.0",
|
|
66
66
|
"typescript": "^6.0.3",
|
|
67
|
-
"vitest": "^4.1.
|
|
68
|
-
},
|
|
69
|
-
"peerDependencies": {
|
|
70
|
-
"@oxlint/plugins": ">=1.43.0 <2"
|
|
67
|
+
"vitest": "^4.1.9"
|
|
71
68
|
},
|
|
72
69
|
"engines": {
|
|
73
70
|
"node": ">=20"
|