- 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 eslint@8.34.0 prettier@2.8.4 eslint-config-airbnb-base@15.0.0 eslint-config-prettier@8.6.0 eslint-plugin-jest:@27.2.1 eslint-plugin-jest-formatting@3.1.0 eslint-plugin-prettier@4.2.1 eslint-plugin-import@2.27.5 eslint-plugin-simple-import-sort@10.0.0 --dev
OR
npm install --save-dev @borisshulyak/eslint-config-base@latest eslint@8.34.0 prettier@2.8.4 eslint-config-airbnb-base@15.0.0 eslint-config-prettier@8.6.0 eslint-plugin-jest:@27.2.1 eslint-plugin-jest-formatting@3.1.0 eslint-plugin-prettier@4.2.1 eslint-plugin-import@2.27.5 eslint-plugin-simple-import-sort@10.0.0
- 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.