Add linter to Chrome Extension (#4044). (#4174)

* feat: configure eslint rules by replicating those in the twenty-front package and introduce scripts for linting, formatting code and removing build output

* fix: ensure each file of the extension package satisfies linting rules and disable some rules where necessary

* fix: update relative imports to absolute imports throughout extension code with the defined tilde and at symbols

* fix: import the updated ui module from the front package to the chrome extension package to prevent eslint rules from breaking subject to the recent merged changes into main

* fix: commit the case change for files that were missed by Git in the earlier commits due to default configuration
This commit is contained in:
Abdullah
2024-02-25 21:32:08 +05:00
committed by GitHub
parent f543191552
commit d14bb2ea11
67 changed files with 783 additions and 567 deletions

View File

@ -1,9 +1,11 @@
import React from 'react';
import ReactDOM from 'react-dom/client';
import App from './Options';
import '../index.css';
import { AppThemeProvider } from './modules/ui/theme/components/AppThemeProvider';
import { ThemeType } from './modules/ui/theme/constants/theme';
import { AppThemeProvider } from '@/ui/theme/components/AppThemeProvider';
import { ThemeType } from '@/ui/theme/constants/ThemeLight';
import App from '~/options/Options';
import '~/index.css';
ReactDOM.createRoot(document.getElementById('app') as HTMLElement).render(
<AppThemeProvider>
@ -14,6 +16,5 @@ ReactDOM.createRoot(document.getElementById('app') as HTMLElement).render(
);
declare module '@emotion/react' {
// eslint-disable-next-line @typescript-eslint/no-empty-interface
export interface Theme extends ThemeType {}
}