@nodeve/checks 2.1.0 → 2.1.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/.vale.ini +22 -23
- package/README.md +18 -12
- package/dist/bin/prose.d.ts +3 -0
- package/dist/bin/prose.d.ts.map +1 -0
- package/dist/bin/prose.js +27 -0
- package/dist/bin/prose.js.map +1 -0
- package/dist/checks/catalog.d.ts.map +1 -1
- package/dist/checks/catalog.js.map +1 -1
- package/dist/checks/inline-dupes.d.ts.map +1 -1
- package/dist/checks/inline-dupes.js +26 -13
- package/dist/checks/inline-dupes.js.map +1 -1
- package/dist/checks/plural-arrays.d.ts.map +1 -1
- package/dist/checks/plural-arrays.js +26 -21
- package/dist/checks/plural-arrays.js.map +1 -1
- package/dist/checks/reshape.js.map +1 -1
- package/dist/lib/config.d.ts +4 -0
- package/dist/lib/config.d.ts.map +1 -1
- package/dist/lib/config.js.map +1 -1
- package/dist/lib/defaults.d.ts +1 -0
- package/dist/lib/defaults.d.ts.map +1 -1
- package/dist/lib/defaults.js +3 -0
- package/dist/lib/defaults.js.map +1 -1
- package/lefthook.checks.yml +37 -12
- package/nodeve.checks.defaults.js +3 -0
- package/package.json +6 -3
- package/styles/nodeve/Filler.yml +26 -0
- package/styles/proselint/Airlinese.yml +8 -0
- package/styles/proselint/AnimalLabels.yml +48 -0
- package/styles/proselint/Annotations.yml +9 -0
- package/styles/proselint/Apologizing.yml +8 -0
- package/styles/proselint/Archaisms.yml +52 -0
- package/styles/proselint/But.yml +8 -0
- package/styles/proselint/Cliches.yml +782 -0
- package/styles/proselint/CorporateSpeak.yml +30 -0
- package/styles/proselint/Currency.yml +5 -0
- package/styles/proselint/Cursing.yml +15 -0
- package/styles/proselint/DateCase.yml +7 -0
- package/styles/proselint/DateMidnight.yml +7 -0
- package/styles/proselint/DateRedundancy.yml +10 -0
- package/styles/proselint/DateSpacing.yml +7 -0
- package/styles/proselint/DenizenLabels.yml +52 -0
- package/styles/proselint/Diacritical.yml +95 -0
- package/styles/proselint/GenderBias.yml +45 -0
- package/styles/proselint/GroupTerms.yml +39 -0
- package/styles/proselint/Hedging.yml +8 -0
- package/styles/proselint/Hyperbole.yml +6 -0
- package/styles/proselint/Jargon.yml +11 -0
- package/styles/proselint/LGBTOffensive.yml +13 -0
- package/styles/proselint/LGBTTerms.yml +15 -0
- package/styles/proselint/Malapropisms.yml +8 -0
- package/styles/proselint/Needless.yml +358 -0
- package/styles/proselint/Nonwords.yml +38 -0
- package/styles/proselint/Oxymorons.yml +22 -0
- package/styles/proselint/P-Value.yml +6 -0
- package/styles/proselint/RASSyndrome.yml +30 -0
- package/styles/proselint/Skunked.yml +13 -0
- package/styles/proselint/Spelling.yml +17 -0
- package/styles/proselint/Typography.yml +11 -0
- package/styles/proselint/Uncomparables.yml +50 -0
- package/styles/proselint/Very.yml +6 -0
- package/styles/proselint/meta.json +15 -0
- package/styles/write-good/Cliches.yml +702 -0
- package/styles/write-good/E-Prime.yml +32 -0
- package/styles/write-good/Illusions.yml +11 -0
- package/styles/write-good/Passive.yml +183 -0
- package/styles/write-good/So.yml +5 -0
- package/styles/write-good/ThereIs.yml +6 -0
- package/styles/write-good/TooWordy.yml +221 -0
- package/styles/write-good/Weasel.yml +29 -0
- package/styles/write-good/meta.json +4 -0
|
@@ -49,6 +49,9 @@ export default {
|
|
|
49
49
|
inlineDupes: {
|
|
50
50
|
globs: ['apps/*.ts', 'packages/*.ts'],
|
|
51
51
|
allowlist: [],
|
|
52
|
+
// Off by default: an app repo legitimately repeats exported route handlers per route.
|
|
53
|
+
// A library-only repo (no route files) sets this true to catch exported dupes too.
|
|
54
|
+
includeExported: false,
|
|
52
55
|
},
|
|
53
56
|
helperCollisions: {
|
|
54
57
|
globs: ['apps/*.ts', 'packages/*.ts'],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nodeve/checks",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.1",
|
|
4
4
|
"description": "Org-wide commit-gate checks (doc budgets, reshape/dup/helper smells, page size) and helper-index generators, driven by a per-repo config file and wired through lefthook.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -33,6 +33,7 @@
|
|
|
33
33
|
},
|
|
34
34
|
"bin": {
|
|
35
35
|
"nodeve-check": "./dist/bin/check.js",
|
|
36
|
+
"nodeve-prose": "./dist/bin/prose.js",
|
|
36
37
|
"nodeve-check-doc-tokens": "./dist/bin/doc-tokens.js",
|
|
37
38
|
"nodeve-check-commit-msg": "./dist/bin/commit-msg.js",
|
|
38
39
|
"nodeve-check-reshape": "./dist/bin/reshape.js",
|
|
@@ -58,8 +59,8 @@
|
|
|
58
59
|
"remeda": "^2.0.0",
|
|
59
60
|
"ts-morph": "^28.0.0",
|
|
60
61
|
"typescript": "^6.0.3",
|
|
61
|
-
"yaml": "^2.
|
|
62
|
-
"@nodeve/text": "2.
|
|
62
|
+
"yaml": "^2.9.0",
|
|
63
|
+
"@nodeve/text": "2.2.0"
|
|
63
64
|
},
|
|
64
65
|
"devDependencies": {
|
|
65
66
|
"@types/node": "^24.0.0",
|
|
@@ -69,6 +70,8 @@
|
|
|
69
70
|
"scripts": {
|
|
70
71
|
"build": "tsc -p tsconfig.json && cp dist/lib/defaults.js nodeve.checks.defaults.js",
|
|
71
72
|
"clean": "rm -rf dist",
|
|
73
|
+
"sync-styles": "node bin/sync-styles.mjs",
|
|
74
|
+
"check": "pnpm typecheck",
|
|
72
75
|
"typecheck": "tsc -p tsconfig.json --noEmit"
|
|
73
76
|
}
|
|
74
77
|
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# Flag low-value filler that survives write-good/proselint — phrases that add words
|
|
2
|
+
# without adding meaning. The house test: cut the phrase, does meaning survive? If
|
|
3
|
+
# yes it's fat. These fire where the wordier gates stay silent. Anchored so real
|
|
4
|
+
# uses ("in order theory", "make sure the flag is set" as an assertion) don't fire.
|
|
5
|
+
extends: existence
|
|
6
|
+
message: "'%s' is filler — cut it or state the fact plainly."
|
|
7
|
+
ignorecase: true
|
|
8
|
+
level: error
|
|
9
|
+
nonword: true
|
|
10
|
+
tokens:
|
|
11
|
+
# "in order to" → "to"; "so as to" → "to".
|
|
12
|
+
- '\bin order to\b'
|
|
13
|
+
- '\bso as to\b'
|
|
14
|
+
# Meta-throat-clearing before the actual statement.
|
|
15
|
+
- '\bnote that\b'
|
|
16
|
+
- '\bit(''s| is) worth noting that\b'
|
|
17
|
+
- '\bkeep in mind that\b'
|
|
18
|
+
- '\bplease note\b'
|
|
19
|
+
# Instruction narration — narrate the act instead of stating the value.
|
|
20
|
+
# "make sure to X" → "X"; "be sure to X" → "X".
|
|
21
|
+
- '\b(make|be) sure (to|that)\b'
|
|
22
|
+
- '\bmake sure you\b'
|
|
23
|
+
# Empty intensifiers past write-good.Weasel's set.
|
|
24
|
+
- '\bat the end of the day\b'
|
|
25
|
+
- '\bfor what it(''s| is) worth\b'
|
|
26
|
+
- '\bneedless to say\b'
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
extends: substitution
|
|
2
|
+
message: "Consider using '%s' instead of '%s'."
|
|
3
|
+
level: error
|
|
4
|
+
action:
|
|
5
|
+
name: replace
|
|
6
|
+
swap:
|
|
7
|
+
(?:bull|ox)-like: taurine
|
|
8
|
+
(?:calf|veal)-like: vituline
|
|
9
|
+
(?:crow|raven)-like: corvine
|
|
10
|
+
(?:leopard|panther)-like: pardine
|
|
11
|
+
bird-like: avine
|
|
12
|
+
centipede-like: scolopendrine
|
|
13
|
+
crab-like: cancrine
|
|
14
|
+
crocodile-like: crocodiline
|
|
15
|
+
deer-like: damine
|
|
16
|
+
eagle-like: aquiline
|
|
17
|
+
earthworm-like: lumbricine
|
|
18
|
+
falcon-like: falconine
|
|
19
|
+
ferine: wild animal-like
|
|
20
|
+
fish-like: piscine
|
|
21
|
+
fox-like: vulpine
|
|
22
|
+
frog-like: ranine
|
|
23
|
+
goat-like: hircine
|
|
24
|
+
goose-like: anserine
|
|
25
|
+
gull-like: laridine
|
|
26
|
+
hare-like: leporine
|
|
27
|
+
hawk-like: accipitrine
|
|
28
|
+
hippopotamus-like: hippopotamine
|
|
29
|
+
lizard-like: lacertine
|
|
30
|
+
mongoose-like: viverrine
|
|
31
|
+
mouse-like: murine
|
|
32
|
+
ostrich-like: struthionine
|
|
33
|
+
peacock-like: pavonine
|
|
34
|
+
porcupine-like: hystricine
|
|
35
|
+
rattlesnake-like: crotaline
|
|
36
|
+
sable-like: zibeline
|
|
37
|
+
sheep-like: ovine
|
|
38
|
+
shrew-like: soricine
|
|
39
|
+
sparrow-like: passerine
|
|
40
|
+
swallow-like: hirundine
|
|
41
|
+
swine-like: suilline
|
|
42
|
+
tiger-like: tigrine
|
|
43
|
+
viper-like: viperine
|
|
44
|
+
vulture-like: vulturine
|
|
45
|
+
wasp-like: vespine
|
|
46
|
+
wolf-like: lupine
|
|
47
|
+
woodpecker-like: picine
|
|
48
|
+
zebra-like: zebrine
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
extends: existence
|
|
2
|
+
message: "'%s' is archaic."
|
|
3
|
+
ignorecase: true
|
|
4
|
+
level: error
|
|
5
|
+
tokens:
|
|
6
|
+
- alack
|
|
7
|
+
- anent
|
|
8
|
+
- begat
|
|
9
|
+
- belike
|
|
10
|
+
- betimes
|
|
11
|
+
- boughten
|
|
12
|
+
- brocage
|
|
13
|
+
- brokage
|
|
14
|
+
- camarade
|
|
15
|
+
- chiefer
|
|
16
|
+
- chiefest
|
|
17
|
+
- Christiana
|
|
18
|
+
- completely obsolescent
|
|
19
|
+
- cozen
|
|
20
|
+
- divers
|
|
21
|
+
- deflexion
|
|
22
|
+
- fain
|
|
23
|
+
- forsooth
|
|
24
|
+
- foreclose from
|
|
25
|
+
- haply
|
|
26
|
+
- howbeit
|
|
27
|
+
- illumine
|
|
28
|
+
- in sooth
|
|
29
|
+
- maugre
|
|
30
|
+
- meseems
|
|
31
|
+
- methinks
|
|
32
|
+
- nigh
|
|
33
|
+
- peradventure
|
|
34
|
+
- perchance
|
|
35
|
+
- saith
|
|
36
|
+
- shew
|
|
37
|
+
- sistren
|
|
38
|
+
- spake
|
|
39
|
+
- to wit
|
|
40
|
+
- verily
|
|
41
|
+
- whilom
|
|
42
|
+
- withal
|
|
43
|
+
- wot
|
|
44
|
+
- enclosed please find
|
|
45
|
+
- please find enclosed
|
|
46
|
+
- enclosed herewith
|
|
47
|
+
- enclosed herein
|
|
48
|
+
- inforce
|
|
49
|
+
- ex postfacto
|
|
50
|
+
- foreclose from
|
|
51
|
+
- forewent
|
|
52
|
+
- for ever
|