Skip to content

Commit

Permalink
Packages: Add eslint:fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rxaviers committed Aug 5, 2020
1 parent a642bd2 commit 69ab42e
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 6 deletions.
4 changes: 2 additions & 2 deletions build/compare-size.js
Original file line number Diff line number Diff line change
Expand Up @@ -260,8 +260,8 @@ function compareSizes(task) {
// Obtain the current branch and continue...
helpers.git_status(function(err, status) {
var prefixes = compressors ? [""].concat(Object.keys(compressors)) : [""],
commonHeader = prefixes.map(
(label, i) => (i === 0 && compressors ? "raw" : label)
commonHeader = prefixes.map((label, i) =>
i === 0 && compressors ? "raw" : label
);

const tableOptions = {
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
"build:all": "npm run build:dist && npm run build:esm",
"validate": "npm run compare_size && npm run dco",
"lint": "eslint src test build",
"lint:fix": "eslint --fix src test build",
"prettier": "prettier --write '{src,test,build}/**/*.js'",
"compare_size": "node build/compare-size.js",
"dco": "node build/dco.js",
Expand Down
10 changes: 8 additions & 2 deletions src/core/remove_likely_subtags.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,14 @@ export default function(Cldr, cldr, maxLanguageId) {
matchFound = arraySome(
[
[[language, "Zzzz", "ZZ"], [language]],
[[language, "Zzzz", territory], [language, territory]],
[[language, script, "ZZ"], [language, script]]
[
[language, "Zzzz", territory],
[language, territory]
],
[
[language, script, "ZZ"],
[language, script]
]
],
function(test) {
var result = coreLikelySubtags(Cldr, cldr, test[0]);
Expand Down
4 changes: 2 additions & 2 deletions src/item/lookup.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import jsonMerge from "../util/json/merge";

var lookup;

export default (lookup = function(Cldr, locale, path, attributes, childLocale) {
export default lookup = function(Cldr, locale, path, attributes, childLocale) {
var normalizedPath, parent, value;

// 1: Finish recursion
Expand Down Expand Up @@ -47,4 +47,4 @@ export default (lookup = function(Cldr, locale, path, attributes, childLocale) {
}

return value;
});
};

0 comments on commit 69ab42e

Please sign in to comment.