Skip to content

Commit

Permalink
Bump eslint-config-pixiebrix from 0.27.2 to 0.28.1 (#6632)
Browse files Browse the repository at this point in the history
* Bump eslint-config-pixiebrix from 0.27.2 to 0.28.1

Bumps [eslint-config-pixiebrix](https://github.com/pixiebrix/eslint-config-pixiebrix) from 0.27.2 to 0.28.1.
- [Release notes](https://github.com/pixiebrix/eslint-config-pixiebrix/releases)
- [Commits](pixiebrix/eslint-config-pixiebrix@v0.27.2...v0.28.1)

---
updated-dependencies:
- dependency-name: eslint-config-pixiebrix
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* lint fixes

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Graham Langford <[email protected]>
  • Loading branch information
dependabot[bot] and grahamlangford authored Oct 10, 2023
1 parent b2ec7da commit 9bf6ecd
Show file tree
Hide file tree
Showing 9 changed files with 537 additions and 99 deletions.
621 changes: 531 additions & 90 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@
"css-minimizer-webpack-plugin": "^3.4.1",
"dotenv": "^16.3.1",
"eslint": "^8.51.0",
"eslint-config-pixiebrix": "^0.27.2",
"eslint-config-pixiebrix": "^0.28.1",
"eslint-config-pixiebrix-extension": "file:./eslint-plugin-pixiebrix-extension",
"eslint-plugin-pixiebrix-extension": "file:./eslint-plugin-pixiebrix-extension",
"fake-indexeddb": "^4.0.2",
Expand Down
3 changes: 2 additions & 1 deletion src/analysis/analysisVisitors/formBrickAnalysis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import { type BrickConfig, type BrickPosition } from "@/bricks/types";
import { type VisitBlockExtra } from "@/bricks/PipelineVisitor";
import { FORM_MODAL_ID } from "@/pageEditor/fields/FormModalOptions";
import { AnnotationType } from "@/types/annotationTypes";
import { PipelineFlavor } from "@/pageEditor/pageEditorTypes";

class FormBrickAnalysis extends AnalysisVisitorABC {
get id() {
Expand All @@ -40,7 +41,7 @@ class FormBrickAnalysis extends AnalysisVisitorABC {
// The other direction (not placing the renderer form in an action, is already handled by brickTypeAnalysis.ts)

if (
extra.pipelineFlavor === "noEffect" &&
extra.pipelineFlavor === PipelineFlavor.NoEffect &&
blockConfig.id === FORM_MODAL_ID
) {
this.annotations.push({
Expand Down
1 change: 0 additions & 1 deletion src/background/contentScript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@ export const ensureContentScript = memoizeUntilSettled(
await pTimeout(ensureContentScriptWithoutTimeout(target, signal), {
signal,
milliseconds: timeoutMillis,
// eslint-disable-next-line @typescript-eslint/restrict-template-expressions -- known to be a number
message: `contentScript not ready in ${timeoutMillis}ms`,
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export type MenuOptions = Array<[string, UnknownRecord]>;
export function excludeIntegrationVariables(options: MenuOptions): MenuOptions {
return options.filter(([source]) => {
const [kind] = source.split(":");
return kind !== KnownSources.SERVICE;
return (kind as KnownSources) !== KnownSources.SERVICE;
});
}

Expand Down
3 changes: 1 addition & 2 deletions src/contrib/google/sheets/core/types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable @typescript-eslint/no-redundant-type-constituents -- TODO: The rule is right, but is this used for documentation? */
/*
* Copyright (C) 2023 PixieBrix, Inc.
*
Expand Down Expand Up @@ -27,7 +26,7 @@ export interface Doc extends SheetMeta {
}

export interface Data {
action: string;
action: google.picker.Action;
docs: Doc[];
}

Expand Down
1 change: 0 additions & 1 deletion src/pageEditor/tabs/editTab/editTabTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ export enum RunStatus {
}

export type BrickNodeContentProps = {
// eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents -- https://github.com/typescript-eslint/typescript-eslint/issues/5407
icon?: IconProp | React.ReactNode;
runStatus?: RunStatus;
brickLabel: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ import {
} from "@/pageEditor/tabs/editTab/editTabTypes";

function isFontAwesomeIcon(
// eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents -- https://github.com/typescript-eslint/typescript-eslint/issues/5407
maybeIcon: IconProp | React.ReactNode
): maybeIcon is IconProp {
return (
Expand Down
2 changes: 1 addition & 1 deletion src/services/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ export const appApi = createApi({

// eslint-disable-next-line @typescript-eslint/no-explicit-any -- `organization.members` is about to be removed
role: (apiOrganization as any).members?.some(
(member: { role: number }) => member.role === UserRole.admin
(member: { role: UserRole }) => member.role === UserRole.admin
)
? UserRole.admin
: UserRole.restricted,
Expand Down

0 comments on commit 9bf6ecd

Please sign in to comment.