All Projects → JoshuaKGoldberg → TSLint.MSBuild

JoshuaKGoldberg / TSLint.MSBuild

Licence: MIT license
[Deprecated] An MSBuild task for running TSLint.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to TSLint.MSBuild

Sonarts
Static code analyzer for TypeScript
Stars: ✭ 776 (+5869.23%)
Mutual labels:  tslint, linter, code-quality
Lynt
✨ A zero config JavaScript linter with support for Typescript, Flow, and React.
Stars: ✭ 390 (+2900%)
Mutual labels:  tslint, linter
Typescript Tslint Plugin
TypeScript TSLint language service plugin
Stars: ✭ 270 (+1976.92%)
Mutual labels:  tslint, linter
Tslint
🚦 An extensible linter for the TypeScript language
Stars: ✭ 5,922 (+45453.85%)
Mutual labels:  tslint, linter
Flakehell
Flake8 wrapper to make it nice, legacy-friendly, configurable.
Stars: ✭ 217 (+1569.23%)
Mutual labels:  linter, code-quality
eslint-config
An ESLint shareable config that I used in my projects
Stars: ✭ 15 (+15.38%)
Mutual labels:  tslint, linter
Lint Review
An automated code linting bot that integrates various code lint tools with github pull requests.
Stars: ✭ 279 (+2046.15%)
Mutual labels:  tslint, linter
sonar-css-plugin
SonarQube CSS / SCSS / Less Analyzer
Stars: ✭ 46 (+253.85%)
Mutual labels:  linter, code-quality
spec
🐣 easy to use eslint/stylelint/tslint/prettier/...
Stars: ✭ 60 (+361.54%)
Mutual labels:  tslint, linter
Tslint React Hooks
TSLint rule for detecting invalid uses of React Hooks
Stars: ✭ 218 (+1576.92%)
Mutual labels:  tslint, code-quality
Dotenv Linter
☺️ Linting dotenv files like a charm!
Stars: ✭ 207 (+1492.31%)
Mutual labels:  linter, code-quality
elodin-old
Quality and Optimisation tools for CSS in JavaScript
Stars: ✭ 15 (+15.38%)
Mutual labels:  linter, code-quality
Flake8 Eradicate
Flake8 plugin to find commented out or dead code
Stars: ✭ 184 (+1315.38%)
Mutual labels:  linter, code-quality
elm-review
Analyzes Elm projects, to help find mistakes before your users find them.
Stars: ✭ 195 (+1400%)
Mutual labels:  linter, code-quality
Cflint
Static code analysis for CFML (a linter)
Stars: ✭ 156 (+1100%)
Mutual labels:  linter, code-quality
Editorconfig Checker
A tool to verify that your files are in harmony with your .editorconfig
Stars: ✭ 119 (+815.38%)
Mutual labels:  linter, code-quality
Static Analysis
⚙️ A curated list of static analysis (SAST) tools for all programming languages, config files, build tools, and more.
Stars: ✭ 9,310 (+71515.38%)
Mutual labels:  linter, code-quality
Wemake Python Styleguide
The strictest and most opinionated python linter ever!
Stars: ✭ 1,714 (+13084.62%)
Mutual labels:  linter, code-quality
Aurora
📦 A set of configs and rules for Typescript projects.
Stars: ✭ 30 (+130.77%)
Mutual labels:  tslint, linter
ts-standard
Typescript style guide, linter, and formatter using StandardJS
Stars: ✭ 338 (+2500%)
Mutual labels:  tslint, linter

TSLint for MSBuild

NuGet Version and Downloads count

An MSBuild target for linting TypeScript code using TSLint. Get it at nuget.org.

⚠️ TSLint is deprecated. See this issue for more details: Roadmap: TSLint → ESLint. ⚠️

Usage

Add this package and TSLint using your NuGet Package Manager. It should be automatically added to your project.

TSLint's default configurations are used by default. If you'd like to use your own tslint.json file, add a TSLintConfig property to your project:

<TSLintConfig>Scripts/tslint.json</TSLintConfig>

All overrideable item groups and properties are below. Read the TSLint documentation for TSLint-specific linting details.

Overrideable Item Groups

Item Group Description Default
TSLintExclude Globs of file names to exclude. (blank)
TSLintInclude File names to lint. @(TypeScriptCompile) (unless TSLintExcludeTypeScriptCompile is true)
TSLintRulesDirectory Directories for user-created rules (blank)
<ItemGroup>
    <TSLintExclude Include="typings/**/*.d.ts"><Visible>False</Visible></TSLintExclude>
</ItemGroup>

Overrideable Properties

Property Description Default
TSLintBreakBuildOnError Whether linting failures should break the build. false
TSLintCreateTimestampFile Whether the timestamp file should be created on each build. true
TSLintConfig Path to a specific tslint.json. (blank)
TSLintForceBuild Force TSLint to run after the build, even if there are no file changes. Not compatible with TSLintTimestampFile, this is the recommended option when using TSLintBreakBuildOnError false
TSLintCli Path to a TSLint CLI to run with. The first TSLint version in the solution's packages directory, or the Project Dir's node_modules/tslint/bin/tslint directory.
TSLintDisabled Whether to skip running TSLint. false
TSLintExcludeTypeScriptCompile Whether to exclude @(TypeScriptCompile) from @(TSLintInclude). false
TSLintExtraArgs Any extra arguments to pass to the TSLint CLI. (blank)
TSLintFileListDisabled Whether to disable passing TypeScript file list on the command line. If true, it is expected that the files to lint are specified in the TSLintProject file. false
TSLintNodeExe Path to a Node executable to execute the runner script. The tools\node-12.4.0.exe in the package.
TSLintProject Path to a tsconfig.json file to use as a type checker project. (blank)
TSLintRunOutsideBuildingProject Whether to run even if BuildingProject isn't true. (blank)
TSLintTimeout Maximum time to run the task, in case TSLint hangs or takes too long. 10000000
TSLintTypeCheck Whether to enable the type checker (requires TSLintProject be set). false
TSLintVersion Glob filter for the version of TSLint to use (ignored if TSLintConfig is provided). *.*.*

Output Item Groups

Item Group Description
TSLintOutput Lines of console output from the TSLint CLI.

Output Properties

Property Description
TSLintErrorCode Exit code of the TSLint CLI.

TSLint version

The first available TSLint version in your NuGet packages directory will be used.

Errata

You can exclude .d.ts files using <TSLintExclude Include="%2A%2A/%2A.d.ts" />. MSBuild escapes * and other special characters using % and their hexadecimal value.

Development

Run the following commands to initialize your environment:

npm install -g gulp
npm install

Run npx gulp default to build. npx gulp test just runs tests.

Updating the version

The version number is stored both in package.json and TSLint.MSBuild.nuspec. Make sure to update it in both places.

File a bug report if upgrading causes any issues.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].