Skip to content

Commit a42215a

Browse files
committed
lint: split variable declarations
1 parent 8787268 commit a42215a

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.eslintrc.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@ rules:
1212
no-mixed-spaces-and-tabs: error
1313
no-param-reassign: error
1414
no-trailing-spaces: error
15+
one-var: ["error", { "initialized": "never" }]

lib/language.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ function parseLanguage(str, i) {
5454
var match = simpleLanguageRegExp.exec(str);
5555
if (!match) return null;
5656

57-
var prefix = match[1],
58-
suffix = match[2],
59-
full = prefix;
57+
var prefix = match[1]
58+
var suffix = match[2]
59+
var full = prefix
6060

6161
if (suffix) full += "-" + suffix;
6262

0 commit comments

Comments
 (0)