fix(widget): introduce ESLint no-multiple-empty-lines rule

This commit is contained in:
yassinedorbozgithub 2025-02-10 16:30:27 +01:00
parent 514065e4b8
commit d6972cf982
6 changed files with 2 additions and 6 deletions

View File

@ -65,7 +65,8 @@
" " " "
], ],
2 2
] ],
"no-multiple-empty-lines": ["error", { "max": 1 }]
}, },
"settings": { "settings": {
"react": { "react": {

View File

@ -6,7 +6,6 @@
* 2. All derivative works must include clear attribution to the original creator and software, Hexastack and Hexabot, in a prominent location (e.g., in the software's "About" section, documentation, and README file). * 2. All derivative works must include clear attribution to the original creator and software, Hexastack and Hexabot, in a prominent location (e.g., in the software's "About" section, documentation, and README file).
*/ */
import "normalize.css"; import "normalize.css";
import "./ChatWidget.css"; import "./ChatWidget.css";
import Launcher from "./components/Launcher"; import Launcher from "./components/Launcher";

View File

@ -6,7 +6,6 @@
* 2. All derivative works must include clear attribution to the original creator and software, Hexastack and Hexabot, in a prominent location (e.g., in the software's "About" section, documentation, and README file). * 2. All derivative works must include clear attribution to the original creator and software, Hexastack and Hexabot, in a prominent location (e.g., in the software's "About" section, documentation, and README file).
*/ */
import { PropsWithChildren } from "react"; import { PropsWithChildren } from "react";
import Launcher from "./components/Launcher"; import Launcher from "./components/Launcher";

View File

@ -6,7 +6,6 @@
* 2. All derivative works must include clear attribution to the original creator and software, Hexastack and Hexabot, in a prominent location (e.g., in the software's "About" section, documentation, and README file). * 2. All derivative works must include clear attribution to the original creator and software, Hexastack and Hexabot, in a prominent location (e.g., in the software's "About" section, documentation, and README file).
*/ */
import React, { import React, {
SyntheticEvent, SyntheticEvent,
useCallback, useCallback,

View File

@ -6,7 +6,6 @@
* 2. All derivative works must include clear attribution to the original creator and software, Hexastack and Hexabot, in a prominent location (e.g., in the software's "About" section, documentation, and README file). * 2. All derivative works must include clear attribution to the original creator and software, Hexastack and Hexabot, in a prominent location (e.g., in the software's "About" section, documentation, and README file).
*/ */
import { io, ManagerOptions, Socket, SocketOptions } from "socket.io-client"; import { io, ManagerOptions, Socket, SocketOptions } from "socket.io-client";
import { Config } from "../types/config.types"; import { Config } from "../types/config.types";

View File

@ -6,7 +6,6 @@
* 2. All derivative works must include clear attribution to the original creator and software, Hexastack and Hexabot, in a prominent location (e.g., in the software's "About" section, documentation, and README file). * 2. All derivative works must include clear attribution to the original creator and software, Hexastack and Hexabot, in a prominent location (e.g., in the software's "About" section, documentation, and README file).
*/ */
import { FileType } from "../types/message.types"; import { FileType } from "../types/message.types";
export function getFileType(mimeType: string): FileType { export function getFileType(mimeType: string): FileType {