Skip to content

[stylelint-plugin] Unknown rule shopify/content-no-strings #191

@ben10code

Description

@ben10code

Overview

I was casually writing code and stumbled upon this linting error. Not sure if it's a bug, but looks like one 🤔

Unknown rule shopify/content-no-strings. stylelint(shopify/content-no-strings)

image

image

Snippet from the screenshot:

  const imageMarkup = () => {
    let imageStyle = null;
    if (card.image && !selected) {
      imageStyle = {
        backgroundSize: 'cover',
        backgroundPosition: '50%',
        backgroundImage: `url(${card.image.src})`,
      };
    } else if (card.image && selected) {
      imageStyle = {
        backgroundSize: '70%',
        backgroundPosition: '50%',
        backgroundRepeat: 'no-repeat',
        backgroundImage: `url(${card.image.src})`,
      };
    } else {
      imageStyle = undefined;
    }

    return <div className={styles.Image} style={imageStyle} />;
  };

Consuming repo

What repo were you working in when this issue occurred?

Shopify/email

Checklist

  • Please delete the labels section before submitting your issue
  • I have described this issue in a way that is actionable (if possible)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions