These are my configuration files for ESLint and Prettier
-
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"
}
}