Skip to content

coldsurfers/eslint-config-coldsurfers

Repository files navigation

Install

npm i -D eslint-config-coldsurfers # or yarn add --dev eslint-config-coldsurfers
npx install-peerdeps --dev eslint-config-coldsurfers

ESlint Config Setting

.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.

Prettier Config Setting

.prettierrc.json

{
    "trailingComma": "es5",
    "tabWidth": 2,
    "semi": false,
    "singleQuote": true
}