Closed
Description
I am not sure where to open this since the rule is not from typescript-eslint
but since it only happens with TypeScript interfaces I am looking for direction.
Repro
{
"rules": {
"lines-around-comment": [
"error",
{
"beforeBlockComment": true,
"afterBlockComment": false,
"beforeLineComment": true,
"afterLineComment": false,
"allowBlockStart": true,
"allowBlockEnd": false,
"allowObjectStart": true,
"allowObjectEnd": false,
"allowArrayStart": true,
"allowArrayEnd": false,
"allowClassStart": true,
"allowClassEnd": false,
},
],
}
}
// your repro code case
export interface IStartCommandOptions {
/**
* This will throw an error using
*/
dangerouslyDisableHostCheck: boolean;
}
Expected Result
Shouldn't fail using interfaces
Actual Result
error Expected line before comment lines-around-comment
Additional Info
Versions
package | version |
---|---|
@typescript-eslint/eslint-plugin |
2.5.0 |
@typescript-eslint/parser |
2.5.0 |
TypeScript |
3.6.4 |
ESLint |
6.6.0 |
node |
10.16.1 |
npm |
6.12.0 |