Package: akitainu:filter-by-code

Internal filter package for filtering out errors that have or does not have certain error code.

Concrete values of error codes depend on checker used.

Example

To filter out errors that have code @typescript-eslint/no-explicit-any:

{
  rules: {
    source: ["akitainu:source-static", {
      files: ["./src/**/*.ts]
    }],
    checker: "akitainu-eslint-checker",
    filter: ["akitainu:filter-by-code", {
      exclude: ["@typescript-eslint/no-explicit-any"]
    }]
  }
}

Options

include

include: string[];

List of error codes to include. All errors with code that are not specified in this array are filtered out.

Only one of include and exclude must be specified.

exclude

exclude: string[];

List of error codes to exclude. All errors with these codes are filtered out.

Only one of include and exclude must be specified.