Detalhes do pacote

eslint-plugin-tsc

unlight58.5kMIT2.0.0

Wraps a TypeScript compiler checks

eslint, eslint-plugin, eslintplugin, eslint-rules

readme (leia-me)

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
  2. 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

changelog (log de mudanças)

2.0.0 (2020-09-15)

chore

  • Upgrade to TypeScript 4 (5160ae2)

BREAKING CHANGES

  • Upgrade to TypeScript 4

1.2.0 (2018-08-24)

Fix

Update

1.1.0 (2018-07-02)

Build

Update

1.0.6 (2018-06-17)

Fix

1.0.5 (2018-06-15)

Fix