🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

eslint-plugin-github

Package Overview
Dependencies
Maintainers
24
Versions
129
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-github

An opinionated collection of ESLint shared configs and rules used by GitHub.

6.0.0
latest
Source
npm
Version published
Weekly downloads
195K
46.64%
Maintainers
24
Weekly downloads
 
Created

What is eslint-plugin-github?

The eslint-plugin-github package provides a set of ESLint rules and configurations specifically designed to enforce coding standards and best practices for GitHub projects. It helps maintain code quality and consistency across JavaScript and TypeScript codebases.

What are eslint-plugin-github's main functionalities?

Enforce GitHub's JavaScript Style Guide

This feature allows you to extend your ESLint configuration with GitHub's recommended rules. By including `plugin:github/recommended` in your ESLint configuration, you can enforce GitHub's JavaScript style guide across your project.

{
  "extends": [
    "plugin:github/recommended"
  ]
}

Custom GitHub Rules

This feature provides custom ESLint rules specific to GitHub's coding standards. For example, `github/array-foreach` enforces the use of `for...of` instead of `Array.prototype.forEach`, and `github/no-blur` warns against the use of `Element.prototype.blur`.

{
  "rules": {
    "github/array-foreach": "error",
    "github/no-blur": "warn"
  }
}

TypeScript Support

This feature extends the ESLint configuration to support TypeScript projects. By including `plugin:github/typescript`, you can enforce GitHub's TypeScript coding standards.

{
  "extends": [
    "plugin:github/typescript"
  ]
}

Other packages similar to eslint-plugin-github

FAQs

Package last updated on 19 Mar 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts