@hv/eslint-config
v1.0.11
Published
(hopefully) common ESLint and Prettier configuration for hv :-)
Downloads
6
Keywords
Readme
ESLint configuration
(hopefully) common ESLint and Prettier configuration for hv :-)
Usage
Installation:
npm add -D eslint @hv/eslint-config
Either set it in project's package.json:
"eslintConfig": {
"extends": "@hv/eslint-config"
}
or create a eslintrc.*
file and define it there:
{
"extends": [
"@hv/eslint-config"
]
}
You might also want to add the following scripts to the package.json
so you're able to quickly run it via npm lint
or npm lint:fix
:
"scripts": {
"lint": "eslint .",
"lint:fix": "eslint . --fix"
},