Skip to content

MomenSherif/create-react-linters

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

42 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Create React Linters πŸš€

Setup all the linters you like and don't let πŸ’© slip into your code base!

Eslint | Stylelint | Commitlint | Prettier | EditorConfig | Commitizen

Usage

Prerequisites:

  • Node.js (^12.22.0, ^14.17.0, or >=16.0.0)
  • Project initialized with git and package.json
npx create-react-linters@latest

🎯 Eslint

Find and fix problems in your JavaScript code.
We are extending airbnb configurations. No extra rules are added.

Provided:

Scripts

npm run eslint:check
npm run eslint:fix

✨ Stylelint

A mighty, modern linter that helps you avoid errors and enforce conventions in your styles.
We are extending standard configurations. No extra rules are added.

Provided:

Scripts

npm run stylelint:check
npm run stylelint:fix

πŸ›‘ Commitlint

Helps your team to adhere to a commit convention. By supporting npm-installed configurations, it makes sharing of commit conventions easy.
We are extending config-conventional configurations. No extra rules are added.

Learn more about conventional commits. here

Provided:

πŸ’„ Prettier

An opinionated code formatter
.prettierrc.json is created with some configurations, feel free to update them.

Learn more about prettier options. here

Provided:

Scripts

npm run prettier:check
npm run prettier:fix

πŸ“ƒ EditorConfig

Maintain consistent coding styles for multiple developers working on the same project across various editors and IDEs.
Default .editorconfig generated file is used.

πŸ’» Commitizen

When you commit with Commitizen, you'll be prompted to fill out any required commit fields at commit time.

npm run commit

🐢 Husky & Lint-Staged

Run linters against staged git files and don't let πŸ’© slip into your code base!

pre-commit | eslint, stylelint and prettier commit | commitlint