Plain and simple code quality config
- Lint JavaScript based on latest standards
- Fix issues and formatting errors
- Lint & Fix issues within html
<script>
tags
-
If you don't already have a
package.json
file, create one withnpm init
. -
Install everything needed by the config:
npx install-peerdeps --dev eslint-config-snowl
- Your package.json should have all the dependencies needed to run the script
- Create a
.eslintrc
file in the root of your project. Your.eslintrc
file should look like this:
{
"extends": [
"snowl"
]
}
Add two scripts to your package.json to lint and/or fix:
"scripts": {
"lint": "eslint .",
"lint:fix": "eslint . --fix"
},