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: Run Prettier on commit of all files #2614

Merged
merged 2 commits into from
Feb 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
{
"extends": ["eslint:recommended", "plugin:jsdoc/recommended", "plugin:prettier/recommended"],
"extends": [
"eslint:recommended",
"plugin:jsdoc/recommended",
"plugin:prettier/recommended"
],
"env": {
"browser": true,
"es6": true
Expand Down Expand Up @@ -50,26 +54,22 @@
}
},
{
"files": [
"**/*.html"
],
"plugins":[
"html"
],
"files": ["**/*.html"],
"plugins": ["html"],
"globals": {
"sourceCode": true
},
"rules": {
"strict": 0,
"no-unused-vars": ["error", { "varsIgnorePattern": "SkipToConfig" }]
"no-unused-vars": ["error", { "varsIgnorePattern": "SkipToConfig" }]
}
},
{
"files": [ "content/shared/js/app.js" ],
"files": ["content/shared/js/app.js"],
"parserOptions": { "ecmaVersion": 11 }
},
{
"files": [ "content/shared/js/specLinks.mjs" ],
"files": ["content/shared/js/specLinks.mjs"],
"parserOptions": { "sourceType": "module" }
}
]
Expand Down
32 changes: 16 additions & 16 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
version: 2
updates:
- package-ecosystem: npm
directory: "/"
schedule:
interval: monthly
time: "10:00"
open-pull-requests-limit: 99
commit-message:
prefix: "Infrastructure"
- package-ecosystem: github-actions
directory: "/"
schedule:
interval: daily
time: "10:00"
open-pull-requests-limit: 99
commit-message:
prefix: "Infrastructure"
- package-ecosystem: npm
directory: "/"
schedule:
interval: monthly
time: "10:00"
open-pull-requests-limit: 99
commit-message:
prefix: "Infrastructure"
- package-ecosystem: github-actions
directory: "/"
schedule:
interval: daily
time: "10:00"
open-pull-requests-limit: 99
commit-message:
prefix: "Infrastructure"
6 changes: 3 additions & 3 deletions .github/workflows/coverage-report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ name: Regression Tests Coverage Report
on:
pull_request_target:
paths:
- "content/**/examples/**"
- "test/**"
- "!content/landmarks/examples/**"
- "content/**/examples/**"
- "test/**"
- "!content/landmarks/examples/**"

permissions:
contents: read
Expand Down
9 changes: 9 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,12 @@ common
# Vendored theme files
bootstrap.css
bootstrap-theme.css

# Ignore HTML formatting as the diffs are not great
*.html

# Ignore third party JavaScript
**/*.min.js
content/patterns/landmarks/examples/js/visua11y.js
content/shared/js/highlight.pack.js
content/shared/js/skipto.js
6 changes: 6 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@
"options": {
"singleQuote": false
}
},
{
"files": ["**/*.yml"],
"options": {
"singleQuote": false
}
}
]
}
12 changes: 4 additions & 8 deletions .stylelintrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,14 @@
"media-feature-name-no-unknown": [
true,
{
"ignoreMediaFeatureNames": [
"forced-colors"
]
},
"ignoreMediaFeatureNames": ["forced-colors"]
}
],
"font-family-no-missing-generic-family-keyword": [
true,
{
"ignoreFontFamilies": [
"Font Awesome 5 Free"
]
},
"ignoreFontFamilies": ["Font Awesome 5 Free"]
}
],
"selector-class-pattern": null,
"selector-id-pattern": null
Expand Down
4 changes: 1 addition & 3 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
{
"recommendations": [
"streetsidesoftware.code-spell-checker"
]
"recommendations": ["streetsidesoftware.code-spell-checker"]
}
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Contributions to this repository are intended to become part of Technical Report
[Software and Document License](https://www.w3.org/Consortium/Legal/copyright-software). To make substantive contributions to documents, you must either participate
in the relevant W3C Working Group or transfer copyright to W3C.

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

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

If you are making a pull request on behalf of someone else but you had no part in designing the
If you are making a pull request on behalf of someone else but you had no part in designing the
feature, you can remove yourself with the above syntax.
3 changes: 1 addition & 2 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
All documents in this Repository are licensed by contributors
under the
under the
[W3C Software and Document License](https://www.w3.org/Consortium/Legal/copyright-software).

16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@

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

* Published at: [w3.org/wai/aria/apg](https://www.w3.org/wai/aria/apg/)
* 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/).
* Staff contact: [Michael Cooper](http://www.w3.org/People/cooper/).
- Published at: [w3.org/wai/aria/apg](https://www.w3.org/wai/aria/apg/)
- 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/).
- Staff contact: [Michael Cooper](http://www.w3.org/People/cooper/).

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

## How the work is organized

* 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.
* 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.
* The [scope of work and roadmap](https://github.com/w3c/aria-practices/wiki/Scope) are described in the project wiki.
- 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.
- 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.
- The [scope of work and roadmap](https://github.com/w3c/aria-practices/wiki/Scope) are described in the project wiki.

## Contributing

Expand Down Expand Up @@ -109,9 +109,9 @@ contains additional useful editorial guidance.

## ARIA Roles, Properties and States Referenced in Guidance and Examples(Also known as APG Coverage Report)

[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.
[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.

As of January 11, 2022, APG has examples of
As of January 11, 2022, APG has examples of

1. CSV Files of Role, Properties and States Coverage
2. Roles with no Guidance or Examples (29)
Expand Down
Loading