@manuth/eslint-plugin-typescript
v5.0.3
Published
A set of personal eslint-rulesets for TypeScript-projects
Downloads
1,875
Readme
ESLintPresets
A set of personal eslint-rulesets for TypeScript-projects
Usage
Flat Config Interface
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 happeningweakWithTypeChecking
:
Theweak
configuration including rules which require type checkingrecommended
:
An opinionated default configurationrecommendedWithTypeChecking
:
Therecommended
configuration including rules which require type checking
eslintrc (Legacy) Config Interface
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 happeningweak-requiring-type-checking
:
Theweak
configuration including rules which require type checkingrecommended
:
An opinionated default configurationrecommended-requiring-type-checking
:
Therecommended
configuration including rules which require type checking