Fix local ./lint.sh stylelint script errors for CCC
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3576094. --> Reported by: [kristen pol](https://www.drupal.org/user/8389) Related to !118 >>> <p>[Tracker]<br> <strong>Update Summary: </strong>[One-line status update for stakeholders]<br> <strong>Check-in Date: </strong>MM/DD/YYYY<br> <strong>Blocked by: </strong>[#XXXXXX] (New issues on new lines)<br> <strong>Additional Collaborators: </strong> @username1, @username2<br> <em>Metadata is used by the <a href="https://www.drupalstarforge.ai/" title="AI Tracker">AI Tracker.</a> Docs and additional fields <a href="https://www.drupalstarforge.ai/ai-dashboard/docs" title="AI Issue Tracker Documentation">here</a>.</em><br> [/Tracker]</p> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>We have a ./lint.sh script in the module that people can run to check for issues before committing.</p> <p>Right now, the pipeline is clean with no stylelint errors, but when I run ./lint.sh locally, I get the following errors, likely due to version mismatches on my local compared to GitLab CI.</p> <pre>Running stylelint (CSS linting)...<br><br>css/ai_context.css<br>&nbsp;&nbsp; 1:1&nbsp;&nbsp; &#10006;&nbsp; Expected // for comments instead of /*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; scss/comment-no-loud<br>&nbsp;&nbsp; 6:1&nbsp;&nbsp; &#10006;&nbsp; Expected // for comments instead of /*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; scss/comment-no-loud<br>&nbsp;&nbsp; 8:21&nbsp; &#10006;&nbsp; Expected "currentColor" to be "currentcolor"&nbsp; value-keyword-case<br>&nbsp; 19:1&nbsp;&nbsp; &#10006;&nbsp; Expected // for comments instead of /*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; scss/comment-no-loud<br>&nbsp; 32:68&nbsp; &#10006;&nbsp; Expected "0.19" to be "19%"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; alpha-value-notation<br>&nbsp; 37:61&nbsp; &#10006;&nbsp; Expected "0.15" to be "15%"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; alpha-value-notation<br>&nbsp; 40:1&nbsp;&nbsp; &#10006;&nbsp; Expected // for comments instead of /*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; scss/comment-no-loud<br>&nbsp; 46:1&nbsp;&nbsp; &#10006;&nbsp; Expected // for comments instead of /*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; scss/comment-no-loud<br>&nbsp; 67:1&nbsp;&nbsp; &#10006;&nbsp; Expected // for comments instead of /*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; scss/comment-no-loud<br>&nbsp; 72:1&nbsp;&nbsp; &#10006;&nbsp; Expected // for comments instead of /*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; scss/comment-no-loud<br>&nbsp; 82:66&nbsp; &#10006;&nbsp; Expected single quotes&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; string-quotes<br>&nbsp; 83:66&nbsp; &#10006;&nbsp; Expected single quotes&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; string-quotes<br>&nbsp; 92:1&nbsp;&nbsp; &#10006;&nbsp; Expected // for comments instead of /*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; scss/comment-no-loud<br>&nbsp; 97:1&nbsp;&nbsp; &#10006;&nbsp; Expected // for comments instead of /*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; scss/comment-no-loud<br> 103:1&nbsp;&nbsp; &#10006;&nbsp; Expected // for comments instead of /*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; scss/comment-no-loud<br> 112:1&nbsp;&nbsp; &#10006;&nbsp; Expected // for comments instead of /*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; scss/comment-no-loud<br> 122:1&nbsp;&nbsp; &#10006;&nbsp; Expected // for comments instead of /*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; scss/comment-no-loud<br> 129:1&nbsp;&nbsp; &#10006;&nbsp; Expected // for comments instead of /*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; scss/comment-no-loud<br> 136:1&nbsp;&nbsp; &#10006;&nbsp; Expected // for comments instead of /*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; scss/comment-no-loud<br><br>css/ai_context_overview.css<br>&nbsp; 1:1&nbsp;&nbsp; &#10006;&nbsp; Expected // for comments instead of /*&nbsp; scss/comment-no-loud<br> 43:31&nbsp; &#10006;&nbsp; Expected single quotes&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; string-quotes<br> 45:12&nbsp; &#10006;&nbsp; Expected single quotes&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; string-quotes<br><br>22 problems (22 errors, 0 warnings)<br><br>&#10007; stylelint (CSS linting) failed</pre><h3 id="summary-proposed-resolution">Proposed resolution</h3> <p>Figure out how to make ./lint.sh show no stylelint errors when there are no errors in GitLab CI.</p> <h3 id="summary-remaining-tasks">Target date or deadline</h3> <p>March 2026</p> <h3 id="summary-remaining-tasks">Remaining tasks</h3> <ul> <li>Fix it or document how to fix on people's local machine if it's a versioning issue</li> <li>Review and test</li> </ul> <h3 id="summary-ai-usage">AI usage (if applicable)</h3> <p>[ ] AI Assisted Issue<br> This issue was generated with AI assistance, but was reviewed and refined by the creator.</p> <p>[ ] AI Assisted Code<br> This code was mainly generated by a human, with AI autocompleting or parts AI generated, but under full human supervision.</p> <p>[ ] AI Generated Code<br> This code was mainly generated by an AI with human guidance, and reviewed, tested, and refined by a human.</p> <p>[ ] Vibe Coded<br> This code was generated by an AI and has only been functionally tested.</p>
issue