Skip to content
Open
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
6 changes: 3 additions & 3 deletions src/frontend/apps/e2e/__tests__/app-impress/utils-common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export const overrideConfig = async (
export const keyCloakSignIn = async (
page: Page,
browserName: string,
fromHome: boolean = true,
fromHome = true,
) => {
if (fromHome) {
await page.getByRole('button', { name: 'Start Writing' }).first().click();
Expand Down Expand Up @@ -78,8 +78,8 @@ export const createDoc = async (
page: Page,
docName: string,
browserName: string,
length: number = 1,
isMobile: boolean = false,
length = 1,
isMobile = false,
) => {
const randomDocs = randomName(docName, browserName, length);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ export const writeInEditor = async ({
text: string;
}) => {
const editor = await getEditor({ page });
editor.locator('.bn-block-outer').last().fill(text);
await editor.locator('.bn-block-outer').last().fill(text);
return editor;
};
2 changes: 1 addition & 1 deletion src/frontend/apps/e2e/__tests__/app-impress/utils-share.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const addNewMember = async (
page: Page,
index: number,
role: 'Administrator' | 'Owner' | 'Editor' | 'Reader',
fillText: string = 'user.test',
fillText = 'user.test',
) => {
const responsePromiseSearchUser = page.waitForResponse(
(response) =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export const createRootSubPage = async (
page: Page,
browserName: string,
docName: string,
isMobile: boolean = false,
isMobile = false,
) => {
if (isMobile) {
await page
Expand Down
2 changes: 1 addition & 1 deletion src/frontend/apps/impress/src/api/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ export const backendUrl = () =>
* @param apiVersion - The version of the API (defaults to '1.0').
* @returns The full versioned API base URL as a string.
*/
export const baseApiUrl = (apiVersion: string = '1.0') =>
export const baseApiUrl = (apiVersion = '1.0') =>
`${backendUrl()}/api/v${apiVersion}/`;
2 changes: 1 addition & 1 deletion src/frontend/apps/impress/src/features/auth/conf.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { baseApiUrl } from '@/api';

export const HOME_URL: string = '/home';
export const HOME_URL = '/home';
export const LOGIN_URL = `${baseApiUrl()}authenticate/`;
export const LOGOUT_URL = `${baseApiUrl()}logout/`;
export const PATH_AUTH_LOCAL_STORAGE = 'docs-path-auth';
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function isBlock(block: Block): block is Block {
);
}

const recursiveContent = (content: Block[], base: string = '') => {
const recursiveContent = (content: Block[], base = '') => {
let fullContent = base;
for (const innerContent of content) {
if (innerContent.type === 'text') {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const LinkSelected = ({ url, title }: LinkSelectedProps) => {

const handleClick = (e: React.MouseEvent<HTMLDivElement>) => {
e.preventDefault();
router.push(url);
void router.push(url);
};

return (
Expand Down
4 changes: 3 additions & 1 deletion src/frontend/apps/impress/src/pages/docs/[id]/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,9 @@ const DocPage = ({ id }: DocProps) => {
// Invalidate when provider store reports a lost connection
useEffect(() => {
if (hasLostConnection && doc?.id) {
queryClient.invalidateQueries({ queryKey: [KEY_DOC, { id: doc.id }] });
void queryClient.invalidateQueries({
queryKey: [KEY_DOC, { id: doc.id }],
});
resetLostConnection();
}
}, [hasLostConnection, doc?.id, queryClient, resetLostConnection]);
Expand Down
2 changes: 2 additions & 0 deletions src/frontend/packages/eslint-plugin-docs/typescript.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ const typescriptConfig = {
'@typescript-eslint': typescriptEslint,
},
rules: {
'@typescript-eslint/no-inferrable-types': 'error',
'@typescript-eslint/no-explicit-any': 'error',
'@typescript-eslint/no-floating-promises': 'error',
'@typescript-eslint/no-non-null-assertion': 'error',
'@typescript-eslint/no-unnecessary-type-assertion': 'error',
'@typescript-eslint/no-unsafe-argument': 'error',
Expand Down
Loading