feat: add image.imgProps
, image.figureProps
, `image.figcaptionPro…
#10
Annotations
10 errors and 2 warnings
check:
src/directives/image.ts#L1
All imports in the declaration are only used as types. Use `import type`.
|
check:
src/directives/image.ts#L3
All imports in the declaration are only used as types. Use `import type`.
|
check:
src/directives/image.ts#L17
Variable name `DEFAULT_NAME` must match one of the following formats: strictCamelCase
|
check:
src/directives/image.ts#L18
Variable name `RESERVED_NAMES` must match one of the following formats: strictCamelCase
|
check:
src/directives/image.ts#L20
Variable name `VALID_TAGS` must match one of the following formats: strictCamelCase
|
check:
src/directives/image.ts#L60
Prefer the spread operator over `Array.from(…)`.
|
check:
src/directives/image.ts#L61
Prefer `String#replaceAll()` over `String#replace()`.
|
check:
src/directives/image.ts#L71
Don't use `null` as a type. Use `undefined` instead. See: https://github.com/sindresorhus/meta/issues/7
|
check:
src/directives/image.ts#L119
The variable `imgProps` should be named `imgProperties`. A more descriptive name will do too.
|
check:
src/directives/image.ts#L122
Assignment (=) can be replaced with operator assignment (||=).
|
check
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
test (lts/*, ubuntu-latest)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|