🧑‍💻 Migrate package.json prettier and eslint

Also updated the plugins and the config.
New rules should be respected from now-on
This commit is contained in:
ajnart
2023-06-11 17:51:29 +09:00
parent cb0e6532bf
commit 3b3f7f308f
13 changed files with 563 additions and 1448 deletions

View File

@@ -36,16 +36,9 @@ import '../styles/global.scss';
import nextI18nextConfig from '../../next-i18next.config';
import { api } from '~/utils/api';
function App(
this: any,
props: AppProps<{
colorScheme: ColorScheme;
packageAttributes: ServerSidePackageAttributesType;
editModeEnabled: boolean;
defaultColorScheme: ColorScheme;
}>
) {
function App(props: AppProps & { colorScheme: ColorScheme }) {
const { Component, pageProps } = props;
const [primaryColor, setPrimaryColor] = useState<MantineTheme['primaryColor']>('red');
const [secondaryColor, setSecondaryColor] = useState<MantineTheme['primaryColor']>('orange');
const [primaryShade, setPrimaryShade] = useState<MantineTheme['primaryShade']>(6);