feat: add eslint linter

This commit is contained in:
Maël Gangloff
2024-12-30 23:50:15 +01:00
parent ebfcc58d16
commit 99d135cc31
64 changed files with 3579 additions and 1846 deletions

View File

@@ -1,13 +1,13 @@
import {Breakpoint, theme} from 'antd';
import {useMediaQuery} from 'react-responsive';
import {Breakpoint, theme} from 'antd'
import {useMediaQuery} from 'react-responsive'
const {useToken} = theme;
const {useToken} = theme
type ScreenProperty = 'screenXXL' | 'screenXL' | 'screenLG' | 'screenMD' | 'screenSM' | 'screenXS';
type ScreenProperty = 'screenXXL' | 'screenXL' | 'screenLG' | 'screenMD' | 'screenSM' | 'screenXS'
const propertyName = (breakpoint: Breakpoint): ScreenProperty => {
return 'screen' + breakpoint.toUpperCase() as ScreenProperty
};
}
export default function useBreakpoint(
breakpoint: Breakpoint