@teacss/linter 0.10.15 → 0.10.16
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 +1 -1
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
An [oxlint](https://oxc.rs/docs/guide/usage/linter.html) plugin that limits which TeaCSS classes a project may write. It reads class strings from `.js`, `.jsx`, `.ts` and `.tsx` files, asks the Rust engine (`@teacss/engine`) what each class is, and reports the ones your policy does not allow. The policy lives in `.oxlintrc.json`; component code does not change.
|
|
4
4
|
|
|
5
|
-
Install it with oxlint as development dependencies: `npm install --save-dev @teacss/linter oxlint@1.
|
|
5
|
+
Install it with oxlint as development dependencies: `npm install --save-dev @teacss/linter oxlint@1.95`. It needs Node.js 26 or later and oxlint 1.95.x. The oxlint API for JavaScript plugins is in alpha, so the supported oxlint range is exactly the tested one, and this package is a preview: its rule names and options are not covered by TeaCSS's stability promise and may change in any release. ESLint is not supported. Its tests pass on macOS and on Linux (glibc and musl); it has not been run on Windows.
|
|
6
6
|
|
|
7
7
|
## Setup
|
|
8
8
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teacss/linter",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.16",
|
|
4
4
|
"description": "oxlint plugin for TeaCSS: limits which classes a project may write",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -33,15 +33,15 @@
|
|
|
33
33
|
"node": ">=26"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@teacss/engine": "0.10.
|
|
36
|
+
"@teacss/engine": "0.10.16"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
|
-
"oxlint": "1.
|
|
39
|
+
"oxlint": "1.95.x"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@types/node": "^
|
|
43
|
-
"oxlint": "1.
|
|
44
|
-
"typescript": "^
|
|
42
|
+
"@types/node": "^26.6.11",
|
|
43
|
+
"oxlint": "1.95.0",
|
|
44
|
+
"typescript": "^7.0.2"
|
|
45
45
|
},
|
|
46
46
|
"scripts": {
|
|
47
47
|
"build:ts": "node -e \"for (const d of ['build','dist']) require('fs').rmSync(d,{recursive:true,force:true})\" && tsc -p tsconfig.json && tsc -p tsconfig.test.json",
|