Skip to content

Commit 0896c7a

Browse files
authored
Infrastructure: Run Prettier on commit of all files (#2614)
* Infrastructure: Run Prettier on commit of all files * Update .prettierignore
1 parent d95c6a4 commit 0896c7a

File tree

13 files changed

+355
-356
lines changed

13 files changed

+355
-356
lines changed

.eslintrc.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
{
2-
"extends": ["eslint:recommended", "plugin:jsdoc/recommended", "plugin:prettier/recommended"],
2+
"extends": [
3+
"eslint:recommended",
4+
"plugin:jsdoc/recommended",
5+
"plugin:prettier/recommended"
6+
],
37
"env": {
48
"browser": true,
59
"es6": true
@@ -50,26 +54,22 @@
5054
}
5155
},
5256
{
53-
"files": [
54-
"**/*.html"
55-
],
56-
"plugins":[
57-
"html"
58-
],
57+
"files": ["**/*.html"],
58+
"plugins": ["html"],
5959
"globals": {
6060
"sourceCode": true
6161
},
6262
"rules": {
6363
"strict": 0,
64-
"no-unused-vars": ["error", { "varsIgnorePattern": "SkipToConfig" }]
64+
"no-unused-vars": ["error", { "varsIgnorePattern": "SkipToConfig" }]
6565
}
6666
},
6767
{
68-
"files": [ "content/shared/js/app.js" ],
68+
"files": ["content/shared/js/app.js"],
6969
"parserOptions": { "ecmaVersion": 11 }
7070
},
7171
{
72-
"files": [ "content/shared/js/specLinks.mjs" ],
72+
"files": ["content/shared/js/specLinks.mjs"],
7373
"parserOptions": { "sourceType": "module" }
7474
}
7575
]

.github/dependabot.yml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
version: 2
22
updates:
3-
- package-ecosystem: npm
4-
directory: "/"
5-
schedule:
6-
interval: monthly
7-
time: "10:00"
8-
open-pull-requests-limit: 99
9-
commit-message:
10-
prefix: "Infrastructure"
11-
- package-ecosystem: github-actions
12-
directory: "/"
13-
schedule:
14-
interval: daily
15-
time: "10:00"
16-
open-pull-requests-limit: 99
17-
commit-message:
18-
prefix: "Infrastructure"
3+
- package-ecosystem: npm
4+
directory: "/"
5+
schedule:
6+
interval: monthly
7+
time: "10:00"
8+
open-pull-requests-limit: 99
9+
commit-message:
10+
prefix: "Infrastructure"
11+
- package-ecosystem: github-actions
12+
directory: "/"
13+
schedule:
14+
interval: daily
15+
time: "10:00"
16+
open-pull-requests-limit: 99
17+
commit-message:
18+
prefix: "Infrastructure"

.github/workflows/coverage-report.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ name: Regression Tests Coverage Report
33
on:
44
pull_request_target:
55
paths:
6-
- "content/**/examples/**"
7-
- "test/**"
8-
- "!content/landmarks/examples/**"
6+
- "content/**/examples/**"
7+
- "test/**"
8+
- "!content/landmarks/examples/**"
99

1010
permissions:
1111
contents: read

.prettierignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,12 @@ common
44
# Vendored theme files
55
bootstrap.css
66
bootstrap-theme.css
7+
8+
# Ignore HTML formatting as the diffs are not great
9+
*.html
10+
11+
# Ignore third party JavaScript
12+
**/*.min.js
13+
content/patterns/landmarks/examples/js/visua11y.js
14+
content/shared/js/highlight.pack.js
15+
content/shared/js/skipto.js

.prettierrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@
66
"options": {
77
"singleQuote": false
88
}
9+
},
10+
{
11+
"files": ["**/*.yml"],
12+
"options": {
13+
"singleQuote": false
14+
}
915
}
1016
]
1117
}

.stylelintrc

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,14 @@
44
"media-feature-name-no-unknown": [
55
true,
66
{
7-
"ignoreMediaFeatureNames": [
8-
"forced-colors"
9-
]
10-
},
7+
"ignoreMediaFeatureNames": ["forced-colors"]
8+
}
119
],
1210
"font-family-no-missing-generic-family-keyword": [
1311
true,
1412
{
15-
"ignoreFontFamilies": [
16-
"Font Awesome 5 Free"
17-
]
18-
},
13+
"ignoreFontFamilies": ["Font Awesome 5 Free"]
14+
}
1915
],
2016
"selector-class-pattern": null,
2117
"selector-id-pattern": null

.vscode/extensions.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
{
2-
"recommendations": [
3-
"streetsidesoftware.code-spell-checker"
4-
]
2+
"recommendations": ["streetsidesoftware.code-spell-checker"]
53
}

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Contributions to this repository are intended to become part of Technical Report
22
[Software and Document License](https://www.w3.org/Consortium/Legal/copyright-software). To make substantive contributions to documents, you must either participate
33
in the relevant W3C Working Group or transfer copyright to W3C.
44

5-
If you are not the sole contributor to a contribution (pull request), please identify all
5+
If you are not the sole contributor to a contribution (pull request), please identify all
66
contributors in the pull request comment.
77

88
To add a contributor (other than yourself, that's automatic), mark them one per line as follows:
@@ -17,5 +17,5 @@ If you added a contributor by mistake, you can remove them in a comment with:
1717
-@github_username
1818
```
1919

20-
If you are making a pull request on behalf of someone else but you had no part in designing the
20+
If you are making a pull request on behalf of someone else but you had no part in designing the
2121
feature, you can remove yourself with the above syntax.

LICENSE.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
All documents in this Repository are licensed by contributors
2-
under the
2+
under the
33
[W3C Software and Document License](https://www.w3.org/Consortium/Legal/copyright-software).
4-

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@
22

33
This repository maintains the WAI-ARIA Authoring Practices Guide (APG).
44

5-
* Published at: [w3.org/wai/aria/apg](https://www.w3.org/wai/aria/apg/)
6-
* Developed by the [Authoring Practices Task Force](https://www.w3.org/WAI/ARIA/task-forces/practices/) of the [ARIA Working Group](http://www.w3.org/WAI/ARIA/).
7-
* Staff contact: [Michael Cooper](http://www.w3.org/People/cooper/).
5+
- Published at: [w3.org/wai/aria/apg](https://www.w3.org/wai/aria/apg/)
6+
- Developed by the [Authoring Practices Task Force](https://www.w3.org/WAI/ARIA/task-forces/practices/) of the [ARIA Working Group](http://www.w3.org/WAI/ARIA/).
7+
- Staff contact: [Michael Cooper](http://www.w3.org/People/cooper/).
88

99
Please do not provide commit access to this repository without coordination.
1010

1111
## How the work is organized
1212

13-
* Work is planned and prioritized in our [milestones](https://github.com/w3c/aria-practices/milestones?direction=asc&sort=due_date&state=open). Each milestone corresponds to a working draft or release published to w3.org.
14-
* Work is organized by topic in our [projects](https://github.com/w3c/aria-practices/projects). Each project corresponds to a type of design pattern or section of guidance.
15-
* The [scope of work and roadmap](https://github.com/w3c/aria-practices/wiki/Scope) are described in the project wiki.
13+
- Work is planned and prioritized in our [milestones](https://github.com/w3c/aria-practices/milestones?direction=asc&sort=due_date&state=open). Each milestone corresponds to a working draft or release published to w3.org.
14+
- Work is organized by topic in our [projects](https://github.com/w3c/aria-practices/projects). Each project corresponds to a type of design pattern or section of guidance.
15+
- The [scope of work and roadmap](https://github.com/w3c/aria-practices/wiki/Scope) are described in the project wiki.
1616

1717
## Contributing
1818

@@ -109,9 +109,9 @@ contains additional useful editorial guidance.
109109
110110
## ARIA Roles, Properties and States Referenced in Guidance and Examples(Also known as APG Coverage Report)
111111
112-
[APG Coverage Report](https://raw.githack.com/w3c/aria-practices/main/coverage/index.html) includes information on number of guidance and example references in the WAI-ARIA Authoring Practices for each ARIA role, property and state.
112+
[APG Coverage Report](https://raw.githack.com/w3c/aria-practices/main/coverage/index.html) includes information on number of guidance and example references in the WAI-ARIA Authoring Practices for each ARIA role, property and state.
113113
114-
As of January 11, 2022, APG has examples of
114+
As of January 11, 2022, APG has examples of
115115
116116
1. CSV Files of Role, Properties and States Coverage
117117
2. Roles with no Guidance or Examples (29)

0 commit comments

Comments
 (0)