• Stars
    star
    216
  • Rank 176,689 (Top 4 %)
  • Language
    JavaScript
  • License
    Other
  • Created over 10 years ago
  • Updated 4 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A Yeoman generator to help with ESLint development

generator-eslint CI NPM version

The ESLint generator for Yeoman. This generator is intended to aid development within the ESLint project. It is designed to work within the top-level eslint directory.

Installation

First and foremost, you must have Node.js and npm installed. If you don't have Node.js installed, please download and install the latest version.

Requirements

  • Node.js ^14.17.0 || ^16.0.0 || >= 18.0.0

You must also install Yeoman, if you don't have it installed already. To install Yeoman, you can run this command:

npm i -g yo

With Node.js and Yeoman installed, you can run this command:

npm i -g generator-eslint

Usage

The Yeoman generator currently supports the following commands:

eslint:plugin

If you want to create a new ESLint plugin, make sure you're in the top-level directory where you want the plugin to be created and type:

yo eslint:plugin

You'll be prompted for information about your plugin and it will generate a package.json file, README, and source code for a stub plugin.

eslint:rule

If you want to create a new ESLint rule, make sure you're in the top-level directory of an ESLint repo clone or an ESLint plugin and type:

yo eslint:rule

You'll be prompted for some information and then it will generate the files necessary for a new rule, including the source file, a test file, and a documentation file.

License and Copyright

Copyright OpenJS Foundation and other contributors, <www.openjsf.org>

MIT License

More Repositories

1

eslint

Find and fix problems in your JavaScript code.
JavaScript
23,932
star
2

espree

An Esprima-compatible JavaScript parser
JavaScript
2,191
star
3

typescript-eslint-parser

An ESLint custom parser which leverages TypeScript ESTree to allow for ESLint to lint TypeScript source code.
JavaScript
915
star
4

doctrine

JSDoc parser
JavaScript
454
star
5

config-inspector

A visual tool for inspecting and understanding your ESLint flat configs.
Vue
372
star
6

eslint-plugin-markdown

Lint JavaScript code blocks in Markdown documents
JavaScript
349
star
7

rfcs

Repo for managing Requests For Comments (RFCs) for the ESLint project
120
star
8

eslint-scope

eslint-scope: ECMAScript scope analyzer
JavaScript
117
star
9

archive-website

The ESLint website
JavaScript
95
star
10

eslintrc

The legacy ESLintRC config file format for ESLint
JavaScript
90
star
11

eslint-github-bot

Plugin-based GitHub bot for ESLint
JavaScript
64
star
12

eslint.org

ESLint website
JavaScript
63
star
13

eslint-cli

The local eslint executor.
JavaScript
57
star
14

create-config

Utility to create ESLint config files
JavaScript
54
star
15

eslint-jp

Repository for creating and triaging issues in Japanese
47
star
16

eslint-visitor-keys

Constants and utilities about visitor keys to traverse AST.
JavaScript
38
star
17

cn.eslint.org

Chinese ESLint documentation
JavaScript
27
star
18

eslint-release

The ESLint release tool
JavaScript
23
star
19

tsc-meetings

Technical Steering Committee meeting notes, proposals, and related information
JavaScript
19
star
20

eslint-transforms

Codemods for the ESLint ecosystem
JavaScript
18
star
21

playground

ESLint online playground
JavaScript
11
star
22

zh-hans.docs.eslint.org

Simplified Chinese website
JavaScript
11
star
23

eslint-canary

ESLint regression build
JavaScript
10
star
24

eslint-tester

(Deprecated) A testing utility for ESLint
JavaScript
9
star
25

github-action

A GitHub action to run ESLint on pull requests
JavaScript
5
star
26

.github

Community health files for ESLint
1
star