Skip to content

How to add support within {% javascript %} tag in .liquid files #299

@alvinkonda

Description

@alvinkonda

Currently, the plugin is working fine in .liquid files if my jS code is within the normal <script> tag but I want to add support if I use the recommended way from Shopify to add JS codes, within the {% javascript %} some JS code {% endjavascript %} tag

Any solution?

I have the following in my eslint.config.mjs file:

  {
    files: ["**/*.liquid"],
    plugins: { html },
    settings: {
      "html/html-extensions": [".liquid"],
    },
  },

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions