Update dependency eslint-plugin-unicorn to v72 (#19633)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: fisker Cheung <lionkay@gmail.com> # Conflicts: # package.json # yarn.lock
This commit is contained in:
1 parent
b74dd53076
commit
c03ab4e71c
5 files changed
+6
-4
No files matched your search
@@ -348,8 +348,10 @@ const configs = [
|
||||
],
|
||||
"unicorn/prefer-query-selector": "off",
|
||||
"unicorn/prefer-short-arrow-method": "off",
|
||||
"unicorn/prefer-simple-condition-first": "off",
|
||||
"unicorn/prefer-simplified-conditions": "off",
|
||||
"unicorn/prefer-ternary": "off",
|
||||
"unicorn/prefer-then-catch": "off",
|
||||
"unicorn/prefer-unicode-code-point-escapes": "off",
|
||||
"unicorn/relative-url-style": "off",
|
||||
"unicorn/require-array-sort-compare": "off",
|
||||
|
||||
@@ -9,7 +9,7 @@ import { createIdentifier, isIdentifier } from "./utilities.js";
|
||||
* @returns {boolean}
|
||||
*/
|
||||
function isFunctionCall(node, { function: name, argumentsLength }) {
|
||||
const [objectName, methodName] = name.split(".");
|
||||
const [objectName, methodName] = name.split(".", 2);
|
||||
|
||||
return (
|
||||
node.type === "CallExpression" &&
|
||||
|
||||
@@ -447,7 +447,7 @@ function genericPrint(path, options, print) {
|
||||
return [leading, node.value, path.isLast ? "" : " "];
|
||||
}
|
||||
|
||||
const leading = node.value.trim().startsWith("(") ? line : "";
|
||||
const leading = node.value.trimStart().startsWith("(") ? line : "";
|
||||
const value =
|
||||
adjustNumbers(adjustStrings(node.value.trim(), options)) || line;
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ function isScssNestedPropertyNode(node, options) {
|
||||
return node.selector
|
||||
.replace(/\/\*.*?\*\//, "")
|
||||
.replace(/\/\/.*\n/, "")
|
||||
.trim()
|
||||
.trimEnd()
|
||||
.endsWith(":");
|
||||
}
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ function createParseError(error) {
|
||||
}
|
||||
|
||||
const { line, column } = loc;
|
||||
let [message] = error.message.split("\n");
|
||||
let [message] = error.message.split("\n", 1);
|
||||
|
||||
const suffix = ` (${line}:${column})`;
|
||||
if (message.endsWith(suffix)) {
|
||||
|
||||
Reference in new issue
Block a user