Fixed linting issues
This commit is contained in:
@@ -13,7 +13,9 @@ export default function Container({ items }: ContainerProps) {
|
|||||||
key={sidenote.id}
|
key={sidenote.id}
|
||||||
id={sidenote.id}
|
id={sidenote.id}
|
||||||
className={styles.wrapper}
|
className={styles.wrapper}
|
||||||
style={{ positionAnchor: `--note-${sidenote.id}` }}
|
style={
|
||||||
|
{ positionAnchor: `--note-${sidenote.id}` } as React.CSSProperties
|
||||||
|
}
|
||||||
>
|
>
|
||||||
<div className={`${styles.note} ${styles[sidenote.type]}`}>
|
<div className={`${styles.note} ${styles[sidenote.type]}`}>
|
||||||
<span className={styles.marker}>
|
<span className={styles.marker}>
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ export default function SidenoteItem({ id, marker, content, type }: Sidenote) {
|
|||||||
href={`#${id}`}
|
href={`#${id}`}
|
||||||
className={styles.ref}
|
className={styles.ref}
|
||||||
id={`#ref-${id}`}
|
id={`#ref-${id}`}
|
||||||
style={{ anchorName: `--note-${id}` }}
|
style={{ anchorName: `--note-${id}` } as React.CSSProperties}
|
||||||
>
|
>
|
||||||
[{marker}]
|
[{marker}]
|
||||||
</a>
|
</a>
|
||||||
|
|||||||
@@ -6,6 +6,18 @@ const stylelintConfig = {
|
|||||||
],
|
],
|
||||||
rules: {
|
rules: {
|
||||||
'declaration-block-no-redundant-longhand-properties': null,
|
'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,
|
'no-descending-specificity': null,
|
||||||
'selector-class-pattern': null,
|
'selector-class-pattern': null,
|
||||||
'custom-property-pattern': null,
|
'custom-property-pattern': null,
|
||||||
|
|||||||
Reference in New Issue
Block a user