Skip to content

[linter] Runtime preload should only be required if boilerplate is still presentΒ #1255

@schlessera

Description

@schlessera

In #1248, we've skipped adding the AMP runtime preload(s) when the boilerplate had already been removed.

However, the linter still requires the runtime preload to be present unconditionally in https://github.com/ampproject/amp-toolbox/blob/main/packages/linter/src/rules/RuntimeIsPreloaded.ts.

The linter should also check for the presence of the boilerplate and only require the runtime preload if the boilerplate is still present.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions