Skip to content
This repository has been archived by the owner on Aug 31, 2023. It is now read-only.

Commit

Permalink
chore: clippy and regressions
Browse files Browse the repository at this point in the history
  • Loading branch information
ematipico committed Dec 19, 2022
1 parent 1749623 commit c96d1f6
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 8 deletions.
6 changes: 2 additions & 4 deletions crates/rome_aria/src/roles.rs
Original file line number Diff line number Diff line change
Expand Up @@ -698,10 +698,8 @@ impl<'a> AriaRoles {
_ => return false,
};
if let Some(mut concepts) = role.concepts_by_element_name(element_name) {
if concepts.any(|(name, _)| *name == element_name) {
if !role.is_interactive() {
return true;
}
if concepts.any(|(name, _)| *name == element_name) && !role.is_interactive() {
return true;
}
}
}
Expand Down
1 change: 1 addition & 0 deletions editors/vscode/configuration_schema.json

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

5 changes: 5 additions & 0 deletions npm/backend-jsonrpc/src/workspace.ts

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

1 change: 1 addition & 0 deletions npm/rome/configuration_schema.json

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

4 changes: 0 additions & 4 deletions website/src/playground/Playground.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ export default function PlaygroundLoader({
const romeOutput = file.rome;
const prettierOutput = file.prettier;

// rome-ignore lint/nursery/useExhaustiveDependencies: dynamic dependencies
const codeMirrorExtensions = useMemo(() => {
if (isJSONFilename(playgroundState.currentFile)) {
return [json()];
Expand All @@ -65,14 +64,12 @@ export default function PlaygroundLoader({

const astPanelCodeMirrorRef = useRef<null | ReactCodeMirrorRef>(null);

// rome-ignore lint/nursery/useExhaustiveDependencies: dynamic dependencies
useEffect(() => {
if (clipboardStatus !== "normal") {
setClipboardStatus("normal");
}
}, [romeOutput.formatter.ir]);

// rome-ignore lint/nursery/useExhaustiveDependencies: dynamic dependencies
const onUpdate = useCallback((viewUpdate: ViewUpdate) => {
const cursorPosition = viewUpdate.state.selection.ranges[0]?.from ?? 0;
setPlaygroundState((state) =>
Expand Down Expand Up @@ -127,7 +124,6 @@ export default function PlaygroundLoader({
});
}, [romeOutput.syntax.ast]);

// rome-ignore lint/nursery/useExhaustiveDependencies: dynamic dependencies
const onChange = useCallback((value: string) => {
setPlaygroundState((state) => ({
...state,
Expand Down
1 change: 1 addition & 0 deletions website/src/playground/components/Tabs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ export default function Tabs({
"react-tabs__tab",
isSelected && "react-tabs__tab--selected",
)}
// rome-ignore lint/nursery/noNoninteractiveElementToInteractiveRole: false positive?
role="tab"
aria-selected={isSelected}
aria-disabled={isSelected}
Expand Down

0 comments on commit c96d1f6

Please sign in to comment.