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

Bump eslint-plugin-mdx from 1.17.1 to 2.2.0 #140

Merged
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
11 changes: 8 additions & 3 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,16 @@
}
],
"react/jsx-filename-extension": [2, { "extensions": [".js", ".jsx", ".ts", ".tsx", ".mdx"] }],
"import/prefer-default-export": "off",
"no-console": ["warn", { "allow": ["warn", "error", "info", "debug"] }],
"no-param-reassign": ["error", { "props": false }],
"class-methods-use-this": 0,
"import/no-webpack-loader-syntax": "off"
"jsx-a11y/control-has-associated-label": "warn",

"import/prefer-default-export": "off",
"import/no-webpack-loader-syntax": "off",
"jsx-a11y/anchor-has-content": "off",
"jsx-a11y/heading-has-content": "off",
"react/self-closing-comp": "off",
},
"env": {
"jest/globals": true
Expand All @@ -44,4 +49,4 @@
}
}
]
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"eslint-plugin-jest": "^27.6.0",
"eslint-plugin-json": "^3.1.0",
"eslint-plugin-jsx-a11y": "^6.8.0",
"eslint-plugin-mdx": "^1.16.0",
"eslint-plugin-mdx": "^2.2.0",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-react": "^7.33.2",
"eslint-plugin-react-hooks": "^4.3.0",
Expand Down
1 change: 0 additions & 1 deletion src/components/BoilerplateButton/BoilerplateButton.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { Canvas, Meta, Story } from "@storybook/blocks";
import { createForm, createBuilder } from "../../utils";
import * as BoilerplateButtonStories from "./BoilerplateButton.stories";

<Meta of={BoilerplateButtonStories} />
Expand Down
4 changes: 0 additions & 4 deletions src/components/BoilerplateButton/BoilerplateButton.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ export const Renderer = {
});
},
}),

name: "Renderer",
};

export const Builder = {
Expand All @@ -46,6 +44,4 @@ export const Builder = {
],
},
}),

name: "Builder",
};
1 change: 0 additions & 1 deletion src/components/PdfSubmitButton/PdfSubmitButton.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { Canvas, Meta, Story } from "@storybook/blocks";
import { createForm, createBuilder } from "../../utils";
import * as PdfSubmitButtonStories from "./PdfSubmitButton.stories";

<Meta of={PdfSubmitButtonStories} />
Expand Down
4 changes: 0 additions & 4 deletions src/components/PdfSubmitButton/PdfSubmitButton.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ export const Renderer = {
});
},
}),

name: "Renderer",
};

export const RendererForMissingPdf = {
Expand Down Expand Up @@ -158,6 +156,4 @@ export const Builder = {
],
},
}),

name: "Builder",
};
1 change: 0 additions & 1 deletion src/components/PlsPlusAddress/PlsPlusAddress.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { Canvas, Meta, Story } from "@storybook/blocks";
import { createForm, createBuilder } from "../../utils";
import * as PlsPlusAddressStories from "./PlsPlusAddress.stories";

<Meta of={PlsPlusAddressStories} />
Expand Down
4 changes: 0 additions & 4 deletions src/components/PlsPlusAddress/PlsPlusAddress.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@ export const Renderer = {
});
},
}),

name: "Renderer",
};

export const Builder = {
Expand Down Expand Up @@ -68,6 +66,4 @@ export const Builder = {
],
},
}),

name: "Builder",
};
1 change: 0 additions & 1 deletion src/components/Radio/Radio.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { Canvas, Meta, Story } from "@storybook/blocks";
import { createForm, createBuilder } from "../../utils";
import * as RadioStories from "./Radio.stories";

<Meta of={RadioStories} />
Expand Down
2 changes: 1 addition & 1 deletion src/components/googleLocation/GoogleLocation.form.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import LocationEditMap from "./editForm/Location.edit.map";

const baseEditForm = Formio.Components.components.base.editForm;

export default function (...extend) {
export default function googleLocationFormWrapper(...extend) {
return baseEditForm(
[
{
Expand Down
1 change: 0 additions & 1 deletion src/components/googleLocation/GoogleLocation.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { Canvas, Meta, Story } from "@storybook/blocks";
import { createForm, createBuilder } from "../../utils";
import * as GoogleLocationStories from "./GoogleLocation.stories";

<Meta of={GoogleLocationStories} />
Expand Down
4 changes: 0 additions & 4 deletions src/components/googleLocation/GoogleLocation.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@ export const Renderer = {
});
},
}),

name: "Renderer",
};

export const Builder = {
Expand Down Expand Up @@ -78,6 +76,4 @@ export const Builder = {
],
},
}),

name: "Builder",
};
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import OpenStreetMapLocationEditMap from "./editForm/OpenStreetMapLocation.edit.

const baseEditForm = Formio.Components.components.base.editForm;

export default function (...extend) {
export default function openStreetMapFormWrapper(...extend) {
return baseEditForm(
[
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
}

const defaultLatlng = [this.component.map.lat, this.component.map.lon]; // brisbane
console.log(defaultLatlng);

Check warning on line 97 in src/components/openStreetMapLocation/OpenStreetMapLocation.js

View workflow job for this annotation

GitHub Actions / Lint test on Node 18

Unexpected console statement

Check warning on line 97 in src/components/openStreetMapLocation/OpenStreetMapLocation.js

View workflow job for this annotation

GitHub Actions / Lint test on Node 18

Unexpected console statement

Check warning on line 97 in src/components/openStreetMapLocation/OpenStreetMapLocation.js

View workflow job for this annotation

GitHub Actions / Build and Deploy on Node 18

Unexpected console statement

Check warning on line 97 in src/components/openStreetMapLocation/OpenStreetMapLocation.js

View workflow job for this annotation

GitHub Actions / Build and Deploy on Node 18

Unexpected console statement
// console.log(this.refs.leafletElement[index]);
const mapElement = this.refs.leafletElement[index];
const map = L.map(mapElement).setView(defaultLatlng, 18);
Expand Down Expand Up @@ -160,9 +160,9 @@
marker.addTo(element.map);
// element.marker = marker;
// this.addMarker(defaultLatlng, "Default Marker", element);
marker.on("moveend", function (event) {
marker.on("moveend", function markerMoveListener(event) {
// marker.addListener("moveend", (event) => {
console.log(event);

Check warning on line 165 in src/components/openStreetMapLocation/OpenStreetMapLocation.js

View workflow job for this annotation

GitHub Actions / Lint test on Node 18

Unexpected console statement

Check warning on line 165 in src/components/openStreetMapLocation/OpenStreetMapLocation.js

View workflow job for this annotation

GitHub Actions / Lint test on Node 18

Unexpected console statement

Check warning on line 165 in src/components/openStreetMapLocation/OpenStreetMapLocation.js

View workflow job for this annotation

GitHub Actions / Build and Deploy on Node 18

Unexpected console statement

Check warning on line 165 in src/components/openStreetMapLocation/OpenStreetMapLocation.js

View workflow job for this annotation

GitHub Actions / Build and Deploy on Node 18

Unexpected console statement
// const markerInternal = e.target;
const position = marker.getLatLng();
// geocode for plsplus
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { Canvas, Meta, Story } from "@storybook/blocks";
import { createForm, createBuilder } from "../../utils";
import * as OpenStreetMapLocationStories from "./OpenStreetMapLocation.stories";

<Meta of={OpenStreetMapLocationStories} />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@
});
},
}),

name: "Renderer",
};

export const Renderer2 = {
Expand Down Expand Up @@ -100,7 +98,7 @@
},
}),

name: "Renderer 2",

Check warning on line 101 in src/components/openStreetMapLocation/OpenStreetMapLocation.stories.js

View workflow job for this annotation

GitHub Actions / Lint test on Node 18

Named exports should not use the name annotation if it is redundant to the name that would be generated by the export name

Check warning on line 101 in src/components/openStreetMapLocation/OpenStreetMapLocation.stories.js

View workflow job for this annotation

GitHub Actions / Lint test on Node 18

Named exports should not use the name annotation if it is redundant to the name that would be generated by the export name
};

export const Builder = {
Expand Down Expand Up @@ -131,6 +129,4 @@
],
},
}),

name: "Builder",
};
4 changes: 0 additions & 4 deletions src/examples/SingleSignOn/SingleSignOn.mdx
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
import { Canvas, Meta, Story } from "@storybook/blocks";
import SSOHighLevel from "../../stories/assets/SSO-HighLevel.png";
import SSOUserFlow from "../../stories/assets/SSO-UserFlow.png";
import { SingleSignOn } from "./stories/SingleSignOn";
import { singleSignOnCode } from "./stories/SingleSignOn.code";
import { SSOUnauth } from "./stories/SSOUnauth.js";
import { SSOUnauthCode } from "./stories/SSOUnauth.code.js";
import * as SingleSignOnStories from "./SingleSignOn.stories";

<Meta of={SingleSignOnStories} />
Expand Down
6 changes: 3 additions & 3 deletions src/stories/WhyAndWhen.mdx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Meta, Markdown } from "@storybook/addon-docs";
import { Meta } from "@storybook/addon-docs";

<Meta title="Why and When" />

Expand Down Expand Up @@ -32,9 +32,9 @@

<table>
<tr>
<th> </th>

Check warning on line 35 in src/stories/WhyAndWhen.mdx

View workflow job for this annotation

GitHub Actions / Lint test on Node 18

A control must be associated with a text label

Check warning on line 35 in src/stories/WhyAndWhen.mdx

View workflow job for this annotation

GitHub Actions / Lint test on Node 18

A control must be associated with a text label
<th>Bespoke solution</th>

Check warning on line 36 in src/stories/WhyAndWhen.mdx

View workflow job for this annotation

GitHub Actions / Lint test on Node 18

A control must be associated with a text label

Check warning on line 36 in src/stories/WhyAndWhen.mdx

View workflow job for this annotation

GitHub Actions / Lint test on Node 18

A control must be associated with a text label
<th>Resource component</th>

Check warning on line 37 in src/stories/WhyAndWhen.mdx

View workflow job for this annotation

GitHub Actions / Lint test on Node 18

A control must be associated with a text label

Check warning on line 37 in src/stories/WhyAndWhen.mdx

View workflow job for this annotation

GitHub Actions / Lint test on Node 18

A control must be associated with a text label
<th>Custom component</th>
</tr>
<tr>
Expand Down Expand Up @@ -148,7 +148,7 @@
</tr>
<tr>
<th>Creation</th>
<td wrapperElement={null}>
<td>
<a
href="https://api.forms.platforms.qld.gov.au/#/project/6119e1ed2943fd235a1de48b/form/611b2fc883067a20cde7a671/edit"
target="_blank"
Expand All @@ -174,7 +174,7 @@
<li>custom JS is added as calculated value in the textfield.</li>
</ul>
</td>
<td wrapperElement={null}>
<td>
<a
href="https://api.forms.platforms.qld.gov.au/#/project/6119e1ed2943fd235a1de48b/resource/611b2fc783067a5732e7a66f/edit"
target="_blank"
Expand Down
Loading