Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/unlight/eslint-plugin-tsc
Wraps a TypeScript compiler checks
https://github.com/unlight/eslint-plugin-tsc
eslint eslint-plugin eslint-rules eslintplugin tslint typescript
Last synced: about 14 hours ago
JSON representation
Wraps a TypeScript compiler checks
- Host: GitHub
- URL: https://github.com/unlight/eslint-plugin-tsc
- Owner: unlight
- License: mit
- Created: 2018-05-20T20:09:47.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-09-15T19:48:37.000Z (about 4 years ago)
- Last Synced: 2024-10-28T13:55:51.322Z (10 days ago)
- Topics: eslint, eslint-plugin, eslint-rules, eslintplugin, tslint, typescript
- Language: TypeScript
- Size: 33.2 KB
- Stars: 23
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# eslint-plugin-tsc
Wraps a TypeScript compiler checks## INSTALL
```
npm install --save-dev eslint-plugin-tsc
```## USAGE
Configure it in [your configuration file](https://eslint.org/docs/user-guide/configuring):
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](CHANGELOG.md)## TODO
TypeScript Compiler has various [linting options](http://www.typescriptlang.org/docs/handbook/compiler-options.html)
* allowUnreachableCode
* allowUnusedLabels
* forceConsistentCasingInFileNames
* noFallthroughCasesInSwitch
* noImplicitAny
* noImplicitReturns
* noImplicitThis
* noStrictGenericChecks
* noUnusedLocals
* noUnusedParameters
* strictFunctionTypes
* strictPropertyInitialization
* strictNullChecks
* suppressExcessPropertyErrors
* suppressImplicitAnyIndexErrors## USEFUL LINKS
* https://astexplorer.net/