Skip to content

Commit 1fa16a0

Browse files
committed
Merge pull request vuejs#1245 from nkovacs/eslint-ternary
fix eslint ternary operator error
2 parents 9c1967e + 23b75b5 commit 1fa16a0

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

.eslintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@
137137
"object-shorthand": 0,
138138
"one-var": [2, { "initialized": "never" }],
139139
"operator-assignment": 0,
140-
"operator-linebreak": [2, "after"],
140+
"operator-linebreak": [2, "after", { "overrides": { "?": "before", ":": "before" } }],
141141
"padded-blocks": 0,
142142
"prefer-const": 0,
143143
"quote-props": 0,

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"devDependencies": {
3232
"casperjs": "^1.1.0-beta3",
3333
"codecov.io": "^0.1.2",
34-
"eslint": "^1.1.0",
34+
"eslint": "^1.3.1",
3535
"grunt": "^0.4.5",
3636
"grunt-eslint": "^17.1.0",
3737
"grunt-karma": "^0.12.0",

src/watcher.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,8 @@ Watcher.prototype.get = function () {
9696
'Error when evaluating expression "' +
9797
this.expression + '". ' +
9898
(config.debug
99-
? '' :
100-
'Turn on debug mode to see stack trace.'
99+
? ''
100+
: 'Turn on debug mode to see stack trace.'
101101
), e
102102
)
103103
}

test/.eslintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@
147147
"object-shorthand": 0,
148148
"one-var": [2, { "initialized": "never" }],
149149
"operator-assignment": 0,
150-
"operator-linebreak": [2, "after"],
150+
"operator-linebreak": [2, "after", { "overrides": { "?": "before", ":": "before" } }],
151151
"padded-blocks": 0,
152152
"prefer-const": 0,
153153
"quote-props": 0,

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy