stylus/stylelint-stylus

Not working with styleline 16.3.0

andrmoel opened this issue · 10 comments

I recently upgraded stylelint from 16.2.1 to 16.3.0 and using stylelint-stylus throws an error:

$ stylelint "**/*.scss"
Error: No configuration provided for /home/foo/bar.scss

Actually stylelint-stylus does not provide configuration for SCSS.

This has nothing to do with scss.
Let's change it to css. The behavor is the same ;)

package.json

    "stylelint": "^16.3.0",
    "stylelint-config-standard": "^36.0.0",
    "stylelint-stylus": "^1.0.0",

.stylelintrc.json

{
 "extends": [
   "stylelint-config-standard",
   "stylelint-stylus/standard"
 ]
}

Command to execute:

$ npx stylelint "**/*.css"
Error: No configuration provided for /home/foo/bar.css

I can't reproduce the problem well. Could you please provide a repo that reproduces the problem?

Same error for me. I upgrade stylelint from 15.6.0 to 16.3.0 and get error:

image

I debugged it and it doesn't even load the stylelint-stylus/standard entry point js file. It could be a bug in stylelint itself 🤔

The current workaround is to change the configuration file to a js file so that it clearly tells the path of the js that is the entry point.

module.exports = {
  "extends": [
    "stylelint-config-standard",
    require.resolve("stylelint-stylus/standard")
  ]
}

The cause seems to be the same as this issue:
stylelint/stylelint#7576

The fix has been merged, please wait for the stylelint patch release.

Thank you!