@ofk/eslint-config-recommend
v7.5.0
Published
eslint config with typescript and prettier support
Readme
@ofk/eslint-config-recommend
This is an my eslint config.
It uses @ofk/eslint-config as a base, has Prettier baked in, and overrides some rules I've seen ourselves having to change often.
Quick start
Install the following dev-dependencies:
npm install --save-dev @ofk/eslint-config-recommend eslint prettier typescriptExtend the
@ofk/eslint-config-recommendconfig in youreslint.config.js:import config from '@ofk/eslint-config-recommend'; export default config();Run
eslinton your project as part of yourlintandformatscripts:"scripts": { "lint": "eslint . && prettier --check .", "format": "eslint --fix . && prettier --write .", "pretest": "npm run lint", "test": "test command" }(Optional) Set up prettier config in
prettierkey in yourpackage.json:"prettier": "@ofk/eslint-config-recommend/.prettierrc.json"Read more about shared configs here, especially if you need to extend/override the default configuration.
