deno_lint
deno_lint copied to clipboard
missing recommended rules
The description says "Supports recommended set of rules from ESLint and @typescript-eslint out of the box with no config."
It seems it does implement all the eslint:recommended rules, but only some of the plugin:@typescript-eslint/recommended rules.
For example, I think the following rules are missing:
await-thenable, explicit-module-boundary-types, no-floating-promises, no-for-in-array, no-non-null-asserted-optional-chain, no-non-null-assertion, no-unnecessary-type-assertion, no-unsafe-assignment, no-unsafe-call, no-unsafe-member-access, no-unsafe-return, no-var-requires, prefer-regexp-exec, restrict-plus-operands, restrict-template-expressions, triple-slash-reference, unbound-method, no-empty-function, no-implied-eval, and no-unused-vars.
Maybe the description should be changed to say that it implements "many" of the typescript-eslint/recommended rules.
@mvolkmann could you link to relevant configuration in typescript-eslint that lists these rules as recommended? Last time I checked I did not see most of them in recommended set.
https://www.npmjs.com/package/@typescript-eslint/eslint-plugin#supported-rules
@mvolkmann it seems the rules you've enumerated require type checking to enforce, which deno_lint can't do at the moment: #303, #270
The linked npmjs seems to not available anymore. Here's a new link: https://typescript-eslint.io/rules/?supported-rules=recommended.