2.1.1 • Published 12 months ago

@siemens/eslint-plugin-defaultvalue v2.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

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

12 months ago

2.1.0

12 months ago

2.0.0

1 year ago

2.0.0-next.3

1 year ago

2.0.0-next.2

1 year ago

1.1.2

1 year ago

1.1.1

1 year ago

2.0.0-next.1

1 year ago

1.1.0

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago

1.0.0-next.1

1 year ago