Package: akitainu-checker-typescript

npm

Checker package for performing type checking with TypeScript.

Error code is TypeScript's error code preceded by TS (e.g. TS2033, TS8001).

Example

{
  rules: {
    source: ["akitainu:source-static", {
      files: ["./src/**/*.ts"]
    }],
    checker: ["akitainu-checker-typescript", {
      tsconfig: "./tsconfig.json"
    }]
  }
}

Options

tsconfig

tsconfig?: string;

Path to tsconfig.json file to use. If not specified, no tsconfig.json file is loaded.

compilerOptions

compilerOptions?: ts.CompilerOptions;

Compiler options object. If specified along with the tsconfig option, options from this object are prioritized.

Example

{
  rules: {
    source: ["akitainu:source-static", {
      files: ["./src/**/*.ts"]
    }],
    checker: ["akitainu-checker-typescript", {
      tsconfig: "./tsconfig.json",
      compilerOptions: {
        noImplicitAny: true
      }
    }]
  }
}