Fixable TypeScript ESLint config
@monorepo-template/eslint-config-typescript-fixable
is an ESLint configuration
comprised solely of fixable TypeScript rules. As a result, no manual effort is
required to adhere to this configuration's rules.
Install
yarn add --dev "@monorepo-template/eslint-config-typescript-fixable" "@typescript-eslint/eslint-plugin" "@typescript-eslint/parser"
Use
Merge the following ESLint configuration into your .eslintrc.json
file:
{
"extends": ["@monorepo-template/typescript-fixable"],
"overrides": [
{
"files": ["*.cjs", "*.js", "*.jsx", "*.mjs"],
"extends": ["@monorepo-template/typescript-fixable/js"]
},
{
"files": ["*.json"],
"extends": ["@monorepo-template/typescript-fixable/json"]
}
]
}
If you are using other configurations outside of the @monorepo-template
scope,
this should come after those configurations in the extends
array.