1.0.2 • Published 3 years ago
eslint-config-sxnaprkhr v1.0.2
ESLint and Prettier config
These are my configuration files for ESLint and Prettier
Local/Project Install
Create a
package.json
file.Install devDependencies using:
npx install-peerdeps --dev eslint-config-sxnaprkhr
- Create a
.eslintrc
file in the root of your project's directory.
{
"extends":[
"sxnaprkhr"
]
}
- Optional: Add these two scripts to your package.json to lint/fix using Terminal:
{
"scripts":{
"lint": "eslint .",
"lint:fix": "eslint . --fix"
}
}