From e55e97ee3f694d561ee19e8223f7bf4ea6ad96f6 Mon Sep 17 00:00:00 2001 From: Gajus Kuizinas Date: Tue, 26 Oct 2021 03:56:23 -0500 Subject: [PATCH] style: apply style fixes --- package.json | 2 +- src/bin/checkTests.js | 4 ++-- src/utilities/fuzzyStringMatch.js | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 79870de7..29d9745c 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,7 @@ "ajv": "^8.6.3", "babel-plugin-add-module-exports": "^1.0.4", "eslint": "^8.1.0", - "eslint-config-canonical": "^32.10.0", + "eslint-config-canonical": "^32.12.0", "eslint-plugin-eslint-plugin": "^4.0.2", "gitdown": "^3.1.4", "glob": "^7.2.0", diff --git a/src/bin/checkTests.js b/src/bin/checkTests.js index 8665eea7..766906f7 100644 --- a/src/bin/checkTests.js +++ b/src/bin/checkTests.js @@ -39,8 +39,8 @@ const getTestIndexRules = () => { /** * Performed checks: - * - file `/tests/rules/assertions/.js` exists - * - rule is included in `reportingRules` variable in `/tests/rules/index.js` + * - file `/tests/rules/assertions/.js` exists + * - rule is included in `reportingRules` variable in `/tests/rules/index.js` */ const checkTests = (rulesNames) => { const testIndexRules = getTestIndexRules(); diff --git a/src/utilities/fuzzyStringMatch.js b/src/utilities/fuzzyStringMatch.js index d90cf199..b702ae37 100644 --- a/src/utilities/fuzzyStringMatch.js +++ b/src/utilities/fuzzyStringMatch.js @@ -6,7 +6,7 @@ const arrayPairs = (array) => { let ii = 0; const length = array.length - 1; let letter = array[0]; - const pairs = new Array(length < 0 ? 0 : length); + const pairs = Array.from({length: length < 0 ? 0 : length}); while (ii < length) { pairs[ii] = [letter, letter = array[++ii]];