You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TypeScript uses triple-slash directives (single-line comments containing a single XML tag) to define compiler directives. The @arcticicestudio/eslint-config-base configures the ESLint core rule spaced-comment and already defines exceptions and comment markers for special use cases, but does not support triple-slash directives yet. When running eslint --fix these comments in *.d.ts files get malformed (/// → // /) which results in invalid TypeScript syntax.
To support triple-slash directives, the / marker will be added to the line field.
The text was updated successfully, but these errors were encountered:
TypeScript uses triple-slash directives [1] (single-line comments
containing a single XML tag) to define compiler directives.
The `@arcticicestudio/eslint-config-base` configures the ESLint core
rule `spaced-comment` [2] and already defines exceptions and comment
markers for special use cases, but did not support triple-slash
directives. When running `eslint --fix` these comments in `*.d.ts` files
got malformed (`///` → `// /`) which resulted in invalid TypeScript
syntax.
To support triple-slash directives, the `/` marker has been added to the
`line` field.
[1]: https://www.typescriptlang.org/docs/handbook/triple-slash-directives.html
[2]: https://eslint.org/docs/rules/spaced-comment
Co-authored-by: Sven Greb <[email protected]>
ClosesGH-51
TypeScript uses triple-slash directives (single-line comments containing a single XML tag) to define compiler directives. The
@arcticicestudio/eslint-config-base
configures the ESLint core rulespaced-comment
and already defines exceptions and comment markers for special use cases, but does not support triple-slash directives yet. When runningeslint --fix
these comments in*.d.ts
files get malformed (///
→// /
) which results in invalid TypeScript syntax.To support triple-slash directives, the
/
marker will be added to theline
field.The text was updated successfully, but these errors were encountered: