-
Couldn't load subscription status.
- Fork 23
Open
Description
Here is a reproduction of the issue:
const stylelint = require('stylelint');
stylelint
.lint({
code: `@import url('(https://example.com');`,
config: {
extends: ['stylelint-config-recommended-scss'],
rules: {
'scss/operator-no-newline-after': true,
'scss/operator-no-newline-before': true,
'scss/operator-no-unspaced': true,
},
},
})
.then((result) => {
console.log(result);
})
.catch((error) => {
console.log(error);
});The rules specified in config.rules cause the node process to consume >100% CPU resource. My guess is that stylelint is looking for a closing parenthesis for the erroneous one at the start of the URL string, and rather than throwing an error when it can't find it, ends up in an infinite loop.
Metadata
Metadata
Assignees
Labels
No labels