eslint-plugin-dtslint
Version:
ESLint rules for dtslint tests
23 lines (17 loc) • 588 B
Markdown
from being interpreted as actual dtslint-style comments.
Examples of **incorrect** code for this rule:
```ts
const a = "a"; // ExpectType string
const b: string = 0xb; // ExpectErr
const c = "c"; // ExpectDeprecation
const d = "d"; // ExpectNoDeprecation
```
Examples of **correct** code for this rule:
```ts
const a = "a"; // $ExpectType string
const b: string = 0xb; // $ExpectError
const c = "c"; // $ExpectDeprecation
const d = "d"; // $ExpectNoDeprecation
```
This rule forbids dtslint-style comments that have typographical errors that prevent them