Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| e360df3163 | |||
| 8b6352e273 | |||
| a7ca13e4a7 |
@@ -6,17 +6,16 @@ The user's rule, from the Deno days and restated for Node (2026-10-12): "No
|
|||||||
JS, not even JSX/TSX, only TS." Source, scripts, tests, and configs are all
|
JS, not even JSX/TSX, only TS." Source, scripts, tests, and configs are all
|
||||||
plain `.ts`. Build output in a gitignored folder is the only JS.
|
plain `.ts`. Build output in a gitignored folder is the only JS.
|
||||||
|
|
||||||
`tsconfig.json`: no `allowJs`, no `jsx`, and exactly this strictness set (user
|
`tsconfig.json`: no `allowJs`, no `jsx`, and exactly this strictness set
|
||||||
decision, 2026-10-18): `strict` (written out), `noUncheckedIndexedAccess`,
|
(user decision, 2026-10-18): `strict` (written out), `noUncheckedIndexedAccess`,
|
||||||
`noPropertyAccessFromIndexSignature`, `noImplicitReturns`, `noUnusedLocals`,
|
`noPropertyAccessFromIndexSignature`, `noImplicitReturns`, `noUnusedLocals`,
|
||||||
`noUnusedParameters`, `noImplicitOverride`, `noFallthroughCasesInSwitch`,
|
`noUnusedParameters`, `noImplicitOverride`, `noFallthroughCasesInSwitch`,
|
||||||
`erasableSyntaxOnly`, and `allowUnreachableCode: false` plus
|
`erasableSyntaxOnly`, plus the mechanical `verbatimModuleSyntax`,
|
||||||
`allowUnusedLabels: false` (user decision, 2026-10-18; on in the Deno setup),
|
`allowImportingTsExtensions`, and `noEmit` (packages also keep `declaration`
|
||||||
plus the mechanical `verbatimModuleSyntax`, `allowImportingTsExtensions`, and
|
and `isolatedDeclarations`). `exactOptionalPropertyTypes` is off everywhere:
|
||||||
`noEmit` (packages also keep `declaration` and `isolatedDeclarations`).
|
write `{ key: maybeUndefined }` rather than leaving the key out to please it.
|
||||||
`exactOptionalPropertyTypes` is off everywhere: write `{ key: maybeUndefined }`
|
If a tool or framework seems to need a JS or TSX file, stop and flag it
|
||||||
rather than leaving the key out to please it. If a tool or framework seems to
|
instead of adding one.
|
||||||
need a JS or TSX file, stop and flag it instead of adding one.
|
|
||||||
|
|
||||||
## No asset imports (2026-10-14, widened 2026-10-16 and 2026-10-17)
|
## No asset imports (2026-10-14, widened 2026-10-16 and 2026-10-17)
|
||||||
|
|
||||||
|
|||||||
+1
-3
@@ -15,8 +15,6 @@
|
|||||||
"noImplicitReturns": true,
|
"noImplicitReturns": true,
|
||||||
"noFallthroughCasesInSwitch": true,
|
"noFallthroughCasesInSwitch": true,
|
||||||
"noUnusedLocals": true,
|
"noUnusedLocals": true,
|
||||||
"noUnusedParameters": true,
|
"noUnusedParameters": true
|
||||||
"allowUnreachableCode": false,
|
|
||||||
"allowUnusedLabels": false
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user