1.1.7 • Published 2 years ago

eslint-config-pecode v1.1.7

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

This is ESlint configuration for Pecode Software

1) First of all, be sure you are installed ESlint globally npm install -g eslint 2) 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 ESlint setup 3) 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 npm install 4) After all, packages will be installed, create .eslintrc.json file at the root of your project and copy-paste this code inside this file
{ 
  "extends": "eslint-config-pecode" 
}

extends

5) 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 it
  • Then modify Settings.json: Code Actions On Save

  • "In settings.json paste the following code:

{
  "editor.codeActionsOnSave": {
  "source.fixAll.eslint": true
  },
  "eslint.validate": ["javascript"]
}

settings.json

Happy coding 🎉

1.1.1

2 years ago

1.1.7

2 years ago

1.1.6

2 years ago

1.1.5

2 years ago

1.1.4

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.0

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago