Package Details: stylelint 17.11.1-1

Git Clone URL: https://aur.archlinux.org/stylelint.git (read-only, click to copy)
Package Base: stylelint
Description: Mighty, modern CSS linter
Upstream URL: https://stylelint.io
Licenses: MIT
Submitter: arojas
Maintainer: mewsen
Last Packager: mewsen
Votes: 4
Popularity: 3.17
First Submitted: 2026-04-06 21:08 (UTC)
Last Updated: 2026-05-14 11:49 (UTC)

Latest Comments

mewsen commented on 2026-05-11 16:16 (UTC)

@tuhtah you are right. It fails when build inside a path containing a dot prefixed directory.

tuhtah commented on 2026-05-11 15:58 (UTC) (edited on 2026-05-11 16:36 (UTC) by tuhtah)

I just discovered that the test only fails if a parent directory starts with a dot. This is the case when using yay or paru which places the source directory under ~/.cache/yay.

See: https://github.com/stylelint/stylelint/issues/9278#issuecomment-4422324526

That would explain why we all are hitting it and mewsen couldn't reproduce it.

@mewsen Does it work for you even if you build the package using yay or paru or invoke makepkg inside a path that contains a leading dot, e.g. ~/Scratch/.foo/stylelint?

aurragon commented on 2026-05-11 11:57 (UTC) (edited on 2026-05-11 11:58 (UTC) by aurragon)

I tried with clean chroot and 1 test fails

Summary of all failing tests
 FAIL  lib/__tests__/ignore.test.mjs
  ● file in node_modules is ignored when using codeFilename

    expect(received).toHaveLength(expected)

    Expected length: 0
    Received length: 1
    Received array:  [{"_postcssResult": {"css": "a {}", "map": undefined, "messages": [{"column": 3, "end": [Object], "endColumn": 5, "endLine": 1, "fix": undefined, "line": 1, "node": [Rule], "rule": "block-no-empty", "severity": "error", "start": [Object], "text": "Empty block (block-no-empty)", "type": "warning"}], "opts": {"from": "/home/cs/.cache/paru/clone/stylelint/src/stylelint/lib/__tests__/fixtures/node_modules/test.css", "syntax": {"parse": [Function parse], "stringify": [Function stringify]}}, "processor": {"plugins": [], "version": "8.5.13"}, "root": {"indexes": [Object], "inputs": [Array], "lastEach": 3, "nodes": [Array], "raws": [Object], "source": [Object], "type": "root"}, "stylelint": {"config": {"rules": [Object], "validate": true}, "customMessages": {"block-no-empty": undefined}, "customUrls": {"block-no-empty": undefined}, "disabledRanges": {"all": [Array]}, "fixersData": {}, "lexer": {"atrules": [Object], "cssWideKeywords": [Array], "cssWideKeywordsSyntax": [Object], "generic": true, "properties": [Object], "structure": [Object], "syntax": [Object], "types": [Object], "units": [Object]}, "quiet": undefined, "quietDeprecationWarnings": false, "rangesOfComputedEditInfos": [], "referenceRoots": [], "ruleMetadata": {"block-no-empty": [Object]}, "ruleSeverities": {"block-no-empty": "error"}, "stylelintError": true, "stylelintWarning": false}}, "autofixed": undefined, "deprecations": [], "errored": true, "ignored": undefined, "invalidOptionWarnings": [], "parseErrors": [], "source": "/home/cs/.cache/paru/clone/stylelint/src/stylelint/lib/__tests__/fixtures/node_modules/test.css", "warnings": [{"column": 3, "endColumn": 5, "endLine": 1, "fix": undefined, "line": 1, "rule": "block-no-empty", "severity": "error", "text": "Empty block (block-no-empty)", "url": undefined}]}]

      485 |     });
      486 |
    > 487 |     expect(results).toHaveLength(0);
          |                    ^
      488 | });
      489 |
      490 | test('disableDefaultIgnores allows codeFilename in node_modules', async () => {

      at Object.<anonymous> (lib/__tests__/ignore.test.mjs:487:18)


Test Suites: 1 failed, 324 passed, 325 total
Tests:       1 failed, 14 skipped, 11018 passed, 11033 total
Snapshots:   14 passed, 14 total
Time:        7.179 s, estimated 8 s
Ran all test suites.

mewsen commented on 2026-05-11 09:13 (UTC)

@Spixmaster Did you try building in a clean chroot? Just tested it: https://paste.c-net.org/ScannedLaynie

Spixmaster commented on 2026-05-09 05:36 (UTC) (edited on 2026-05-09 17:47 (UTC) by Spixmaster)

One test currently fails, 17.11.0-2. Reported with https://github.com/stylelint/stylelint/issues/9278.