Need advice about which tool to choose?Ask the StackShare community!

Prettier

9.6K
602
+ 1
7
TSLint

3.1K
229
+ 1
0
Add tool

Prettier vs TSLint: What are the differences?

Developers describe Prettier as "Prettier is an opinionated code formatter". Prettier is an opinionated code formatter. It enforces a consistent style by parsing your code and re-printing it with its own rules that take the maximum line length into account, wrapping code when necessary. On the other hand, TSLint is detailed as "An extensible linter for the TypeScript language". An extensible static analysis tool that checks TypeScript code for readability, maintainability, and functionality errors. It is widely supported across modern editors & build systems and can be customized with your own lint rules, configurations, and formatters.

Prettier and TSLint belong to "Code Review" category of the tech stack.

Prettier is an open source tool with 32.7K GitHub stars and 1.81K GitHub forks. Here's a link to Prettier's open source repository on GitHub.

Swat.io, HousingAnywhere, and AgFlow are some of the popular companies that use Prettier, whereas TSLint is used by AgFlow, Sofit Software, and Netcentric. Prettier has a broader approval, being mentioned in 63 company stacks & 60 developers stacks; compared to TSLint, which is listed in 22 company stacks and 30 developer stacks.

Get Advice from developers at your company using StackShare Enterprise. Sign up for StackShare Enterprise.
Learn More
Pros of Prettier
Pros of TSLint
  • 2
    Customizable
  • 1
    Open Source
  • 1
    Atom/VSCode package
  • 1
    Follows the Ruby Style Guide by default
  • 1
    Runs offline
  • 1
    Completely free
    Be the first to leave a pro

    Sign up to add or upvote prosMake informed product decisions

    - No public GitHub repository available -

    What is Prettier?

    Prettier is an opinionated code formatter. It enforces a consistent style by parsing your code and re-printing it with its own rules that take the maximum line length into account, wrapping code when necessary.

    What is TSLint?

    An extensible static analysis tool that checks TypeScript code for readability, maintainability, and functionality errors. It is widely supported across modern editors & build systems and can be customized with your own lint rules, configurations, and formatters.

    Need advice about which tool to choose?Ask the StackShare community!

    Jobs that mention Prettier and TSLint as a desired skillset
    What companies use Prettier?
    What companies use TSLint?
    See which teams inside your own company are using Prettier or TSLint.
    Sign up for StackShare EnterpriseLearn More

    Sign up to get full access to all the companiesMake informed product decisions

    What tools integrate with Prettier?
    What tools integrate with TSLint?

    Sign up to get full access to all the tool integrationsMake informed product decisions

    What are some alternatives to Prettier and TSLint?
    EditorConfig
    It is a file format and collection of text editor plugins. It helps maintain consistent coding styles for multiple developers working on the same project across various editors and IDEs.
    ESLint
    A pluggable and configurable linter tool for identifying and reporting on patterns in JavaScript. Maintain your code quality with ease.
    SonarQube
    SonarQube provides an overview of the overall health of your source code and even more importantly, it highlights issues found on new code. With a Quality Gate set on your project, you will simply fix the Leak and start mechanically improving.
    Code Climate
    After each Git push, Code Climate analyzes your code for complexity, duplication, and common smells to determine changes in quality and surface technical debt hotspots.
    RuboCop
    RuboCop is a Ruby static code analyzer. Out of the box it will enforce many of the guidelines outlined in the community Ruby Style Guide.
    See all alternatives