all-rules-with-exclusions
This commit is contained in:
parent
361c916687
commit
075072cd36
|
@ -32,13 +32,15 @@
|
||||||
"ignore": ["*.scss", "*.md", ".DS_Store", "*.svg"],
|
"ignore": ["*.scss", "*.md", ".DS_Store", "*.svg"],
|
||||||
"enabled": true,
|
"enabled": true,
|
||||||
"rules": {
|
"rules": {
|
||||||
"recommended": true,
|
|
||||||
"complexity": {
|
|
||||||
"all": true,
|
"all": true,
|
||||||
|
"complexity": {
|
||||||
"noForEach": "off",
|
"noForEach": "off",
|
||||||
"useOptionalChain": "warn",
|
"useOptionalChain": "warn",
|
||||||
"useLiteralKeys": "off"
|
"useLiteralKeys": "off"
|
||||||
},
|
},
|
||||||
|
"correctness": {
|
||||||
|
"useHookAtTopLevel": "off"
|
||||||
|
},
|
||||||
"a11y": {
|
"a11y": {
|
||||||
"useHeadingContent": "off",
|
"useHeadingContent": "off",
|
||||||
"useKeyWithClickEvents": "off",
|
"useKeyWithClickEvents": "off",
|
||||||
|
@ -52,13 +54,11 @@
|
||||||
"noSvgWithoutTitle": "off"
|
"noSvgWithoutTitle": "off"
|
||||||
},
|
},
|
||||||
"nursery": {
|
"nursery": {
|
||||||
"all": true,
|
|
||||||
"useImportRestrictions": "off",
|
"useImportRestrictions": "off",
|
||||||
"useImportType": "off",
|
"useImportType": "off",
|
||||||
"useFilenamingConvention": "off"
|
"useFilenamingConvention": "off"
|
||||||
},
|
},
|
||||||
"style": {
|
"style": {
|
||||||
"all": true,
|
|
||||||
"useBlockStatements": "off",
|
"useBlockStatements": "off",
|
||||||
"noImplicitBoolean": "off",
|
"noImplicitBoolean": "off",
|
||||||
"useNamingConvention": "off",
|
"useNamingConvention": "off",
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
// biome-ignore lint/nursery/noNodejsModules: TODO: maybe cause problems
|
|
||||||
import { Buffer } from 'node:buffer'
|
import { Buffer } from 'node:buffer'
|
||||||
|
|
||||||
import { clsx } from 'clsx'
|
import { clsx } from 'clsx'
|
||||||
|
|
|
@ -28,7 +28,6 @@ const embedData = (data) => {
|
||||||
|
|
||||||
const result: { src: string; width?: string; height?: string } = { src: '' }
|
const result: { src: string; width?: string; height?: string } = { src: '' }
|
||||||
|
|
||||||
// biome-ignore lint/nursery/useForOf: <explanation>
|
|
||||||
for (let i = 0; i < attributes.length; i++) {
|
for (let i = 0; i < attributes.length; i++) {
|
||||||
const attribute = attributes[i]
|
const attribute = attributes[i]
|
||||||
result[attribute.name] = attribute.value
|
result[attribute.name] = attribute.value
|
||||||
|
|
|
@ -51,8 +51,9 @@ export const Panel = (props: Props) => {
|
||||||
publishShout(form)
|
publishShout(form)
|
||||||
}
|
}
|
||||||
|
|
||||||
const handleFixTypographyClick = () => {
|
|
||||||
const html = useEditorHTML(() => editorRef.current())
|
const html = useEditorHTML(() => editorRef.current())
|
||||||
|
|
||||||
|
const handleFixTypographyClick = () => {
|
||||||
editorRef.current().commands.setContent(typograf.execute(html()))
|
editorRef.current().commands.setContent(typograf.execute(html()))
|
||||||
setIsTypographyFixed(true)
|
setIsTypographyFixed(true)
|
||||||
}
|
}
|
||||||
|
|
|
@ -135,7 +135,7 @@ export const Header = (props: Props) => {
|
||||||
clearTimeout(timer)
|
clearTimeout(timer)
|
||||||
}
|
}
|
||||||
|
|
||||||
const hideSubnavigation = (event, time = 500) => {
|
const hideSubnavigation = (_event, time = 500) => {
|
||||||
timer = setTimeout(() => {
|
timer = setTimeout(() => {
|
||||||
toggleSubnavigation(false)
|
toggleSubnavigation(false)
|
||||||
}, time)
|
}, time)
|
||||||
|
|
|
@ -22,7 +22,7 @@ export const Snackbar = () => {
|
||||||
<Transition
|
<Transition
|
||||||
enterClass={styles.enter}
|
enterClass={styles.enter}
|
||||||
exitToClass={styles.exitTo}
|
exitToClass={styles.exitTo}
|
||||||
onExit={(el, done) => setTimeout(() => done(), 300)}
|
onExit={(_el, done) => setTimeout(() => done(), 300)}
|
||||||
>
|
>
|
||||||
<Show when={snackbarMessage()}>
|
<Show when={snackbarMessage()}>
|
||||||
<div class={styles.content}>
|
<div class={styles.content}>
|
||||||
|
|
|
@ -16,7 +16,7 @@ type Props = {
|
||||||
}
|
}
|
||||||
|
|
||||||
export const DropdownSelect = (props: Props) => {
|
export const DropdownSelect = (props: Props) => {
|
||||||
const [selected, setSelected] = createSignal<FilterItem>(props.selectItems[0])
|
const [selected, _setSelected] = createSignal<FilterItem>(props.selectItems[0])
|
||||||
const [isDropDownVisible, setIsDropDownVisible] = createSignal(false)
|
const [isDropDownVisible, setIsDropDownVisible] = createSignal(false)
|
||||||
|
|
||||||
const containerRef: { current: HTMLElement } = {
|
const containerRef: { current: HTMLElement } = {
|
||||||
|
|
|
@ -62,7 +62,7 @@ export const InviteMembers = (props: Props) => {
|
||||||
return authors?.slice(start, end)
|
return authors?.slice(start, end)
|
||||||
}
|
}
|
||||||
|
|
||||||
const [pages, infiniteScrollLoader, { end }] = createInfiniteScroll(fetcher)
|
const [pages, _infiniteScrollLoader, { end }] = createInfiniteScroll(fetcher)
|
||||||
|
|
||||||
createEffect(
|
createEffect(
|
||||||
on(
|
on(
|
||||||
|
|
45
src/components/_shared/SolidSwiper/swiper.d.ts
vendored
45
src/components/_shared/SolidSwiper/swiper.d.ts
vendored
|
@ -1,6 +1,43 @@
|
||||||
import 'solid-js'
|
import 'solid-js'
|
||||||
import { AutoplayOptions, SwiperOptions } from 'swiper'
|
import { JSX, JSXElement, Ref } from 'solid-js'
|
||||||
import { SwiperSlideProps } from 'swiper/react'
|
import { AutoplayOptions, SlideData, Swiper, SwiperOptions } from 'swiper'
|
||||||
|
|
||||||
|
type SwiperSlideProps = {
|
||||||
|
/**
|
||||||
|
* Slide tag
|
||||||
|
*
|
||||||
|
* @default 'div'
|
||||||
|
*/
|
||||||
|
tag?: string
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Enables additional wrapper required for zoom mode
|
||||||
|
*
|
||||||
|
* @default false
|
||||||
|
*/
|
||||||
|
zoom?: boolean
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Adds lazy preloader to the slide
|
||||||
|
*
|
||||||
|
* @default false
|
||||||
|
*/
|
||||||
|
lazy?: boolean
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Slide's index in slides array/collection
|
||||||
|
*
|
||||||
|
* @default false
|
||||||
|
*/
|
||||||
|
virtualIndex?: number
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Slide's child element or render function
|
||||||
|
*
|
||||||
|
* @default undefined
|
||||||
|
*/
|
||||||
|
children?: JSX.Element | ((slideData: SlideData) => JSX.Element)
|
||||||
|
}
|
||||||
|
|
||||||
type Kebab<T extends string, A extends string = ''> = T extends `${infer F}${infer R}`
|
type Kebab<T extends string, A extends string = ''> = T extends `${infer F}${infer R}`
|
||||||
? Kebab<R, `${A}${F extends Lowercase<F> ? '' : '-'}${Lowercase<F>}`>
|
? Kebab<R, `${A}${F extends Lowercase<F> ? '' : '-'}${Lowercase<F>}`>
|
||||||
|
@ -27,8 +64,6 @@ type KebabObjectKeys<T> = {
|
||||||
type SwiperRef = HTMLElement & { swiper: Swiper; initialize: () => void }
|
type SwiperRef = HTMLElement & { swiper: Swiper; initialize: () => void }
|
||||||
|
|
||||||
declare module 'solid-js' {
|
declare module 'solid-js' {
|
||||||
// biome-ignore lint/style/useNamingConvention: JSX is ok
|
|
||||||
// biome-ignore lint/style/noNamespace: TODO: explain why
|
|
||||||
namespace JSX {
|
namespace JSX {
|
||||||
interface IntrinsicElements {
|
interface IntrinsicElements {
|
||||||
'swiper-container': SwiperContainerAttributes
|
'swiper-container': SwiperContainerAttributes
|
||||||
|
@ -36,7 +71,7 @@ declare module 'solid-js' {
|
||||||
}
|
}
|
||||||
|
|
||||||
interface SwiperContainerAttributes extends KebabObjectKeys<SwiperOptions> {
|
interface SwiperContainerAttributes extends KebabObjectKeys<SwiperOptions> {
|
||||||
ref?: RefObject<SwiperRef>
|
ref?: Ref<SwiperRef>
|
||||||
children?: JSX.Element
|
children?: JSX.Element
|
||||||
onSlideChange?: () => void
|
onSlideChange?: () => void
|
||||||
onBeforeSlideChangeStart?: () => void
|
onBeforeSlideChangeStart?: () => void
|
||||||
|
|
|
@ -70,7 +70,6 @@ export type SessionContextType = {
|
||||||
authorizer: () => Authorizer
|
authorizer: () => Authorizer
|
||||||
}
|
}
|
||||||
|
|
||||||
// biome-ignore lint/nursery/noEmptyBlockStatements: noop
|
|
||||||
const noop = () => {}
|
const noop = () => {}
|
||||||
|
|
||||||
const SessionContext = createContext<SessionContextType>()
|
const SessionContext = createContext<SessionContextType>()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user