default config for my ts-projects
-
Install dependencies
yarn add --dev @rweich/eslint-config
-
Configure
- either add the config to your
.eslintrc.js
:module.exports = { extends: "@rweich", rules: { // Additional, per-project rules... } };
- or add it to your
package.json
:{ "eslintConfig": { "extends": "@rweich" } }
- either add the config to your
-
(optional) add the two following scripts to your
package.json
to run the linter manually:{ "scripts": { "lint": "eslint 'src/**/*.ts'", "lint-tests": "eslint 'test/**/*.ts'" } }