Match Deno size limits
This commit is contained in:
@@ -219,6 +219,30 @@ const rules: DummyRuleMap = {
|
|||||||
"project/no-disable-comments": "error",
|
"project/no-disable-comments": "error",
|
||||||
"project/no-asset-imports": "error",
|
"project/no-asset-imports": "error",
|
||||||
"unicorn/no-abusive-eslint-disable": "error",
|
"unicorn/no-abusive-eslint-disable": "error",
|
||||||
|
// Size and complexity limits match Deno's: this repo's `deno lint` ran the
|
||||||
|
// `recommended` set with no config file, so no size or complexity rule
|
||||||
|
// applied and none applies here. Each Oxlint limit rule, from a category or
|
||||||
|
// not, is off:
|
||||||
|
// - `complexity`: Deno had no `max-complexity`.
|
||||||
|
// - `max-lines`: Deno had no `max-file-lines`.
|
||||||
|
// - `max-params`: Deno had no `max-params`.
|
||||||
|
// - `id-length`: Deno had no `max-identifier-length`.
|
||||||
|
// - `no-nested-ternary`: Deno had no `max-nest-ternaries`.
|
||||||
|
// - `max-lines-per-function`, `max-classes-per-file`, `max-depth`,
|
||||||
|
// `max-nested-callbacks`, `max-statements`, `import/max-dependencies`,
|
||||||
|
// `unicorn/max-nested-calls`: Deno had none of these.
|
||||||
|
complexity: "off",
|
||||||
|
"max-lines": "off",
|
||||||
|
"max-params": "off",
|
||||||
|
"id-length": "off",
|
||||||
|
"no-nested-ternary": "off",
|
||||||
|
"max-lines-per-function": "off",
|
||||||
|
"max-classes-per-file": "off",
|
||||||
|
"max-depth": "off",
|
||||||
|
"max-nested-callbacks": "off",
|
||||||
|
"max-statements": "off",
|
||||||
|
"import/max-dependencies": "off",
|
||||||
|
"unicorn/max-nested-calls": "off",
|
||||||
// Pedantic, but Node's and the web's own types (`Response`, `Stats`,
|
// Pedantic, but Node's and the web's own types (`Response`, `Stats`,
|
||||||
// `RequestInit`) are mutable, so no parameter of theirs can pass; the
|
// `RequestInit`) are mutable, so no parameter of theirs can pass; the
|
||||||
// explicit-types template and the app repos turn it off too.
|
// explicit-types template and the app repos turn it off too.
|
||||||
|
|||||||
Reference in New Issue
Block a user