Shareable config for ESLint, used in Node.js and TypeScript projects at BEEQUIP.
Install with yarn.
yarn add --dev eslint
yarn add --dev prettier
yarn add --dev @beequip/eslint-config-node-typescript
Or npm.
npm install --save-dev eslint
npm install --save-dev prettier
npm install --save-dev @beequip/eslint-config-node-typescript
Create a new .eslintrc.json
file in the root of your project with the following content:
{
"extends": [
"@beequip/eslint-config-node-typescript"
]
}
For an optimal experience, add a Prettier override by creating a .prettierrc.json
file in the root of your project.
{
"trailingComma": "es5",
"tabWidth": 4,
"semi": false,
"singleQuote": true
}
For more information on shareable configs for ESLint, see the docs: https://eslint.org/docs/6.0.0/developer-guide/shareable-configs