awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
sindresorhus avatar

sindresorhus/eslint-plugin-unicorn

0
View on GitHub↗
4,931 stars·434 forks·JavaScript·mit·18 views

Eslint Plugin Unicorn

eslint-plugin-unicorn is an ESLint plugin that provides a large set of opinionated lint rules for JavaScript and TypeScript projects. Its primary purpose is to enforce code quality, prevent common errors and anti-patterns, and promote a consistent coding style across a codebase.

The plugin distinguishes itself by offering an opinionated preset configuration that imposes a specific coding style rather than leaving all choices to the user. Its rules are specifically designed to catch logical mistakes and code smells that go beyond standard ESLint rules. As an added capability, the plugin also extends linting to non-JavaScript files such as CSS, HTML, JSON, and Markdown within the same ESLint workflow.

Each rule is individually configurable, and the plugin provides an auto-fix engine for safe, reversible edits. The plugin supports both ESM and CommonJS module formats for compatibility with varying ESLint environments.

Features

  • Code Quality Linting - Enforces coding standards and best practices across JavaScript and TypeScript projects.
  • AST Pattern Matching - Provides AST-based pattern matching for detecting code violations and applying automated fixes.
  • ESLint Import Plugins - Registers rules as an ESLint plugin via the standard plugin interface for loading and cascading.
  • Code Quality Rule Collections - Provides a collection of ESLint rules that detect code smells and enforce best practices.
  • JavaScript Linters - Helps catch common programming errors and logical mistakes in JavaScript code.
  • JavaScript Error Detectors - Catches common programming errors and logical mistakes in JavaScript code automatically.
  • JavaScript Style Linting - Enforces consistent coding style across JavaScript codebases with opinionated lint rules.
  • JavaScript-Focused Linting - All rules target JavaScript and related syntaxes using ESLint's built-in parser.
  • Opinionated Lint Presets - Provides an opinionated preset of ESLint rules that impose a specific coding style.
  • Per-Rule Configurations - Each rule in the plugin exposes configurable options to adapt behavior per project.
  • Multi-File-Type Linting - Extends linting to CSS, HTML, JSON, and Markdown files within the same ESLint workflow.
  • Non-JavaScript File Linting - Extends ESLint to lint CSS, HTML, JSON, and Markdown files within the same workflow.
  • Auto-Fix Engines - Provides an auto-fix engine that applies safe, reversible edits to source code automatically.
  • Lint Rule Collections - Ships a composable collection of lint rules that can be combined and configured together.
  • Code Quality Plugins - Provides a wide variety of modern, useful linting rules.
  • Developer Tooling - Collection of useful ESLint rules.

Star history

Star history chart for sindresorhus/eslint-plugin-unicornStar history chart for sindresorhus/eslint-plugin-unicorn

How this analysis was created: This summary and feature list are AI-generated from collected project material and can contain mistakes. Stars, license and language are imported from GitHub. Inclusion does not mean that we have tested or audited this project. Check the source documentation for any feature you depend on. Learn more on our About page.

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Projects sharing features with Eslint Plugin Unicorn

These projects share indexed features with Eslint Plugin Unicorn. Shared tags can include platform or build tooling; verify the primary use case before treating a result as a replacement.
  • standard/standardstandard avatar

    standard/standard

    29,431View on GitHub↗

    Standard is a suite of static analysis tools for JavaScript, comprising a linter, formatter, and a predefined style guide. It functions as a static code analyzer that scans source code for style violations and potential errors without executing the program. The project provides an automatic code fixer that rewrites source code to resolve formatting issues and enforce syntax consistency. It implements a standardized set of rules for JavaScript formatting and syntax to ensure a uniform appearance across different projects. The system covers a wide range of static analysis capabilities, includi

    JavaScriptdevelopmentecmascriptes6
    View on GitHub↗29,431
  • jshint/jshintjshint avatar

    jshint/jshint

    9,064View on 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
    View on GitHub↗9,064
  • mdevils/node-jscsmdevils avatar

    mdevils/node-jscs

    4,935View on GitHub↗

    node-jscs is a static code analysis tool and JavaScript code style linter. It functions as a JavaScript code formatter that enforces a consistent style guide and formatting rules across source code. The project manages team coding standards by checking source code against defined style rules to maintain visual consistency. It provides a JavaScript linting workflow that identifies style violations and performs automated code formatting to resolve inconsistencies. The system utilizes AST-based static analysis to verify stylistic rules without executing the code. It employs rule-based pattern m

    JavaScript
    View on GitHub↗4,935
  • jscs-dev/node-jscsjscs-dev avatar

    jscs-dev/node-jscs

    4,936View on GitHub↗

    node-jscs is a JavaScript linter and code style checker designed to analyze source code and enforce consistent coding standards. It functions as a static analysis tool that identifies patterns in JavaScript code to ensure adherence to defined style guides. The project provides capabilities for both JavaScript code linting and automated code formatting. It can check source code for style violations and automatically correct those errors to align the codebase with a specified set of formatting rules.

    JavaScript
    View on GitHub↗4,936
Compare all 30 related projects→

Frequently asked questions

What does sindresorhus/eslint-plugin-unicorn do?

eslint-plugin-unicorn is an ESLint plugin that provides a large set of opinionated lint rules for JavaScript and TypeScript projects. Its primary purpose is to enforce code quality, prevent common errors and anti-patterns, and promote a consistent coding style across a codebase.

What are the main features of sindresorhus/eslint-plugin-unicorn?

The main features of sindresorhus/eslint-plugin-unicorn are: Code Quality Linting, AST Pattern Matching, ESLint Import Plugins, Code Quality Rule Collections, JavaScript Linters, JavaScript Error Detectors, JavaScript Style Linting, JavaScript-Focused Linting.

Which projects share features with sindresorhus/eslint-plugin-unicorn?

Projects with overlapping indexed features include: mdevils/node-jscs — node-jscs is a static code analysis tool and JavaScript code style linter. It functions as a JavaScript code formatter… standard/standard — Standard is a suite of static analysis tools for JavaScript, comprising a linter, formatter, and a predefined style… jshint/jshint — JSHint is a JavaScript static analysis tool and linter designed to detect errors and enforce coding standards. It… jscs-dev/node-jscs — node-jscs is a JavaScript linter and code style checker designed to analyze source code and enforce consistent coding… sindresorhus/xo — xo is a zero-config linting tool and ESLint wrapper that provides opinionated default rules for JavaScript and… standard/semistandard — Semistandard is a static analysis tool and automated code formatter designed to enforce consistent JavaScript syntax…