-
-
Notifications
You must be signed in to change notification settings - Fork 673
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🐛Fix: incorrect indentation in vue/script-indent
rule
#503
Conversation
…eport whileforce using semicolon.
👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, left one comment
lib/utils/indent-common.js
Outdated
const trivial = isTrivialToken(tokens[0]) | ||
let expectedIndent = Number.MAX_SAFE_INTEGER | ||
function getExpectedIndents (tokens) { | ||
const expectedIndents = [] | ||
|
||
for (let i = 0; i < tokens.length; ++i) { | ||
const token = tokens[i] | ||
const offsetInfo = offsets.get(token) | ||
|
||
// If the first token is not trivial then ignore trivial following tokens. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like this comment is not relevant anymore
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@michalsnik I have a question, If this PR is merged, how can I install latest eslint-plugin-vue with fixed code ?
@michalsnik Thank you for pointing out. |
Hi! |
Alright, let's give it a spin while we're still in beta and the rule is still |
fixed #441,#443