@siemens/eslint-plugin-defaultvalue

2.0.0 • Public • Published

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']
    }
  }
];

Readme

Keywords

Package Sidebar

Install

npm i @siemens/eslint-plugin-defaultvalue

Weekly Downloads

546

Version

2.0.0

License

MIT

Unpacked Size

38.7 kB

Total Files

8

Last publish

Collaborators

  • timowolf
  • kfenner
  • fh1ch
  • spike-rabbit