Fixed linting issues
This commit is contained in:
@@ -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}>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user