eslint-plugin-tsc

2.0.0 • Public • Published

eslint-plugin-tsc

Wraps a TypeScript compiler checks

INSTALL

npm install --save-dev eslint-plugin-tsc

USAGE

Configure it in your configuration file:

  1. Add to plugins section:
tsc
  1. Add rule to rules section, e.g.
"tsc/config": [1, {
    configFile: "tsconfig.json"
}]

RULES

  • tsc/config Wraps a TypeScript compiler checks
    Configuration { configFile: string, compilerOptions?: ts.CompilerOptions }
    configFile path to tsconfig.json file (it's better to specify an absolute path)
    compilerOptions ability to override compilerOptions defined in config file

CHANGELOG

See CHANGELOG.md

TODO

TypeScript Compiler has various linting options

  • allowUnreachableCode
  • allowUnusedLabels
  • forceConsistentCasingInFileNames
  • noFallthroughCasesInSwitch
  • noImplicitAny
  • noImplicitReturns
  • noImplicitThis
  • noStrictGenericChecks
  • noUnusedLocals
  • noUnusedParameters
  • strictFunctionTypes
  • strictPropertyInitialization
  • strictNullChecks
  • suppressExcessPropertyErrors
  • suppressImplicitAnyIndexErrors

USEFUL LINKS

/eslint-plugin-tsc/

    Package Sidebar

    Install

    npm i eslint-plugin-tsc

    Weekly Downloads

    10,719

    Version

    2.0.0

    License

    MIT

    Unpacked Size

    6.65 kB

    Total Files

    5

    Last publish

    Collaborators

    • iamthes