• Stars
    star
    230
  • Rank 174,053 (Top 4 %)
  • Language
    JavaScript
  • License
    Other
  • Created almost 11 years ago
  • Updated about 2 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
25,026
star
2

js

Monorepo for the JS language tools.
JavaScript
2,283
star
3

typescript-eslint-parser

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

config-inspector

A visual tool for inspecting and understanding your ESLint flat configs.
Vue
697
star
5

doctrine

JSDoc parser
JavaScript
456
star
6

markdown

Lint JavaScript code blocks in Markdown documents
JavaScript
405
star
7

rewrite

Monorepo for the new version of ESLint
JavaScript
156
star
8

rfcs

Repo for managing Requests For Comments (RFCs) for the ESLint project
129
star
9

eslint-scope

eslint-scope: ECMAScript scope analyzer
JavaScript
125
star
10

eslintrc

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

archive-website

The ESLint website
JavaScript
96
star
12

create-config

Utility to create ESLint config files
JavaScript
76
star
13

eslint.org

ESLint website
JavaScript
75
star
14

eslint-github-bot

Plugin-based GitHub bot for ESLint
JavaScript
65
star
15

eslint-cli

The local eslint executor.
JavaScript
57
star
16

eslint-jp

Repository for creating and triaging issues in Japanese
47
star
17

eslint-visitor-keys

Constants and utilities about visitor keys to traverse AST.
JavaScript
42
star
18

json

JSON language plugin for ESLint
JavaScript
38
star
19

cn.eslint.org

Chinese ESLint documentation
JavaScript
27
star
20

eslint-transforms

Codemods for the ESLint ecosystem
JavaScript
25
star
21

eslint-release

The ESLint release tool
JavaScript
24
star
22

tsc-meetings

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

zh-hans.docs.eslint.org

Simplified Chinese website
JavaScript
15
star
24

playground

ESLint online playground
JavaScript
11
star
25

eslint-canary

ESLint regression build
JavaScript
10
star
26

css

CSS language plugin for ESLint
10
star
27

code-explorer

TypeScript
9
star
28

eslint-tester

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

github-action

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

.github

Community health files for ESLint
1
star