-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Closed
Labels
acceptedThere is consensus among the team that this change meets the criteria for inclusionThere is consensus among the team that this change meets the criteria for inclusionarchived due to ageThis issue has been archived; please open a new issue for any further discussionThis issue has been archived; please open a new issue for any further discussionenhancementThis change enhances an existing feature of ESLintThis change enhances an existing feature of ESLintruleRelates to ESLint's core rulesRelates to ESLint's core rules
Description
What rule do you want to change?
lines-around-comment
What change to do you want to make?
Generate more warnings
How do you think the change should be implemented?
A new option
Example code
#!foo
anyStatement;
What does the rule currently do for this code?
Does nothing
What will the rule do after it's changed?
Warns Expected line after comment
with following options:
"lines-around-comment": ["error", { "afterHashbangComment": true }]
Participation
- I am willing to submit a pull request to implement this change.
Additional comments
Hashbang Comment is added since ES2023
mdjermanovic and snitin315
Metadata
Metadata
Assignees
Labels
acceptedThere is consensus among the team that this change meets the criteria for inclusionThere is consensus among the team that this change meets the criteria for inclusionarchived due to ageThis issue has been archived; please open a new issue for any further discussionThis issue has been archived; please open a new issue for any further discussionenhancementThis change enhances an existing feature of ESLintThis change enhances an existing feature of ESLintruleRelates to ESLint's core rulesRelates to ESLint's core rules
Type
Projects
Status
Complete