Skip to content

Commit

Permalink
chore(deps): update (#534)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-akait authored Jan 15, 2024
1 parent 3559287 commit b7ad838
Show file tree
Hide file tree
Showing 10 changed files with 8,884 additions and 16,317 deletions.
25,079 changes: 8,822 additions & 16,257 deletions package-lock.json

Large diffs are not rendered by default.

22 changes: 11 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"security": "npm audit --production",
"lint:prettier": "prettier --list-different .",
"lint:js": "eslint --cache .",
"lint:spelling": "cspell \"**/*.*\"",
"lint:spelling": "cspell --quiet \"**/*.*\"",
"lint": "npm-run-all -l -p \"lint:**\"",
"fix:js": "npm run lint:js -- --fix",
"fix:prettier": "npm run lint:prettier -- --write",
Expand All @@ -48,25 +48,25 @@
"@babel/cli": "^7.23.4",
"@babel/core": "^7.23.7",
"@babel/preset-env": "^7.23.7",
"@commitlint/cli": "^17.7.2",
"@commitlint/config-conventional": "^17.7.0",
"@commitlint/cli": "^18.4.4",
"@commitlint/config-conventional": "^18.4.4",
"@webpack-contrib/eslint-config-webpack": "^3.0.0",
"babel-jest": "^29.7.0",
"cross-env": "^7.0.3",
"cspell": "^6.31.2",
"del": "^6.1.1",
"del-cli": "^4.0.1",
"cspell": "^8.3.2",
"del": "^7.1.0",
"del-cli": "^5.1.0",
"eslint": "^8.56.0",
"eslint-config-prettier": "^8.9.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-import": "^2.29.1",
"husky": "^8.0.3",
"jest": "^29.7.0",
"less": "^4.2.0",
"less-plugin-glob": "^2.0.2",
"lint-staged": "^13.2.3",
"memfs": "^3.5.1",
"less-plugin-glob": "^3.0.0",
"lint-staged": "^15.2.0",
"memfs": "^4.6.0",
"npm-run-all": "^4.1.5",
"prettier": "^2.8.8",
"prettier": "^3.2.2",
"standard-version": "^9.3.1",
"strip-ansi": "^7.1.0",
"webpack": "^5.89.0"
Expand Down
4 changes: 3 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ async function lessLoader(source) {

if (!implementation) {
callback(
new Error(`The Less implementation "${options.implementation}" not found`)
new Error(
`The Less implementation "${options.implementation}" not found`,
),
);

return;
Expand Down
2 changes: 1 addition & 1 deletion test/helpers/execute.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default (code) => {
const module = new Module(resource, parentModule);
// eslint-disable-next-line no-underscore-dangle
module.paths = Module._nodeModulePaths(
path.resolve(__dirname, "../fixtures")
path.resolve(__dirname, "../fixtures"),
);
module.filename = resource;

Expand Down
2 changes: 1 addition & 1 deletion test/helpers/getCodeFromBundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function getCodeFromBundle(stats, compiler, asset) {
`${code};\nmodule.exports = lessLoaderExport;`,
{
module: {},
}
},
);

// eslint-disable-next-line no-underscore-dangle
Expand Down
38 changes: 19 additions & 19 deletions test/helpers/getCodeFromLess.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,63 +10,63 @@ const pathMap = {
"fixtures",
"node_modules",
"some",
"css.css"
"css.css",
),
"~some/css.css": path.resolve(
__dirname,
"..",
"fixtures",
"node_modules",
"some",
"css.css"
"css.css",
),
"some/module": path.resolve(
__dirname,
"..",
"fixtures",
"node_modules",
"some",
"module.less"
"module.less",
),
"~some/module": path.resolve(
__dirname,
"..",
"fixtures",
"node_modules",
"some",
"module.less"
"module.less",
),
"some/module.less": path.resolve(
__dirname,
"..",
"fixtures",
"node_modules",
"some",
"module.less"
"module.less",
),
"module.less": path.resolve(
__dirname,
"..",
"fixtures",
"node_modules",
"some",
"module.less"
"module.less",
),
"@scope/css.css": path.resolve(
__dirname,
"..",
"fixtures",
"node_modules",
"@scope",
"css.css"
"css.css",
),
"@scope/module": path.resolve(
__dirname,
"..",
"fixtures",
"node_modules",
"@scope",
"module.less"
"module.less",
),
"~fileAlias": path.resolve(__dirname, "..", "fixtures", "img.less"),
fileAlias: path.resolve(__dirname, "..", "fixtures", "img.less"),
Expand All @@ -75,45 +75,45 @@ const pathMap = {
__dirname,
"..",
"fixtures",
"import-absolute-target.less"
"import-absolute-target.less",
),
"package/style.less": path.resolve(
__dirname,
"..",
"fixtures",
"node_modules",
"package",
"style.less"
"style.less",
),
"/styles/style.less": path.resolve(__dirname, "..", "fixtures", "basic.less"),
"../../some.file": path.resolve(
__dirname,
"..",
"fixtures",
"folder",
"some.file"
"some.file",
),
"package-with-exports": path.resolve(
__dirname,
"..",
"fixtures",
"node_modules",
"package-with-exports",
"style.less"
"style.less",
),
preferAlias: path.resolve(
__dirname,
"..",
"fixtures",
"prefer-relative",
"index.less"
"index.less",
),
"custom-main-files": path.resolve(
__dirname,
"..",
"fixtures",
"custom-main-files",
"custom.less"
"custom.less",
),
"less-package-1/index.less": path.resolve(
__dirname,
Expand All @@ -123,22 +123,22 @@ const pathMap = {
"less-package-2",
"node_modules",
"less-package-1",
"index.less"
"index.less",
),
"less-package-2": path.resolve(
__dirname,
"..",
"fixtures",
"node_modules",
"less-package-2",
"index.less"
"index.less",
),
"./resolve-working-directory-a.less": path.resolve(
__dirname,
"..",
"fixtures",
"resolve-working-directory",
"resolve-working-directory-a.less"
"resolve-working-directory-a.less",
),
"3rd/b.less": path.resolve(__dirname, "..", "fixtures", "3rd", "b.less"),
};
Expand Down Expand Up @@ -184,14 +184,14 @@ async function getCodeFromLess(testId, options = {}, context = {}) {
__dirname,
"..",
"fixtures",
"node_modules/package-with-exports-and-custom-condition/style-1.less"
"node_modules/package-with-exports-and-custom-condition/style-1.less",
);
} else if (context.packageExportsCustomConditionTestVariant === 2) {
pathToFile = path.resolve(
__dirname,
"..",
"fixtures",
"node_modules/package-with-exports-and-custom-condition/style-2.less"
"node_modules/package-with-exports-and-custom-condition/style-2.less",
);
} else {
pathToFile = path.resolve(__dirname, "..", "fixtures", testId);
Expand Down
2 changes: 1 addition & 1 deletion test/helpers/normalizeErrors.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ function removeCWD(str) {

export default (errors) =>
errors.map((error) =>
removeCWD(error.toString().split("\n").slice(0, 2).join("\n"))
removeCWD(error.toString().split("\n").slice(0, 2).join("\n")),
);
2 changes: 1 addition & 1 deletion test/helpers/validateDependencies.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default (dependencies) => {
for (const item of Array.from(dependencies)) {
if (item.includes(illegalSymbol)) {
throw new Error(
`The file path "${item}" should not contain "${illegalSymbol}"`
`The file path "${item}" should not contain "${illegalSymbol}"`,
);
}
}
Expand Down
Loading

0 comments on commit b7ad838

Please sign in to comment.