A set of personal eslint-rulesets for TypeScript-projects
Import flatConfigs
from this module and use the desired configurations:
eslint.config.js:
import { flatConfigs } from "@manuth/eslint-plugin-typescript";
export default [
...flatConfigs.recommendedWithTypeChecking
]
Following configurations are available:
-
weak
:
Lightweight configurations which prevent common issues from happening -
weakWithTypeChecking
:
Theweak
configuration including rules which require type checking -
recommended
:
An opinionated default configuration -
recommendedWithTypeChecking
:
Therecommended
configuration including rules which require type checking
Add the desired presets to the extends
-list of your configuration:
.eslintrc.cjs:
module.exports = {
extends = [
"plugins:@manuth/typescript/recommended-requiring-type-checking"
];
};
Following configurations are available:
-
weak
:
Lightweight configurations which prevent common issues from happening -
weak-requiring-type-checking
:
Theweak
configuration including rules which require type checking -
recommended
:
An opinionated default configuration -
recommended-requiring-type-checking
:
Therecommended
configuration including rules which require type checking