Shopify / theme-check

The Ultimate Shopify Theme Linter
Other
333 stars 96 forks source link

Add support for `login_button` filter #751

Closed nuotsu closed 7 months ago

nuotsu commented 7 months ago

Describe the bug login_button filter isn't recognized and the linter displays an error squiggly line.

Expected Not show the linter error line.

Actual The following Liquid code is accurate but shows the squiggly line:

{{ shop | login_button: action: 'follow' }}
Screenshot 2023-11-26 at 11 28 18 AM

Stack trace

Undefined filter login_buttontheme-check (UnknownFilter)

Debugging information

Additional context

charlespwd commented 7 months ago

Same as https://github.com/Shopify/theme-check/issues/750

Try the following in your vscode settings.json

{
  "shopifyLiquid.themeCheckNextDevPreview": true
}