Fixed linting issues

This commit is contained in:
2025-10-02 14:24:17 +02:00
parent 054d450273
commit fdcfc774fb
3 changed files with 16 additions and 2 deletions

View File

@@ -13,7 +13,9 @@ export default function Container({ items }: ContainerProps) {
key={sidenote.id}
id={sidenote.id}
className={styles.wrapper}
style={{ positionAnchor: `--note-${sidenote.id}` }}
style={
{ positionAnchor: `--note-${sidenote.id}` } as React.CSSProperties
}
>
<div className={`${styles.note} ${styles[sidenote.type]}`}>
<span className={styles.marker}>

View File

@@ -8,7 +8,7 @@ export default function SidenoteItem({ id, marker, content, type }: Sidenote) {
href={`#${id}`}
className={styles.ref}
id={`#ref-${id}`}
style={{ anchorName: `--note-${id}` }}
style={{ anchorName: `--note-${id}` } as React.CSSProperties}
>
[{marker}]
</a>

View File

@@ -6,6 +6,18 @@ const stylelintConfig = {
],
rules: {
'declaration-block-no-redundant-longhand-properties': null,
'declaration-property-value-no-unknown': [
true,
{
ignoreProperties: {
top: [/^anchor\(/],
left: [/^anchor\(/],
right: [/^anchor\(/],
bottom: [/^anchor\(/],
inset: [/^anchor\(/],
},
},
],
'no-descending-specificity': null,
'selector-class-pattern': null,
'custom-property-pattern': null,