# standard/standard

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/standard-standard).**

29,431 stars · 2,309 forks · JavaScript · MIT

## Links

- GitHub: https://github.com/standard/standard
- Homepage: https://standardjs.com
- awesome-repositories: https://awesome-repositories.com/repository/standard-standard.md

## Topics

`development` `ecmascript` `es6` `eslint` `javascript` `linter` `nodejs` `standard` `static-code-analysis` `style-guide`

## Description

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, including the restriction of unsafe programming patterns, the management of semicolon usage, and support for modern ECMAScript syntax. It supports analysis of code embedded in Markdown or HTML files and integrates with version control workflows via git hooks to run style checks during the pre-commit phase.

The toolset includes native IDE integration and a programmatic API for retrieving structured reports on analysis results.

## Tags

### Development Tools & Productivity

- [Coding Style Tools](https://awesome-repositories.com/f/development-tools-productivity/developer-utilities-libraries/developer-tools/code-quality-verification/coding-style-tools.md) — Provides utilities that automatically format, lint, and enforce consistency in source code style. ([source](https://github.com/standard/standard/blob/master/README.md))
- [Automatic Code Formatters](https://awesome-repositories.com/f/development-tools-productivity/automatic-code-formatters.md) — Automatically corrects indentation, spacing, and syntax inconsistencies in JavaScript files to match a defined standard.
- [AST Pattern Matching](https://awesome-repositories.com/f/development-tools-productivity/code-quality-analysis/static-analysis-engines/static-analysis-tools/ast-pattern-matching.md) — Implements structural code analysis by transforming source code into abstract syntax trees to detect pattern violations.
- [Code Transformation Tools](https://awesome-repositories.com/f/development-tools-productivity/code-transformation-tools.md) — Provides utilities that parse and modify source code structure programmatically to resolve style violations.
- [Semicolon Configuration Rules](https://awesome-repositories.com/f/development-tools-productivity/code-quality-analysis/static-analysis-engines/static-analysis-tools/code-formatting-tools/semicolon-configuration-rules.md) — Enforces rules for semicolon usage to ensure visual consistency and prevent runtime errors. ([source](https://github.com/standard/standard/blob/master/RULES.md))
- [File Exclusion Rules](https://awesome-repositories.com/f/development-tools-productivity/file-exclusion-rules.md) — Implements configuration mechanisms to define files and directories that should be ignored during analysis. ([source](https://github.com/standard/standard#readme))
- [IDE Analysis Integrations](https://awesome-repositories.com/f/development-tools-productivity/ide-analysis-integrations.md) — Integrates static analysis engines directly into code editors to surface results and provide remediation guidance. ([source](https://github.com/standard/standard/blob/master/docs/webstorm.md))
- [Pre-commit Hooks](https://awesome-repositories.com/f/development-tools-productivity/pre-commit-hooks.md) — Integrates automated style checks and fixes into the pre-commit phase of the version control workflow. ([source](https://github.com/standard/standard#readme))

### Programming Languages & Runtimes

- [JavaScript Linters](https://awesome-repositories.com/f/programming-languages-runtimes/javascript-linters.md) — Checks JavaScript source code for style violations and common errors to ensure a consistent codebase.
- [Modern Syntax](https://awesome-repositories.com/f/programming-languages-runtimes/language-features-paradigms/javascript-language-features/modern-syntax.md) — Provides support for the latest ECMAScript language specifications and modern JavaScript syntax features. ([source](https://github.com/standard/standard/blob/master/CHANGELOG.md))
- [Linter Global Variable Definitions](https://awesome-repositories.com/f/programming-languages-runtimes/linter-global-variable-definitions.md) — Supports configuration of global identifiers to prevent undefined-variable warnings across different runtime environments.

### Part of an Awesome List

- [JavaScript Style Guides](https://awesome-repositories.com/f/awesome-lists/devtools/javascript-style-guides.md) — Implements a predefined set of rules for JavaScript formatting and syntax to ensure consistency across projects.
- [Global Variables and Environments](https://awesome-repositories.com/f/awesome-lists/devtools/global-variables-and-environments.md) — Provides a mechanism to manage environment-specific global variables to prevent false positive warnings. ([source](https://github.com/standard/standard#readme))
- [Code Quality Tools](https://awesome-repositories.com/f/awesome-lists/devtools/code-quality-tools.md) — JavaScript style guide with built-in linter and auto-fixer.
- [Testing and Quality Assurance](https://awesome-repositories.com/f/awesome-lists/devtools/testing-and-quality-assurance.md) — Style guide with linter and automatic code fixer.

### Software Engineering & Architecture

- [Coding Standards Enforcement](https://awesome-repositories.com/f/software-engineering-architecture/coding-standards-enforcement.md) — Implements an automated system for validating source code against a predefined set of style rules. ([source](https://github.com/standard/standard/blob/master/docs/README-esla.md))
- [Style Guide Enforcers](https://awesome-repositories.com/f/software-engineering-architecture/style-guide-enforcers.md) — Automatically enforces a strict, singular standard for indentation, quotes, and spacing to ensure a uniform appearance. ([source](https://github.com/standard/standard/blob/master/RULES.md))
- [Extensible Plugin Architectures](https://awesome-repositories.com/f/software-engineering-architecture/extensible-plugin-architectures.md) — Implements a framework that supports modular extension and the injection of custom parsers and rules.
- [Rule Configuration Engines](https://awesome-repositories.com/f/software-engineering-architecture/rule-configuration-engines.md) — Allows users to override default analysis behavior by customizing plugins, rules, and environments via configuration. ([source](https://github.com/standard/standard/blob/master/CHANGELOG.md))
- [Interchangeable Parser Integrations](https://awesome-repositories.com/f/software-engineering-architecture/syntax-parsers/interchangeable-parser-integrations.md) — Supports swapping the default language parser for alternative implementations to handle experimental or non-standard syntax. ([source](https://github.com/standard/standard#readme))
- [Unsafe Programming Pattern Restrictions](https://awesome-repositories.com/f/software-engineering-architecture/unsafe-programming-pattern-restrictions.md) — Provides rules to prevent common programming errors by forbidding unused variables and requiring strict equality checks. ([source](https://github.com/standard/standard/blob/master/RULES.md))

### Testing & Quality Assurance

- [Automated Code Fixers](https://awesome-repositories.com/f/testing-quality-assurance/code-quality-review/automated-code-fixers.md) — Automatically rewrites source code to resolve identified formatting issues and style inconsistencies.
- [Static Code Analysis Tools](https://awesome-repositories.com/f/testing-quality-assurance/code-quality-review/code-quality-tools/static-code-analysis-tools.md) — Scans JavaScript source code without executing it to identify style violations and potential programming errors.
- [Linters & Formatters](https://awesome-repositories.com/f/testing-quality-assurance/code-quality-review/linters-formatters.md) — Provides a combined linter and formatter to enforce consistent coding styles in JavaScript through static analysis.
- [Static Code Analysis](https://awesome-repositories.com/f/testing-quality-assurance/static-code-analysis.md) — Programmatically analyzes source code to detect bugs and maintainability issues without executing the program.

### Operating Systems & Systems Programming

- [Ignore File Parsers](https://awesome-repositories.com/f/operating-systems-systems-programming/system-administration-maintenance/file-system-management/file-system-utilities/ignore-file-parsers.md) — Parses version control ignore patterns to automatically exclude specific files and directories from processing. ([source](https://github.com/standard/standard/blob/master/CHANGELOG.md))
