Skip to content

Commit

Permalink
style: apply style fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
gajus committed Oct 26, 2021
1 parent e703984 commit e55e97e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions src/bin/checkTests.js
Expand Up @@ -39,8 +39,8 @@ const getTestIndexRules = () => {

/**
* Performed checks:
* - file `/tests/rules/assertions/<rule>.js` exists
* - rule is included in `reportingRules` variable in `/tests/rules/index.js`
* - file `/tests/rules/assertions/<rule>.js` exists
* - rule is included in `reportingRules` variable in `/tests/rules/index.js`
*/
const checkTests = (rulesNames) => {
const testIndexRules = getTestIndexRules();
Expand Down
2 changes: 1 addition & 1 deletion src/utilities/fuzzyStringMatch.js
Expand Up @@ -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]];
Expand Down

0 comments on commit e55e97e

Please sign in to comment.