Skip to content

Cannot exclude no-slow-types linting rules #1384

Description

@johngeorgewright

Cannot exclude no-slow-types linting rules

While I understand the concept behind this rule, and that it is a good idea to use it when developing new projects to be published to JSR, we don't really want it when trying to convert old projects on to deno. Especially ones that rely on typescript features that would go against the slow-type concept.

To Reproduce

Create the following file structure:

  • src/
    • foo.ts
  • deno.json
  • mod.ts
// src/foo.ts
/**
 * Foo
 */
export function foo() {
  return { foo: 'bar' }
}
/* deno.json */
{
  "name": "deno-test",
  "version": "0.0.0",
  "exports": "./mod.ts",
  "lint": {
    "rules": {
      "exclude": [
        "no-slow-types"
      ]
    }
  }
}
// mod.ts
export { foo } from './src/foo.ts'

Expected behavior

No warnings displayed in vscode

Screenshots

Image

Versions

vscode: 1.124.2 deno: 2.9.0 extension: 3.52.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions