@teacss/linter 1.0.0-rc.0 → 1.0.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 CHANGED
@@ -402,6 +402,7 @@ Your own options join the preset:
402
402
  | `@[&:not([aria-current=page])]` | the breadcrumb link shared by current and ordinary pages |
403
403
  | `@[:focus-visible>&]`, `@[&_a:focus-visible]`, `@[&:has(>:is(input,textarea,select):focus-visible)]` | the focus rings of card media, `article` links and wrappers of hidden native controls |
404
404
  | `@[&:has(>:first-child>:checked)]` | the checkbox row of a table |
405
+ | `@_:is(hr,th,td,blockquote)` | the rule color of `article` |
405
406
  | `@[&_>_.avatar]` | the ring color of `avatar-group--ring` |
406
407
  | `@[&:where(:dir(rtl))]` | the RTL target of a look |
407
408
  | `transition-property:[scale]` | the press transition written out |
@@ -410,12 +411,12 @@ Your own options join the preset:
410
411
  | `font-size:24px` | the glyph size that `presets.md` writes; another size, such as `font-size:14px`, is reported |
411
412
  | `/^grid-columns:\[repeat\([^@]+\)\]$/` | one `repeat(...)`: `grid-columns:[repeat(2,minmax(0,1fr))]@md`, `grid-columns:[repeat(auto-fit,_minmax(min(100%,16rem),_1fr))]` |
412
413
  | `grid-column:[1/-1]` | the full-width span in `standard.md` |
413
- | `max-w:[65ch]` | the prose measure |
414
+ | `max-w:[34em]` | the prose measure |
414
415
  | `rd:9999px` | the pill radius |
415
- | `/^rd:\[calc\(var\(--radius-\w+\)_-_[^@]+\)\]$/` | a radius step minus a length: `rd:[calc(var(--radius-4x)_-_1px)]` |
416
+ | `/^rd:\[calc\(var\(--radius-\w+\)_-_[^@]+\)\]$/` | a radius step minus a length: `rd:[calc(var(--radius-4x)_-_var(--spacing)_-_1px)]` |
416
417
  | `p-b:[env(safe-area-inset-bottom)]` | the safe-area padding of a full-bleed surface |
417
418
 
418
- None of these entries matches a class with a condition as a whole, so the conditions of an allowed class are still checked: `max-w:[65ch]@md` and `rd:9999px!` pass, and `max-w:[65ch]@[&>li]` is reported for its condition.
419
+ None of these entries matches a class with a condition as a whole, so the conditions of an allowed class are still checked: `max-w:[34em]@md` and `rd:9999px!` pass, and `max-w:[34em]@[&>li]` is reported for its condition.
419
420
 
420
421
  ### `no-restyle`
421
422
 
package/dist/preset.js CHANGED
@@ -20,6 +20,7 @@ const arbitrary = {
20
20
  "@[&:has(>:is(input,textarea,select):focus-visible)]",
21
21
  "@[&:has(>:first-child>:checked)]",
22
22
  "@[&_a:focus-visible]",
23
+ "@_:is(hr,th,td,blockquote)",
23
24
  "@[&_>_.avatar]",
24
25
  "@[&:where(:dir(rtl))]",
25
26
  "transition-property:[scale]",
@@ -30,7 +31,7 @@ const arbitrary = {
30
31
  "font-size:24px",
31
32
  "/^grid-columns:\\[repeat\\([^@]+\\)\\]$/",
32
33
  "grid-column:[1/-1]",
33
- "max-w:[65ch]",
34
+ "max-w:[34em]",
34
35
  "rd:9999px",
35
36
  "/^rd:\\[calc\\(var\\(--radius-\\w+\\)_-_[^@]+\\)\\]$/",
36
37
  "p-b:[env(safe-area-inset-bottom)]",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teacss/linter",
3
- "version": "1.0.0-rc.0",
3
+ "version": "1.0.1",
4
4
  "description": "oxlint plugin for TeaCSS: limits which classes a project may write",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -33,7 +33,7 @@
33
33
  "node": ">=26"
34
34
  },
35
35
  "dependencies": {
36
- "@teacss/engine": "1.0.0-rc.0"
36
+ "@teacss/engine": "1.0.1"
37
37
  },
38
38
  "peerDependencies": {
39
39
  "oxlint": "1.95.x"