allegro / typescript-strict-plugin

Typescript plugin that allows turning on strict mode in specific files or directories.
MIT License
338 stars 29 forks source link

Exclude paths / globs (files like `*.spec.ts`). #39

Closed infacto closed 1 year ago

infacto commented 2 years ago

Great plugin for partial strict mode refactoring. But I want to exclude files like *.spec.ts (unit test).

tsconfig.json (my current config)

{
  "strict": false,
  "plugins": [
    {
      "name": "typescript-strict-plugin",
      "paths": ["./src"]
    }
  ]
}

Split paths to include and exclude similar like the tsconfig one.