Skip to content

Commit

Permalink
chore(deps): update (#399)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-akait committed Dec 23, 2020
1 parent 3d1abb7 commit 4e91333
Show file tree
Hide file tree
Showing 8 changed files with 597 additions and 765 deletions.
1,304 changes: 572 additions & 732 deletions package-lock.json

Large diffs are not rendered by default.

24 changes: 12 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,31 +47,31 @@
"schema-utils": "^3.0.0"
},
"devDependencies": {
"@babel/cli": "^7.12.1",
"@babel/core": "^7.12.3",
"@babel/preset-env": "^7.12.1",
"@babel/cli": "^7.12.10",
"@babel/core": "^7.12.10",
"@babel/preset-env": "^7.12.11",
"@commitlint/cli": "^11.0.0",
"@commitlint/config-conventional": "^11.0.0",
"@webpack-contrib/defaults": "^6.3.0",
"@webpack-contrib/eslint-config-webpack": "^3.0.0",
"babel-jest": "^26.5.2",
"cross-env": "^7.0.2",
"babel-jest": "^26.6.3",
"cross-env": "^7.0.3",
"del": "^6.0.0",
"del-cli": "^3.0.1",
"eslint": "^7.13.0",
"eslint-config-prettier": "^6.15.0",
"eslint": "^7.16.0",
"eslint-config-prettier": "^7.1.0",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-prettier": "^3.1.4",
"husky": "^4.3.0",
"eslint-plugin-prettier": "^3.3.0",
"husky": "^4.3.6",
"jest": "^26.6.3",
"less": "^4.0.0",
"lint-staged": "^10.5.1",
"lint-staged": "^10.5.3",
"memfs": "^3.2.0",
"npm-run-all": "^4.1.5",
"prettier": "^2.1.2",
"prettier": "^2.2.1",
"standard-version": "^9.0.0",
"strip-ansi": "^6.0.0",
"webpack": "^5.4.0"
"webpack": "^5.11.0"
},
"keywords": [
"webpack",
Expand Down
8 changes: 2 additions & 6 deletions src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,7 @@ function createWebpackLessPlugin(loaderContext) {
}

return resolve(context, possibleRequests[0])
.then((result) => {
return result;
})
.then((result) => result)
.catch((error) => {
const [, ...tailPossibleRequests] = possibleRequests;

Expand Down Expand Up @@ -198,9 +196,7 @@ function normalizeSourceMap(map) {

// `less` returns POSIX paths, that's why we need to transform them back to native paths.
// eslint-disable-next-line no-param-reassign
newMap.sources = newMap.sources.map((source) => {
return path.normalize(source);
});
newMap.sources = newMap.sources.map((source) => path.normalize(source));

return newMap;
}
Expand Down
5 changes: 2 additions & 3 deletions test/helpers/compile.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export default (compiler) => {
return new Promise((resolve, reject) => {
export default (compiler) =>
new Promise((resolve, reject) => {
compiler.run((error, stats) => {
if (error) {
return reject(error);
Expand All @@ -8,4 +8,3 @@ export default (compiler) => {
return resolve(stats);
});
});
};
4 changes: 1 addition & 3 deletions test/helpers/getErrors.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import normalizeErrors from "./normalizeErrors";

export default (stats) => {
return normalizeErrors(stats.compilation.errors.sort());
};
export default (stats) => normalizeErrors(stats.compilation.errors.sort());
4 changes: 1 addition & 3 deletions test/helpers/getWarnings.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import normalizeErrors from "./normalizeErrors";

export default (stats) => {
return normalizeErrors(stats.compilation.warnings.sort());
};
export default (stats) => normalizeErrors(stats.compilation.warnings.sort());
5 changes: 2 additions & 3 deletions test/helpers/normalizeErrors.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ function removeCWD(str) {
.replace(new RegExp(cwd, "g"), "");
}

export default (errors) => {
return errors.map((error) =>
export default (errors) =>
errors.map((error) =>
removeCWD(error.toString().split("\n").slice(0, 2).join("\n"))
);
};
8 changes: 5 additions & 3 deletions test/validate-options.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@ describe("validate options", () => {
lessOptions: {
success: [
{ strictMath: true },
() => ({
strictMath: true,
}),
() => {
return {
strictMath: true,
};
},
],
failure: [1, true, false, "test", []],
},
Expand Down

0 comments on commit 4e91333

Please sign in to comment.