Skip to content

Commit

Permalink
Merge branch 'main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
aubreyquinn authored Sep 27, 2024
2 parents 7c6493a + 754c2d1 commit 6f52523
Show file tree
Hide file tree
Showing 102 changed files with 642 additions and 2,362 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/release-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ jobs:
with:
node-version: 16
- run: npm ci
- run: npm run build
- run: npm test

publish-gpr:
Expand All @@ -28,6 +29,7 @@ jobs:
node-version: 16
registry-url: https://npm.pkg.github.com/
- run: npm ci
- run: npm run build
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
node_modules
node_modules
dist/
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
npm run build
npm test
5 changes: 3 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,10 @@ or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any addi

- Install [Visual Studio Code](https://code.visualstudio.com/).

- Install [Node.js](https://nodejs.org/en/), with [nvm](https://github.com/nvm-sh/nvm).
- Install [Node.js](https://nodejs.org/en/), with [nvm](https://github.com/nvm-sh/nvm). Please use node version 16.

- [Fork the repo and clone your fork](https://docs.github.com/en/get-started/quickstart/fork-a-repo)
- **Internal collaborators:** Please send Aubrey Quinn your email address. After getting `Write` access, you can create branches and directly submit pull requests against this repo.
- **External collaborators:** [Fork the repo and clone your fork](https://docs.github.com/en/get-started/quickstart/fork-a-repo)

- Install the dependencies

Expand Down
14 changes: 7 additions & 7 deletions COVERAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ We currently cover the following components:
- [x] AvatarGroup
- [] Badge
- [x] Badge
- [] CounterBadge
- [x] CounterBadge
- [N/A] PresenceBadge
- [x] Breadcrumb
- [x] Button
Expand Down Expand Up @@ -37,16 +37,16 @@ We currently cover the following components:
- [x] Input
- [x] Label
- [x] Link
- [] Menu
- [] Menu
- [] MenuList
- [] MessageBar
- [x] Menu
- [x] Menu
- [x] MenuList
- [x] MessageBar
- [N/A] Overflow
- [] Persona
- [] Popover
- [N/A] Portal
- [x] ProgressBar
- [] Rating
- [x] Rating
- [] RatingDisplay
- [x] Radio
- [x] RadioGroup
Expand All @@ -60,7 +60,7 @@ We currently cover the following components:
- [] SwatchPicker
- [x] Switch
- [] Table
- [] TabList
- [x] TabList
- [] Tag
- [] InteractionTag
- [] Tag
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ Any use of third-party trademarks or logos are subject to those third-party's po
| [spin-button-unrecommended-labelling](docs/rules/spin-button-unrecommended-labelling.md) | Accessibility: Unrecommended accessibility labelling - SpinButton | ✅ | | |
| [spinner-needs-labelling](docs/rules/spinner-needs-labelling.md) | Accessibility: Spinner must have either aria-label or label, aria-live and aria-busy attributes | ✅ | | |
| [switch-needs-labelling](docs/rules/switch-needs-labelling.md) | Accessibility: Switch must have an accessible label | ✅ | | |
| [tablist-and-tabs-need-labelling](docs/rules/tablist-and-tabs-need-labelling.md) | This rule aims to ensure that Tabs with icons but no text labels have an accessible name and that Tablist is properly labeled. | ✅ | | |
| [toolbar-missing-aria](docs/rules/toolbar-missing-aria.md) | Accessibility: Toolbars need accessible labelling: aria-label or aria-labelledby | ✅ | | |
| [tooltip-not-recommended](docs/rules/tooltip-not-recommended.md) | Accessibility: Prefer text content or aria over a tooltip for these components MenuItem, SpinButton | ✅ | | |

Expand Down
1 change: 0 additions & 1 deletion dist/lib/applicableComponents/buttonBasedComponents.d.ts

This file was deleted.

7 changes: 0 additions & 7 deletions dist/lib/applicableComponents/buttonBasedComponents.js

This file was deleted.

2 changes: 0 additions & 2 deletions dist/lib/applicableComponents/imageBasedComponents.d.ts

This file was deleted.

9 changes: 0 additions & 9 deletions dist/lib/applicableComponents/imageBasedComponents.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/lib/applicableComponents/inputBasedComponents.d.ts

This file was deleted.

7 changes: 0 additions & 7 deletions dist/lib/applicableComponents/inputBasedComponents.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/lib/applicableComponents/linkBasedComponents.d.ts

This file was deleted.

7 changes: 0 additions & 7 deletions dist/lib/applicableComponents/linkBasedComponents.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/lib/index.d.ts

This file was deleted.

7 changes: 5 additions & 2 deletions dist/lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ const spinner_needs_labelling_1 = __importDefault(require("./rules/spinner-needs
const badge_needs_accessible_name_1 = __importDefault(require("./rules/badge-needs-accessible-name"));
const progressbar_needs_labelling_1 = __importDefault(require("./rules/progressbar-needs-labelling"));
const field_needs_labelling_1 = __importDefault(require("./rules/field-needs-labelling"));
const tablist_and_tabs_need_labelling = __importDefault(require("./rules/tablist-and-tabs-need-labelling"));
//------------------------------------------------------------------------------
// Requirements
//------------------------------------------------------------------------------
Expand Down Expand Up @@ -70,7 +71,8 @@ module.exports = {
"spinner-needs-labelling": spinner_needs_labelling_1.default,
"badge-needs-accessible-name": badge_needs_accessible_name_1.default,
"progressbar-needs-labelling": progressbar_needs_labelling_1.default,
"field-needs-labelling": field_needs_labelling_1.default
"field-needs-labelling": field_needs_labelling_1.default,
"tablist-and-tabs-need-labelling": tablist_and_tabs_need_labelling.default
},
configs: {
recommended: {
Expand Down Expand Up @@ -101,7 +103,8 @@ module.exports = {
"@microsoft/fluentui-jsx-a11y/dialogsurface-needs-aria": "error",
"@microsoft/fluentui-jsx-a11y/spinner-needs-labelling": "error",
"@microsoft/fluentui-jsx-a11y/progressbar-needs-labelling": "error",
"@microsoft/fluentui-jsx-a11y/field-needs-labelling": "error"
"@microsoft/fluentui-jsx-a11y/field-needs-labelling": "error",
"@microsoft/fluentui-jsx-a11y/tablist-and-tabs-need-labelling": "error"
}
}
}
Expand Down
5 changes: 0 additions & 5 deletions dist/lib/rules/accordion-header-needs-labelling.d.ts

This file was deleted.

66 changes: 0 additions & 66 deletions dist/lib/rules/accordion-header-needs-labelling.js

This file was deleted.

5 changes: 0 additions & 5 deletions dist/lib/rules/accordion-item-needs-header-and-panel.d.ts

This file was deleted.

47 changes: 0 additions & 47 deletions dist/lib/rules/accordion-item-needs-header-and-panel.js

This file was deleted.

5 changes: 0 additions & 5 deletions dist/lib/rules/avatar-needs-name.d.ts

This file was deleted.

54 changes: 0 additions & 54 deletions dist/lib/rules/avatar-needs-name.js

This file was deleted.

This file was deleted.

Loading

0 comments on commit 6f52523

Please sign in to comment.