Skip to content

Commit

Permalink
Fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
martinboulais committed Jan 8, 2025
1 parent bf5f1b0 commit 4ffcc89
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
12 changes: 6 additions & 6 deletions Framework/Frontend/js/src/components/CopyToClipboardComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
* or submit itself to any jurisdiction.
*/

import {StatefulComponent} from './StatefulComponent.js';
import {iconCheck, iconLinkIntact} from '../icons.js';
import {h} from '../renderer.js';
import { StatefulComponent } from './StatefulComponent.js';
import { iconCheck, iconLinkIntact } from '../icons.js';
import { h } from '../renderer.js';

/**
* Represents a component that allows copying text to the clipboard.
Expand Down Expand Up @@ -96,14 +96,14 @@ export class CopyToClipboardComponent extends StatefulComponent {
* @returns {vnode} The copyToClipboard button component
*/
view(vnode) {
const {attrs, children} = vnode;
const {value: clipboardTargetValue = '', id} = attrs;
const { attrs, children } = vnode;
const { value: clipboardTargetValue = '', id } = attrs;
let available = true;
let message = '';

try {
this.checkClipboardAvailability();
} catch ({message: errorMessage}) {
} catch ({ message: errorMessage }) {
available = false;
message = errorMessage;
}
Expand Down
1 change: 0 additions & 1 deletion Framework/Frontend/js/src/components/StatefulComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ export class StatefulComponent extends Observable {
_renderer = renderer;
}

// eslint-disable-next-line valid-jsdoc
/**
* @inheritDoc
*/
Expand Down
4 changes: 2 additions & 2 deletions Framework/Frontend/js/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ export { default as Loader } from './Loader.js';
export { default as BrowserStorage } from './BrowserStorage.js';

// Reusable components
export {StatefulComponent} from './components/StatefulComponent.js';
export {CopyToClipboardComponent} from './components/CopyToClipboardComponent.js';
export { StatefulComponent } from './components/StatefulComponent.js';
export { CopyToClipboardComponent } from './components/CopyToClipboardComponent.js';

// All icons helpers, namespaced with prefix 'icon*'
export * from './icons.js';
Expand Down

0 comments on commit 4ffcc89

Please sign in to comment.