@bengsfort/eslint-config
Simple and straight forward eslint config that I use in my personal projects.
Installation
- Add as a dev dependency.
$ yarn add -D @bengsfort/eslint-config
$ yarn add -D eslint @typescript-eslint/parser
- Extend the config from your eslint config, and add the ts parser.
module.exports = {
"extends": [
"@bengsfort",
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": ["./tsconfig.json"],
"ecmaVersion": 21,
"sourceType": "module",
},
};
Prettier
Prettier config is also available, just add the following line to your package.json
.
{
"prettier": "@bengsfort/eslint-config/prettier.config.js",
}