awesome-repositories.com
博客
MCP
awesome-repositories.com

通过 AI 驱动的搜索,发现最优秀的开源仓库。

探索精选搜索开源替代品自托管软件博客网站地图
项目MCP 服务器关于排名机制媒体报道
法律隐私政策服务条款
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
palantir avatar

palantir/tslintArchived

0
View on GitHub↗
5,907 星标·872 分支·TypeScript·Apache-2.0·6 次浏览palantir.github.io/tslint↗

Tslint

TSLint is an extensible static analysis tool that checks TypeScript source files against a configurable set of lint rules. It scans code by walking the parsed TypeScript abstract syntax tree, applying rule objects to detect readability, maintainability, and functionality errors. The tool supports rule severity configuration, inline suppression through comment directives, and automatic attachment of fix objects for correcting violations.

The project provides a framework for developing custom lint rules and formatters, allowing teams to enforce project-specific coding conventions beyond the built-in rule set. It includes configuration preset extension through module resolution, enabling teams to share and inherit lint configurations across projects. TSLint integrates with editors, build systems, and CI pipelines, surfacing results inline during development or as part of automated builds.

The tool covers a broad range of code quality checks, including common mistake detection, consistent code style and formatting enforcement, and TypeScript-specific rule enforcement for type annotations, overloads, and namespace usage. It also supports JavaScript file linting with a separate rule set. Output formatting options include human-readable text, JSON, JUnit XML, Checkstyle XML, PMD XML, MSBuild format, TAP stream, and Azure DevOps logging commands, with the ability to write results to files or standard output.

Features

  • TypeScript Static Analysis - An extensible static analysis tool that checks TypeScript files for readability, maintainability, and functionality errors.
  • Custom Lint Rule Plugins - Provides a plugin API for developing custom lint rules and formatters beyond the built-in set.
  • Linting Configurations - Ships a configuration system that defines, extends, and shares lint rule configurations via preset inheritance.
  • Lint Rule AST Walkers - Walks the parsed TypeScript AST to detect rule violations by visiting nodes and applying pattern-matching logic.
  • TypeScript and JavaScript Linting - Applies a separate set of rules to JavaScript and JSX files, optionally mirroring the TypeScript rule configuration.
  • Static Analysis Rule Engines - Scans source code by matching each file against a set of configurable rule objects that inspect the AST for violations.
  • General Lint Rule Engines - Evaluates TypeScript files against built-in and custom rules with severity levels, inline suppression, and automatic fixes.
  • Static Code Analyzers - Scans TypeScript source code against configurable rules to catch errors and enforce coding standards.
  • Static Logic Error Detection - Scans TypeScript source files against a configurable set of rules to detect readability, maintainability, and functionality issues.
  • Code Formatting and Style - Applies rules for naming conventions, comment formats, import ordering, and other stylistic choices.
  • Automated Lint Fixes - Automatically corrects formatting and style violations detected during linting without manual intervention.
  • Fix Object Attachments - Attaches a replacement fix object to each detected failure, enabling automatic correction of violations during linting.
  • Per-Rule Configurations - Reads user-supplied parameters inside custom rules to make behavior configurable per project.
  • CI/CD Integrations - Surfaces lint results inside editors, build pipelines, and CI systems through multiple output formats.
  • Formatting Enforcement - Checks whitespace, indentation, line length, and punctuation rules to maintain a uniform visual layout in source files.
  • Custom Lint Rule Definitions - Loads user-defined or third-party lint rules from specified directories to extend available checks.
  • Base Configuration Extension - Inherits rule settings from built-in or custom configuration files using module resolution.
  • Configuration Inheritance - Resolves lint settings by merging a base configuration with overrides from user-defined files using module resolution.
  • Lint Result Formatters - Transforms lint results into multiple output formats by dispatching to separate formatter modules.
  • Auto-Fix Formatters - Applies automatic corrections to formatting and style violations detected during linting.
  • Common Bug Detection - Detects frequent mistakes such as unused promises, eval usage, and duplicate variable declarations.
  • Maintainability Rules - Applies rules on complexity, deprecation warnings, import organization, and variable mutability to keep codebases manageable.
  • Automatic Lint Fixes - Ships automatic correction of formatting and style violations detected during linting.
  • Lint Rule Presets - Applies bundled lint rule presets and composes rules from multiple plugins.
  • Lint Rule Toggles - Suppresses lint rules for specific lines or blocks using comment flags in source files.
  • TypeScript-Specific Rule Enforcement - Enforces TypeScript-specific rules for type annotations, overloads, and namespace usage.
  • Rule Suppression Comments - Parses comment flags in source files to enable or disable specific rules for individual lines or code sections.
  • Lint Rule Severity Levels - Assigns each lint rule a severity of error, warning, or off with a global default.
  • Build Tools - Extensible linter for code quality.

Star 历史

palantir/tslint 的 Star 历史图表palantir/tslint 的 Star 历史图表

AI 搜索

探索更多 awesome 仓库

用简单的语言描述您的需求 —— AI 将根据相关性为您从数千个精选开源项目中进行排序。

Start searching with AI

Tslint 的开源替代方案

相似的开源项目,按与 Tslint 的功能重合度排序。
  • stylelint/stylelintstylelint 的头像

    stylelint/stylelint

    11,484在 GitHub 上查看↗

    Stylelint is a static code analysis tool and linter for CSS and style-like languages. It identifies errors, enforces coding conventions, and operates as a PostCSS plugin to validate stylesheets during build pipelines. The project distinguishes itself through support for non-standard syntaxes, including preprocessor parsing for SCSS and Less, and the ability to extract and lint embedded styles from JavaScript, HTML, and template literals. It features an automated fixing system that programmatically corrects repairable styling violations to ensure consistency. The system provides a plugin arch

    JavaScript
    在 GitHub 上查看↗11,484
  • ansible/ansible-lintansible 的头像

    ansible/ansible-lint

    3,876在 GitHub 上查看↗

    ansible-lint is a static code analysis tool and linter designed to identify syntax errors and best practice violations within Ansible playbooks and roles. It functions as a quality gate for automation pipelines, scanning configuration files and scripts without executing the code to ensure reliability and consistency. The project distinguishes itself by acting as an automated code formatter that can correct identified linting issues and reformat files to meet community standards. It also serves as a dependency manager, automatically detecting and installing required roles and collections from

    Pythonansibleansible-dev-toolsansible-lint
    在 GitHub 上查看↗3,876
  • jshint/jshintjshint 的头像

    jshint/jshint

    9,064在 GitHub 上查看↗

    JSHint is a JavaScript static analysis tool and linter designed to detect errors and enforce coding standards. It functions as a syntax validator that scans source code to identify potential logic problems and programming mistakes before the code is executed. The tool provides a command line interface for analyzing files and directories. It supports the export of analysis results into standardized formats such as Checkstyle for integration with external build tools. Analysis is managed through a system of linting rule management and environment global configuration. This includes the ability

    JavaScript
    在 GitHub 上查看↗9,064
  • davidanson/markdownlintDavidAnson 的头像

    DavidAnson/markdownlint

    5,855在 GitHub 上查看↗
    JavaScriptcommonmarklintmarkdown
    在 GitHub 上查看↗5,855
查看 Tslint 的所有 30 个替代方案→

常见问题解答

palantir/tslint 是做什么的?

TSLint is an extensible static analysis tool that checks TypeScript source files against a configurable set of lint rules. It scans code by walking the parsed TypeScript abstract syntax tree, applying rule objects to detect readability, maintainability, and functionality errors. The tool supports rule severity configuration, inline suppression through comment directives, and automatic attachment of fix objects for correcting violations.

palantir/tslint 的主要功能有哪些?

palantir/tslint 的主要功能包括:TypeScript Static Analysis, Custom Lint Rule Plugins, Linting Configurations, Lint Rule AST Walkers, TypeScript and JavaScript Linting, Static Analysis Rule Engines, General Lint Rule Engines, Static Code Analyzers。

palantir/tslint 有哪些开源替代品?

palantir/tslint 的开源替代品包括: stylelint/stylelint — Stylelint is a static code analysis tool and linter for CSS and style-like languages. It identifies errors, enforces… ansible/ansible-lint — ansible-lint is a static code analysis tool and linter designed to identify syntax errors and best practice violations… jshint/jshint — JSHint is a JavaScript static analysis tool and linter designed to detect errors and enforce coding standards. It… davidanson/markdownlint. sindresorhus/xo — xo is a zero-config linting tool and ESLint wrapper that provides opinionated default rules for JavaScript and… jsx-eslint/eslint-plugin-react — This project is an ESLint plugin and static analysis tool designed to enforce best practices, prevent bugs, and…