Skip to content

A tutorial/template repository to explain how to create your eslint plugins

License

Notifications You must be signed in to change notification settings

melvsparks/eslint-plugin-tutorial

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ESLint plugin tutorial

What's this?

This is an example repository to explain how to create your ESLint rules.

Why should we learn how to create custom ESLint rules?

Lint rules help to keep our codes' quality constant. Automatic code checking brings time for more productive activities, and also eliminates indivisual effects from code review.

Creating ESLint rules is a good subject to learn AST(Abstract Syntax Tree) analysis. Today, analysis of AST is the foundation of the JavaScript build ecosystem. There are many libraries using AST, such as Babel plugins, custom TypeScript transformers, prettier, webpack and so on. Your team's JavaScript gets improved significantly if you can control AST freely!

Tutorial

See guides.

Getting started

This repository is also designed to work as a project template for custom ESLint rules.

If you want to start quickly, follow the procedure below:

  • Clone this repository
  • Remove .git and guide dirs
  • Change pkg name via edit package.json
  • Change and test rule codes under src/rules dir

This repository includes:

  • TypeScript setting
  • Jest
  • CircleCI configuration

LICENSE

MIT

About

A tutorial/template repository to explain how to create your eslint plugins

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 100.0%