eslint-config-pecode
v1.1.7
Published
Pecode Software Code Style - ESLint/Prettier Shareable Config
Readme
This is ESlint configuration for Pecode Software
- First of all, be sure you are installed ESlint globally
npm install -g eslint - Install ESlint plugin for VScode:
- you could use this link https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint
- or install it through your VSCode

- Open your project folder and call the terminal, then type next command and press
Enter
npm i eslint eslint-plugin-chai-friendly eslint-plugin-cypress eslint-plugin-import eslint-config-pecode
- After all, packages will be installed, create
.eslintrc.jsonfile at the root of your project and copy-paste this code inside this file
{
"extends": "eslint-config-pecode"
}
- Configure your ESlint in VSCode so it will fix all errors
on save:
Go to File > Preferences > Settings > Workplace and try to find:
Editor: Code Actions On Save- click on itThen modify
Settings.json:
"In settings.json paste the following code:
{
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"eslint.validate": ["javascript"]
}
Happy coding 🎉
