Skip to content

Commit

Permalink
chore: run prettier (#1753)
Browse files Browse the repository at this point in the history
* chore: add .github dir to prettier

* chore: run prettier
  • Loading branch information
jeeyyy authored and WilcoFiers committed Aug 7, 2019
1 parent e91c25f commit deed0f1
Show file tree
Hide file tree
Showing 5 changed files with 73 additions and 27 deletions.
2 changes: 1 addition & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@

<< Describe the changes >>

Closes issue:

## Reviewer checks

**Required fields, to be filled out by PR reviewer(s)**

- [ ] Follows the commit message policy, appropriate for next version
- [ ] Code is reviewed for security
4 changes: 1 addition & 3 deletions build/tasks/aria-supported.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,7 @@ module.exports = function(grunt) {
(footnote, index) => `[^${index + 1}]: ${footnote}`
);

const content = `${
headings.main
}\n\n## Attributes\n\n${attributesTableMarkdown}\n\n${footnotes}`;
const content = `${headings.main}\n\n## Attributes\n\n${attributesTableMarkdown}\n\n${footnotes}`;

const destFile = this.data.destFile;
// Format the content so Prettier doesn't create a diff after running.
Expand Down
4 changes: 1 addition & 3 deletions lib/core/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,7 @@ var commons;
function SupportError(error) {
this.name = 'SupportError';
this.cause = error.cause;
this.message = `\`${
error.cause
}\` - feature unsupported in your environment.`;
this.message = `\`${error.cause}\` - feature unsupported in your environment.`;
if (error.ruleId) {
this.ruleId = error.ruleId;
this.message += ` Skipping ${this.ruleId} rule.`;
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
"rule-gen": "node build/rule-generator",
"next-release": "standard-version --scripts.prebump=./build/next-version.js --skip.commit=true --skip.tag=true",
"sri-update": "grunt build && node build/sri-update && git add sri-history.json",
"fmt": "prettier --write *.{json,md,js} **/*.ts './{build,doc,lib,test}/**/*.{json,md,js,ts,html}'"
"fmt": "prettier --write *.{json,md,js} **/*.ts './{.github,build,doc,lib,test}/**/*.{json,md,js,ts,html}'"
},
"devDependencies": {
"@babel/core": "^7.5.4",
Expand Down Expand Up @@ -122,7 +122,7 @@
"revalidator": "~0.3.1",
"selenium-webdriver": "~3.6.0",
"sri-toolbox": "^0.2.0",
"standard-version": "^7.0.0",
"standard-version": "^7.0.0",
"typescript": "^3.5.3",
"uglify-js": "^3.4.4",
"weakmap-polyfill": "^2.0.0"
Expand Down
86 changes: 68 additions & 18 deletions test/integration/rules/landmark-unique/landmark-unique-fail.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
<main id="violation-main-1">First main</main>
<iframe src="landmark-unique/frame.html" title="iframe with main" id="frame"></iframe>
<iframe
src="landmark-unique/frame.html"
title="iframe with main"
id="frame"
></iframe>

<header id="violation-header-1">First header</header>
<header id="violation-header-2">Second header</header>
Expand All @@ -9,45 +13,91 @@

<div id="form-label-1">form-with-label</div>
<div id="form-label-2">form-with-label</div>
<form id="violation-form-aria-labelledby-1" aria-labelledby="form-label-1"></form>
<form id="violation-form-aria-labelledby-2" aria-labelledby="form-label-2"></form>
<form
id="violation-form-aria-labelledby-1"
aria-labelledby="form-label-1"
></form>
<form
id="violation-form-aria-labelledby-2"
aria-labelledby="form-label-2"
></form>

<form id="violation-aside-aria-label-1" aria-label="aside-label"></form>
<form id="violation-aside-aria-label-2" aria-label="aside-label"></form>

<div id="aside-label-1">aside-with-label</div>
<div id="aside-label-2">aside-with-label</div>
<form id="violation-aside-aria-labelledby-1" aria-labelledby="aside-label-1"></form>
<form id="violation-aside-aria-labelledby-2" aria-labelledby="aside-label-2"></form>
<form
id="violation-aside-aria-labelledby-1"
aria-labelledby="aside-label-1"
></form>
<form
id="violation-aside-aria-labelledby-2"
aria-labelledby="aside-label-2"
></form>

<footer id="violation-footer-1">First footer</footer>
<footer id="violation-footer-2">Second footer</footer>

<div id="form-label-3">iframe-form-with-label</div>
<div id="violation-form-through-iframe-1" role="form" aria-labelledby="form-label-3"></div>
<div
id="violation-form-through-iframe-1"
role="form"
aria-labelledby="form-label-3"
></div>

<div id="violation-nav-through-iframe-1" role="navigation"></div>

<div id="violation-role-banner" aria-label="duplicate label" role="banner"></div>
<div id="violation-role-banner-2" aria-label="duplicate label" role="banner"></div>
<div
id="violation-role-banner"
aria-label="duplicate label"
role="banner"
></div>
<div
id="violation-role-banner-2"
aria-label="duplicate label"
role="banner"
></div>

<div id="violation-role-complementary" role="complementary"></div>
<div id="violation-role-complementary-2" role="complementary"></div>

<div id="violation-role-contentinfo" aria-label="duplicate label for contentinfo" role="contentinfo"></div>
<div id="violation-role-contentinfo-2" aria-label="duplicate label for contentinfo" role="contentinfo"></div>

<div id="violation-role-main" aria-label="duplicate label for main" role="main"></div>
<div id="violation-role-main-2" aria-label="duplicate label for main" role="main"></div>
<div
id="violation-role-contentinfo"
aria-label="duplicate label for contentinfo"
role="contentinfo"
></div>
<div
id="violation-role-contentinfo-2"
aria-label="duplicate label for contentinfo"
role="contentinfo"
></div>

<div
id="violation-role-main"
aria-label="duplicate label for main"
role="main"
></div>
<div
id="violation-role-main-2"
aria-label="duplicate label for main"
role="main"
></div>

<div id="violation-role-region" role="region"></div>
<div id="violation-role-region-2" role="region"></div>

<div id="violation-role-search" role="search"></div>
<div id="violation-role-search-2" role="search"></div>

<nav id="violation-nav" aria-label="duplicate label for nav"></nav>
<nav id="violation-nav-2" aria-label="duplicate label for nav"></nav>

<section id="violation-section" aria-label="duplicate label for section"></section>
<section id="violation-section-2" aria-label="duplicate label for section"></section>
<nav id="violation-nav" aria-label="duplicate label for nav"></nav>
<nav id="violation-nav-2" aria-label="duplicate label for nav"></nav>

<section
id="violation-section"
aria-label="duplicate label for section"
></section>
<section
id="violation-section-2"
aria-label="duplicate label for section"
></section>

0 comments on commit deed0f1

Please sign in to comment.