npm i -D eslint-config-coldsurfers # or yarn add --dev eslint-config-coldsurfers
npx install-peerdeps --dev eslint-config-coldsurfers
.eslintrc
{
"extends": [
"coldsurfers", // for nodejs-typescript, or 'coldsurfers/nodejs-typescript'
"coldsurfers/react-typescript" // for react-typescript
]
}
Basically, extending just coldsurfers
is for nodejs-typescript eslint configuration.
.prettierrc.json
{
"trailingComma": "es5",
"tabWidth": 2,
"semi": false,
"singleQuote": true
}