Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Infrastructure: Bump eslint from 8.52.0 to 8.57.0, eslint-plugin-jsdoc from 39.3.3 to 48.2.3, eslint-plugin-html from 6.2.0 to 8.1.1, eslint-config-prettier from 8.5.0 to 9.1.0, eslint-plugin-prettier from 4.2.1 to 5.1.3, eslint-plugin-ava from 13.2.0 to 14.0.0, and prettier from 2.7.1 to 3.2.5 #2961

Merged
merged 8 commits into from
May 1, 2024
Prev Previous commit
Next Next commit
Upgrade prettier
  • Loading branch information
evmiguel committed Mar 14, 2024
commit da504f9983092ebfa31c3a551442ecda76de079a
1 change: 1 addition & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"singleQuote": true,
"trailingComma": "es5",
"overrides": [
{
"files": ["**/*.css"],
Expand Down
4 changes: 3 additions & 1 deletion content/patterns/alertdialog/examples/css/alertdialog.css
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@

min-width: calc(640px - (15px * 2)); /* == breakpoint - left+right margin */
min-height: auto;
box-shadow: 0 19px 38px rgb(0 0 0 / 12%), 0 15px 12px rgb(0 0 0 / 22%);
box-shadow:
0 19px 38px rgb(0 0 0 / 12%),
0 15px 12px rgb(0 0 0 / 22%);
}
}

Expand Down
4 changes: 3 additions & 1 deletion content/patterns/dialog-modal/examples/css/dialog.css
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@

min-width: calc(640px - (15px * 2)); /* == breakpoint - left+right margin */
min-height: auto;
box-shadow: 0 19px 38px rgb(0 0 0 / 12%), 0 15px 12px rgb(0 0 0 / 22%);
box-shadow:
0 19px 38px rgb(0 0 0 / 12%),
0 15px 12px rgb(0 0 0 / 22%);
}
}

Expand Down
107 changes: 80 additions & 27 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,15 @@
"eslint-plugin-ava": "^13.2.0",
"eslint-plugin-html": "^8.0.0",
"eslint-plugin-jsdoc": "^48.2.0",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-prettier": "^5.0.0",
"geckodriver": "^3.2.0",
"glob": "^8.1.0",
"htmlhint": "^1.1.4",
"htmlparser2": "^8.0.1",
"husky": "^8.0.3",
"lint-staged": "^13.1.1",
"node-fetch": "^2.6.7",
"prettier": "^2.7.1",
"prettier": "^3.2.5",
"selenium-webdriver": "^4.14.0",
"stylelint": "^15.1.0",
"stylelint-config-standard": "^30.0.1",
Expand Down
15 changes: 5 additions & 10 deletions scripts/coverage-report.js
Original file line number Diff line number Diff line change
Expand Up @@ -870,8 +870,7 @@ let PropsWithNoExamples = sortedPropertiesAndStates.reduce(function (
}

return `${set}`;
},
'');
}, '');

$('#props_with_no_examples_ul').html(PropsWithNoExamples);
$('.props_with_no_examples_count').html(countNoExamples.toString());
Expand All @@ -898,8 +897,7 @@ let PropsWithOneExample = sortedPropertiesAndStates.reduce(function (
}

return `${set}`;
},
'');
}, '');

$('#props_with_one_example_tbody').html(PropsWithOneExample);
$('.props_with_one_example_count').html(countOneExample.toString());
Expand All @@ -923,8 +921,7 @@ let PropsWithMoreThanOneExample = sortedPropertiesAndStates.reduce(function (
}

return `${set}`;
},
'');
}, '');

$('#props_with_more_than_one_tbody').html(PropsWithMoreThanOneExample);
$('.props_with_more_than_one_examples_count').html(
Expand Down Expand Up @@ -1005,8 +1002,7 @@ let IndexOfExampleCodingPractices = indexOfExamples.reduce(function (
<td>${example.documentationAttributes.length}</td>
<td>${checkDocumentation}</td>
</tr>`;
},
'');
}, '');

let IndexOfExampleGraphics = indexOfExamples.reduce(function (set, example) {
let count = example.svgHTML;
Expand Down Expand Up @@ -1063,8 +1059,7 @@ let IndexOfExampleMousePointer = indexOfExamples.reduce(function (
<td>${htmlYesOrNo(mouseCount)}</td>
<td>${htmlYesOrNo(pointerCount)}</td>
</tr>`;
},
'');
}, '');

let countClass = indexOfExamples.reduce(function (set, example) {
return set + (example.classJS ? 1 : 0);
Expand Down
10 changes: 4 additions & 6 deletions test/tests/accordion_accordion.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,8 @@ ariaTest(
for (let expandIndex of [1, 2]) {
await buttons[expandIndex].sendKeys(Key.ENTER);
const panelDisplay = await panels[expandIndex].isDisplayed();
const buttonAria = await buttons[expandIndex].getAttribute(
'aria-expanded'
);
const buttonAria =
await buttons[expandIndex].getAttribute('aria-expanded');

t.true(
panelDisplay,
Expand Down Expand Up @@ -189,9 +188,8 @@ ariaTest(
for (let expandIndex of [1, 2]) {
await buttons[expandIndex].sendKeys(Key.SPACE);
const panelDisplay = await panels[expandIndex].isDisplayed();
const buttonAria = await buttons[expandIndex].getAttribute(
'aria-expanded'
);
const buttonAria =
await buttons[expandIndex].getAttribute('aria-expanded');

t.true(
panelDisplay,
Expand Down
5 changes: 2 additions & 3 deletions test/tests/treeview_treeview-navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -503,9 +503,8 @@ ariaTest(
const isExpandable = await topLevelTreeitems[i].getAttribute('aria-owns');

if (isExpandable) {
const expandedState = await topLevelTreeitems[i].getAttribute(
'aria-expanded'
);
const expandedState =
await topLevelTreeitems[i].getAttribute('aria-expanded');

t.is(
expandedState,
Expand Down
5 changes: 2 additions & 3 deletions test/util/assertAriaDescribedby.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,8 @@ module.exports = async function assertAriaDescribedby(t, elementSelector) {
'"aria-describedby" attribute should exist on element: ' + elementSelector
);

let descriptionValue = await elements[index].getAttribute(
'aria-describedby'
);
let descriptionValue =
await elements[index].getAttribute('aria-describedby');

assert.ok(
descriptionValue,
Expand Down
Loading