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

bypass unused param #87

Merged
merged 3 commits into from
Nov 28, 2023
Merged

bypass unused param #87

merged 3 commits into from
Nov 28, 2023

Conversation

andreas-trad
Copy link
Contributor

This pr enables jsx for plugin development

@andreas-trad andreas-trad requested a review from alexdor November 18, 2023 17:04
@@ -13,7 +14,7 @@ import { HTMLClip } from "@donkeyclip/motorcortex";
*/
export default class MyHTMLClip extends HTMLClip {
get html() {
return "<div></div>";
return <div></div>;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [eslint] reported by reviewdog 🐶
Parsing error: This experimental syntax requires enabling one of the following parser plugin(s): "jsx", "flow", "typescript". (17:11)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@andreas-trad you also got to fix this, before merging

Copy link

github-actions bot commented Nov 18, 2023

📊 Package size report   3%↑

File Before (Size / Gzip / Brotli) After (Size / Gzip / Brotli)
.eslintrc 978 B / 370 B / 319 B 22%↑1.2 kB / 19%↑441 B / 18%↑378 B
dist/bundle.cjs.js 6.2 kB / 2.3 kB / 1.9 kB 2%↑6.4 kB / 2%↑2.4 kB / 2%↑1.9 kB
dist/bundle.esm.js 6.2 kB / 2.3 kB / 1.9 kB 2%↑6.3 kB / 2%↑2.4 kB / 3%↑1.9 kB
dist/bundle.umd.js 878 B / 487 B / 399 B 1%↑890 B / 2%↑496 B / 3%↑411 B
package.json 2.2 kB / 852 B / 747 B 8%↑2.4 kB / 5%↑896 B / 5%↑782 B
rollup.config.js 941 B / 369 B / 321 B 56%↑1.5 kB / 21%↑447 B / 20%↑384 B
src/Incidents/Effect.js 2.7 kB / 1.1 kB / 864 B 2%↑2.7 kB / 3%↑1.1 kB / 4%↑895 B
src/Incidents/HTMLClip.js 1.4 kB / 762 B / 598 B 3%↑1.5 kB / 4%↑796 B / 8%↑643 B
Total (Includes all files) 39.7 kB / 19.6 kB / 16.6 kB 3%↑40.9 kB / 2%↑20.0 kB / 2%↑16.9 kB
Tarball size 14.4 kB 2%↑14.6 kB
Unchanged files
File Size (Size / Gzip / Brotli)
.babelrc 145 B / 115 B / 106 B
.eslintignore 14 B / 34 B / 18 B
.github/.misspell-fixer.ignore 18 B / 38 B / 22 B
.github/workflows/bundle-size.yml 759 B / 411 B / 323 B
.github/workflows/eslint.yml 586 B / 330 B / 263 B
.github/workflows/misspell.yml 681 B / 391 B / 323 B
.github/workflows/test.yaml 781 B / 410 B / 335 B
.husky/pre-commit 58 B / 76 B / 62 B
demo/index.html 969 B / 452 B / 271 B
demo/index.js 1.4 kB / 516 B / 411 B
demo/motorcortex-tools.js 745 B / 264 B / 204 B
demo/motorcortex.png 5.6 kB / 5.0 kB / 5.0 kB
demo/style.css 1.2 kB / 453 B / 328 B
demo/webpack.config.js 816 B / 439 B / 373 B
README.md 1.8 kB / 840 B / 626 B
renovate.json 174 B / 138 B / 117 B
src/Incidents/Clip.js 129 B / 126 B / 90 B
src/Incidents/Combo.js 645 B / 402 B / 292 B
src/index.js 1.7 kB / 535 B / 445 B

🤖 This report was automatically generated by pkg-size-action

@@ -13,7 +14,7 @@ import { HTMLClip } from "@donkeyclip/motorcortex";
*/
export default class MyHTMLClip extends HTMLClip {
get html() {
return "<div></div>";
return <div></div>;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@andreas-trad you also got to fix this, before merging

@@ -2,7 +2,7 @@ import babel from "@rollup/plugin-babel";
import commonjs from "@rollup/plugin-commonjs";
import json from "@rollup/plugin-json";
import resolve from "@rollup/plugin-node-resolve";
import { terser } from "rollup-plugin-terser";
import terser from '@rollup/plugin-terser';

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace '@rollup/plugin-terser' with "@rollup/plugin-terser"

Suggested change
import terser from '@rollup/plugin-terser';
import terser from "@rollup/plugin-terser";

Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

No Coverage information No Coverage information
0.0% 0.0% Duplication

@alexdor alexdor merged commit 54007af into main Nov 28, 2023
2 of 9 checks passed
@alexdor alexdor deleted the jsx branch November 28, 2023 07:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants