@ofk/eslint-config-recommend v6.6.2
@ofk/eslint-config-recommend
This is an my eslint config.
It uses Airbnb TypeScript as a base, has Prettier and TypeScript ESLint 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 @typescript-eslint/eslint-plugin@7 @typescript-eslint/parser@7 eslint@8 prettier typescript
Extend the
@ofk/eslint-config-recommend
config in your.eslintrc
(oreslintConfig
key in yourpackage.json
):"eslintConfig": { "extends": "@ofk/eslint-config-recommend" }
Run
eslint
on your project as part of yourlint
andformat
scripts:"scripts": { "lint": "eslint --ext .js,.jsx,.ts,.tsx .", "format": "npm run lint -- --fix", "pretest": "npm run lint", "test": "test command" }
(Optional) Set up prettier config in
prettier
key in yourpackage.json
:"prettier": "@ofk/eslint-config-recommend/.prettierrc"
Read more about shared configs here, especially if you need to extend/override the default configuration.
10 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
12 months ago
11 months ago
1 year ago
12 months ago
11 months ago
12 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago