`indent` should check tabs in front of block comments
See original GitHub issueWhat rule do you want to change? indent Does this change cause the rule to produce more or fewer warnings? More warnings How will the change be implemented? (New option, new default behavior, etc.)? This could be a new option or modify default behavior. The former would be a non-breaking change and likely preferred. Please provide some example code that this change will affect:
export class Human {
constructor(name) {
this.name = name;
}
/**
* Set the `name` of the class
* @param {string} value - value to be set
*/
set name(value) {
this._name = value;
}
/**
* Get the `name` of the class
* @returns {string}
*/
get name() {
return this._name;
}
}
What does the rule currently do for this code?
demo link. Notice how on lines 7-9 are prepended with tabs, but an error is not thrown. The inverse is true when ["error", "tab"]
is used.
What will the rule do after it’s changed?
The rule should check blocked comments and ensure they follow the indent rule properly.
Are you willing to submit a pull request to implement this change?
No.
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (4 by maintainers)
Top GitHub Comments
Hi @ibbignerd, just wanted to leave a note about the demo…
You can pass options in the demo by having your source code use an inline configuration comment. Here’s an example.
Hope this helps! (Sorry, I can’t help with the actual issue at the moment.)
@not-an-aardvark Did you see my demo that highlights the issue?