Compare commits
2 Commits
eba9b9c57c
...
8b5c249248
| Author | SHA1 | Date | |
|---|---|---|---|
| 8b5c249248 | |||
| 5af53b0882 |
@@ -24,6 +24,8 @@ Node + Vite+ migration (PR #20, `node-migration`, 2026-10-15/16):
|
|||||||
dependency of this repo's TypeScript.
|
dependency of this repo's TypeScript.
|
||||||
- **No `@cunarist/eslint-plugin-*`.** The Deno setup enabled no plugin, so
|
- **No `@cunarist/eslint-plugin-*`.** The Deno setup enabled no plugin, so
|
||||||
this repo depends on none and CI passes without them being published.
|
this repo depends on none and CI passes without them being published.
|
||||||
|
Planned (2026-10-17): once the plugins are on npm, add
|
||||||
|
`@cunarist/eslint-plugin-modules` here for its import checks.
|
||||||
- **Stricter input checks were accepted** in the migration: Gitea `/user` and
|
- **Stricter input checks were accepted** in the migration: Gitea `/user` and
|
||||||
comment responses, the runtime manifest, and the outcome's profile type are
|
comment responses, the runtime manifest, and the outcome's profile type are
|
||||||
validated; some type errors became `TypeError` with the same messages.
|
validated; some type errors became `TypeError` with the same messages.
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ convention, see the last section):
|
|||||||
folder's `index.ts` owns that folder and everything below it; an alias to
|
folder's `index.ts` owns that folder and everything below it; an alias to
|
||||||
any other file owns only that file.
|
any other file owns only that file.
|
||||||
- **No overlap.** No file may be owned by 2 aliases: no alias inside another
|
- **No overlap.** No file may be owned by 2 aliases: no alias inside another
|
||||||
alias's area, and no 2 aliases with the same target. the modules plugin's
|
alias's area, and no 2 aliases with the same target. The modules plugin's
|
||||||
`enforce-layer-order` reports it once at the top of every file 2 aliases
|
`enforce-layer-order` reports it once at the top of every file 2 aliases
|
||||||
claim. Fix by merging the aliases or moving files apart.
|
claim. Fix by merging the aliases or moving files apart.
|
||||||
- **Outside an area, only the exact alias reaches it.** A deeper alias
|
- **Outside an area, only the exact alias reaches it.** A deeper alias
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* `project` — lint rules this repository holds its own source to, on top of
|
* `project` — lint rules this repository holds its own source to, on top of
|
||||||
* the Oxlint categories in `vite.config.ts`. Its rules of its own are `no-disable-comments` and `no-asset-imports`.
|
* the Oxlint categories in `vite.config.ts`. Its rules of its own are
|
||||||
|
* `no-disable-comments` and `no-asset-imports`.
|
||||||
*
|
*
|
||||||
* Loaded by `vite.config.ts` as an Oxlint `jsPlugins` entry.
|
* Loaded by `vite.config.ts` as an Oxlint `jsPlugins` entry.
|
||||||
*
|
*
|
||||||
@@ -161,8 +162,8 @@ const noAssetImportsRule: ProjectRule = {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* This repository's own rule list, spread by `vite.config.ts`: rules that
|
* This repository's own rule list, spread by `vite.config.ts`: rules that
|
||||||
* sit outside the Oxlint categories, plus the template's extras. Built-in Oxlint rule ids sit here too, so
|
* sit outside the Oxlint categories, plus the template's extras. Built-in
|
||||||
* `vite.config.ts` lists no rule by name.
|
* Oxlint rule ids sit here too, so `vite.config.ts` lists no rule by name.
|
||||||
*/
|
*/
|
||||||
const rules: DummyRuleMap = {
|
const rules: DummyRuleMap = {
|
||||||
// The explicit-types template's `camelcase` stand-in: no `_` inside a name
|
// The explicit-types template's `camelcase` stand-in: no `_` inside a name
|
||||||
|
|||||||
Reference in New Issue
Block a user