@heyramzi/lint 2.0.0 → 2.1.0
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/bin/heyramzi-comment-length.js +4 -3
- package/bin/heyramzi-file-tokens.js +2 -2
- package/bin/heyramzi-slop.js +3 -1
- package/config/oxlintrc.json +1 -1
- package/data/slop/artifacts.js +87 -0
- package/data/slop/pattern-parts.js +56 -0
- package/data/slop/patterns/appositives-and-sayings.js +81 -0
- package/data/slop/patterns/comma-clauses.js +106 -0
- package/data/slop/patterns/diagram-and-script-tells.js +71 -0
- package/data/slop/patterns/dropped-elements.js +149 -0
- package/data/slop/patterns/duration-and-openers.js +102 -0
- package/data/slop/patterns/headings-and-laws.js +116 -0
- package/data/slop/patterns/numbers-and-runs.js +94 -0
- package/data/slop/patterns/openers-and-tails.js +90 -0
- package/data/slop/patterns/parallel-shapes.js +100 -0
- package/data/slop/patterns/reveals-and-tallies.js +101 -0
- package/data/slop/patterns/setups-and-closers.js +83 -0
- package/data/slop/patterns/subject-voice.js +67 -0
- package/data/slop/patterns/vague-and-flourish.js +102 -0
- package/data/slop/patterns/wikipedia-signs.js +103 -0
- package/data/slop/patterns.js +62 -0
- package/data/slop/phrases-en-closers.js +66 -0
- package/data/slop/phrases-en-core.js +185 -0
- package/data/slop/phrases-en-wikipedia.js +136 -0
- package/data/slop/phrases-fr.js +152 -0
- package/data/slop/shapes-density.js +81 -0
- package/data/slop/shapes-framing.js +101 -0
- package/data/slop/shapes-reveals.js +88 -0
- package/data/slop/title-tells.js +8 -0
- package/data/slop/words-en.js +178 -0
- package/data/slop/words-fr.js +101 -0
- package/data/slop-words.js +18 -2576
- package/data/vendor/heading-words.js +6 -0
- package/inline-path.js +2 -0
- package/package.json +1 -1
- package/slop.js +4 -2
- package/ui-rules.js +4 -2
package/inline-path.js
CHANGED
package/package.json
CHANGED
package/slop.js
CHANGED
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
*/
|
|
36
36
|
|
|
37
37
|
/*
|
|
38
|
-
* Both lists are imported, never restated: `data/invisibles.js` and `data/slop
|
|
38
|
+
* Both lists are imported, never restated: `data/invisibles.js` and `data/slop/` are the one home for each.
|
|
39
39
|
*/
|
|
40
40
|
|
|
41
41
|
import {
|
|
@@ -46,7 +46,9 @@ import {
|
|
|
46
46
|
invisibleKind,
|
|
47
47
|
isInvisible,
|
|
48
48
|
} from "#lint/data/invisibles.js";
|
|
49
|
-
import {
|
|
49
|
+
import { phrases, words } from "#lint/data/slop-words.js";
|
|
50
|
+
import { artifacts } from "#lint/data/slop/artifacts.js";
|
|
51
|
+
import { patterns } from "#lint/data/slop/patterns.js";
|
|
50
52
|
import { auditRegister } from "#lint/register.js";
|
|
51
53
|
import {
|
|
52
54
|
FAQ_TITLE,
|
package/ui-rules.js
CHANGED
|
@@ -15,6 +15,8 @@ export const DEFAULT_IGNORED = [
|
|
|
15
15
|
"out",
|
|
16
16
|
"coverage",
|
|
17
17
|
"vendor",
|
|
18
|
+
// What a client sent us, kept as it came: company/clients/<slug>/inputs/.
|
|
19
|
+
"inputs",
|
|
18
20
|
".upstream",
|
|
19
21
|
"generated",
|
|
20
22
|
"_generated",
|
|
@@ -37,7 +39,7 @@ export const DEFAULT_IGNORED = [
|
|
|
37
39
|
const T_FAMILIES =
|
|
38
40
|
"avatar|check|clear|digit|dropdown|enter|error|exit|fade|fly|follow|glare|hold|input|learn|lift|like|mask|modal|morph|page|pop|press|reel|resize|return|scrollbar|shake|shimmer|stagger|success|swap|text|think|tilt|acc|tabs|toast|tooltip|number|badge|panel|toggle|banner|matrix|stream|reason|skeleton|accordion";
|
|
39
41
|
|
|
40
|
-
const TOKEN_NAMES = "stagger|micro|quick|fast|medium|slow|
|
|
42
|
+
const TOKEN_NAMES = "stagger|micro|quick|fast|medium|slow|overlay|loop";
|
|
41
43
|
|
|
42
44
|
const MESSAGES = {
|
|
43
45
|
"transition-all":
|
|
@@ -47,7 +49,7 @@ const MESSAGES = {
|
|
|
47
49
|
"ease-in":
|
|
48
50
|
"Use `var(--ease-smooth-out)` (or `ease-out`). `ease-in` starts slow, delaying the exact moment the user is watching. `ease-in-out` is fine for on-screen movement.",
|
|
49
51
|
"duration-literal":
|
|
50
|
-
"Write `duration-[var(--duration-fast)]` and `delay-[var(--duration-micro)]`, never a literal. Tokens: stagger, micro, quick, fast, medium, slow,
|
|
52
|
+
"Write `duration-[var(--duration-fast)]` and `delay-[var(--duration-micro)]`, never a literal. Tokens: stagger, micro, quick, fast, medium, slow, overlay, loop.",
|
|
51
53
|
"duration-bare":
|
|
52
54
|
"Write `duration-[var(--duration-fast)]`, never `duration-fast`. Tailwind's `duration-*` resolves against `--transition-duration-*`, so a bare token class generates nothing and sits at 0s.",
|
|
53
55
|
"acc-panel-padding":
|