- Provides a full
eslint
config created using the following configs and plugins:eslint
prettier
eslint-config-airbnb-base
eslint-config-prettier
eslint-plugin-jest
eslint-plugin-jest-formatting
eslint-plugin-prettier
eslint-plugin-import
eslint-plugin-simple-import-sort
yarn add @borisshulyak/eslint-config-base@latest [email protected] [email protected] [email protected] [email protected] eslint-plugin-jest:@27.2.1 [email protected] [email protected] [email protected] [email protected] --dev
OR
npm install --save-dev @borisshulyak/eslint-config-base@latest [email protected] [email protected] [email protected] [email protected] eslint-plugin-jest:@27.2.1 [email protected] [email protected] [email protected] [email protected]
- Create
.eslintrs.js
in the root of the project. - Copy and paste the following code to the file:
module.exports = {
"extends": ["@borisshulyak/eslint-config-base"]
}
- Run
eslint
check:
eslint . --ext .jsx,.js --quiet
- Run
eslint
autofix:
eslint . --ext .jsx,.js --fix
See the CONTRIBUTING.mddocument.
If you are enjoying this plugin and feel extra appreciative, you could buy me a book 📖 or 3 📖📖📖.
- I want to say thank you tomy wife Dianafor her love, daily support, motivation and inspiration.