Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

🐛Fix: incorrect indentation in vue/script-indent rule #503

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

Merged
michalsnik merged 4 commits into vuejs:master from ota-meshi:fix-script-indent
Sep 28, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fixed parse error
  • Loading branch information
ota-meshi committed Sep 14, 2018
commit 1e5a12c9274b02a3d9ba693c2bb0efe9b00eebf1
14 changes: 7 additions & 7 deletions tests/fixtures/script-indent/indent-valid-fixture-01.vue
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ var a = function () {
f = g; // <-
};

function c(a, b) {
function c1(a, b) {
if (a || (a &&
b)) {
return d;
Expand Down Expand Up @@ -463,14 +463,14 @@ if (
c++; // <-
}

function c(d) {
function c2(d) {
return {
e: function(f, g) {
}
};
}

function a(b) {
function a1(b) {
switch(x) {
case 1:
if (foo) {
Expand All @@ -479,14 +479,14 @@ function a(b) {
}
}

function a(b) {
function a2(b) {
switch(x) {
case 1:
c;
}
}

function a(b) {
function a3(b) {
switch(x) {
case 1: c;
}
Expand All @@ -503,7 +503,7 @@ function test() {
a();
}

function a(b) {
function a4(b) {
switch(x) {
case 1:
{ // <-
Expand All @@ -523,7 +523,7 @@ switch (a) {
c();
}

function test(x) {
function test1(x) {
switch (x) {
case 1:
return function() {
Expand Down

AltStyle によって変換されたページ (->オリジナル) /