This module provides your project with an extendable base ESLint configuration to develop applications adhering to SpotHero's JavaScript coding standards. It also adds Prettier support for JS development.
npm install @spothero/eslint-config @spothero/prettier-config -D
Create an eslintConfig
key in your package.json
file and extend this configuration:
{
"eslintConfig": {
"extends": [
"@spothero",
"plugin:prettier/recommended",
"prettier/babel",
"prettier/react"
]
}
}
Lastly, set up the Prettier configuration according to the usage guide.