qmetrics.net

eslint-plugin-prettier

ESLint plugin running Prettier as a formatting rule

eslint-plugin-prettier screenshot

An ESLint plugin that executes Prettier during linting and surfaces formatting mismatches as individual ESLint issues, with optional autofix via eslint --fix.

Overview

eslint-plugin-prettier bridges Prettier and ESLint by registering Prettier as an ESLint rule. When you lint a project, the plugin compares your code to Prettier's output and reports each difference as its own ESLint diagnostic, so formatting problems appear alongside other lint feedback in editors and CI.

You install the plugin alongside your own ESLint and Prettier installations. It ships recommended presets for both legacy .eslintrc and flat eslint.config.js setups; those presets enable the prettier/prettier rule, turn off arrow-body-style and prefer-arrow-callback because they can conflict, and pull in eslint-config-prettier to disable other formatting-related ESLint rules.

The prettier/prettier rule is autofixable when you run ESLint with --fix, applying Prettier's formatting in that pass. Optional rule settings can pass Prettier options, though keeping Prettier options in .prettierrc helps editor extensions stay aligned. Line-ending mismatches follow Prettier's behavior; configuring endOfLine in Prettier or normalizing files avoids repeated cr/lf reports on Windows.

For Svelte, the maintainers recommend eslint-plugin-svelte rather than svelte3 integration because modified Svelte text can be ignored. If Prettier's opinionated output is not what you want, use prettier-eslint instead of this plugin.

Key features

  • Prettier executed as an ESLint rule
  • Per-difference ESLint diagnostics
  • Autofix through eslint --fix
  • Legacy and flat recommended configs
  • Integrates eslint-config-prettier preset
  • Optional Prettier options in rule config
  • Svelte guidance with eslint-plugin-svelte

Use cases

  • Single lint pass for bugs and formatting
  • CI failing on Prettier drift via ESLint
  • Editor ESLint integration for format fixes
  • Disabling conflicting ESLint style rules
  • Large unformatted codebases with temporary rule toggles

Tags

Similar software

Prettier

Opinionated multi-language code formatter

Prettier enforces consistent style by parsing code and reprinting it with fixed rules and line wrapping. It supports many web and data languages.

  • AST-based consistent reprinting
  • Wide language and plugin support
  • Editor and CI integration
JavaScriptDetails →
★ 52.5k⟳ yesterdayMIT

Oxc

Rust-based JavaScript and TypeScript compiler toolkit

Oxc bundles a parser, linter, formatter, transformer, resolver, and minifier for JavaScript and TypeScript. Oxlint and Oxfmt run via npx for everyday lint and format tasks.

  • Oxlint ESLint-compatible linter
  • Oxfmt Prettier-compatible formatter
  • JavaScript and TypeScript parser
RustLinux, macOSDetails →
★ 23.8k⟳ todayMIT

PHP Parser

PHP library for parsing and manipulating PHP ASTs

A PHP package that parses PHP source into an abstract syntax tree for analysis and code transformation. It targets static analysis and programmatic rewriting workflows.

  • PHP 7 and 8 AST parsing
  • Partial parse on invalid code
  • AST dump and pretty-print
PHPDetails →
★ 17.5k⟳ 5 days agoBSD-3-Clause

typescript-eslint

ESLint tooling for linting TypeScript codebases

typescript-eslint connects ESLint to TypeScript syntax and ships parser services plus lint rules. It enables standard and type-aware linting for JavaScript and TypeScript projects.

  • TypeScript parser for ESLint
  • Parser services for other tools
  • Large standard rule catalog
TypeScriptDetails →
★ 16.5k⟳ todayMIT

laravel-ide-helper

Laravel IDE helper and PHPDoc generator package

A Composer package for Laravel apps that builds helper files and PHPDoc so IDEs can autocomplete facades, models, fluent APIs, and container bindings from your project source.

  • Facade PHPDoc via ide-helper:generate
  • Model property docs from database schema
  • PhpStorm meta for container bindings
PHPDetails →
★ 15k⟳ 1 month agoMIT

quicktype

Type and serializer generator from JSON, Schema, and GraphQL

Quicktype infers strongly typed models and serializers from JSON samples, JSON Schema, TypeScript, or GraphQL. Output targets many programming languages via the web app, CLI, or JavaScript API.

  • JSON and JSON Schema inputs
  • GraphQL and TypeScript sources
  • Twenty-five plus target languages
TypeScriptWeb, macOS, Windows, CLIDetails →
★ 13.9k⟳ 2 months agoApache-2.0