Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign up(question) eslint rule / plugin for guideline 7.15 #1731
Comments
|
Indeed!
|
|
awesome! thanks @ljharb. i can't seem to find the right options for in particular, i can't get eslint to bug me about the 'bad' example below.
|
|
Maybe we need to file something upstream on eslint about it? |
|
@shelbyspeegle I tried both rules out and I'm getting both errors, the bad example included.
What have you tried so far? |
|
thanks @raunofreiberg, that gets me close, unfortunately it allows these scenarios:
i assumed that this should produce an eslint error, but an example isnt provided for this type of case. i did see this in the guide language that could suggest that this should error.
|
|
Yes, that should be an error. Either the entire invocation fits on one line, or each argument is on a line by itself. |
is there an eslint rule or plugin that enforces 7.15?