2.1.1 • Published 5 months ago
@siemens/eslint-plugin-defaultvalue v2.1.1
eslint-plugin-defaultvalue
An ESLint plugin to automatically enrich TSDoc comments with default values (using --fix) or check if they are all correct.
The rule is aware of Signals
by @angular/core
and will automatically use the actual value instead of the whole signal
function.
Installation
Install @siemens/eslint-plugin-defaultvalue
in your project.
npm install @siemens/eslint-plugin-defaultvalue --save-dev
Configuration
Include the ESLint plugin and rule in your relevant eslint.config.(m)js
:
...
import defaultvalue from '@siemens/eslint-plugin-defaultvalue';
export default [
{
...,
plugins: {
...,
defaultvalue
},
rules: {
...,
'defaultvalue/tsdoc-defaultValue-annotation': ['error']
}
}
];
2.1.1
5 months ago
2.1.0
5 months ago
2.0.0
6 months ago
2.0.0-next.3
6 months ago
2.0.0-next.2
6 months ago
1.1.2
6 months ago
1.1.1
6 months ago
2.0.0-next.1
6 months ago
1.1.0
6 months ago
1.0.2
6 months ago
1.0.1
6 months ago
1.0.0
7 months ago
1.0.0-next.1
7 months ago