Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include example of stylelint doesn't work #184

Closed
croszatycki opened this issue Dec 6, 2017 · 1 comment
Closed

Include example of stylelint doesn't work #184

croszatycki opened this issue Dec 6, 2017 · 1 comment
Assignees
Labels
bug 🐛 Issue is a confirmed bug

Comments

@croszatycki
Copy link

Do you want to request a feature or report a bug?
Bug

What is the current behavior?
In version 0.4.1 you didn't attached stylelint-config.js

> stylelint "src/**/*.jsx" "src/**/*.scss"

Error: Could not find "linaria/stylelint-config". Do you need a `configBasedir`?
    at module.exports (./node_modules/stylelint/lib/utils/configurationError.js:8:28)
    at module.exports (./node_modules/stylelint/lib/utils/getModulePath.js:18:11)
    at loadExtendedConfig (./node_modules/stylelint/lib/augmentConfig.js:186:22)
    at resultPromise.then.resultConfig (./node_modules/stylelint/lib/augmentConfig.js:161:16)
    at <anonymous>

If the current behavior is a bug, please provide the steps to reproduce and a minimal repository on GitHub that we can yarn install and yarn test.
yarn add linaria --dev
prepare .stylelintrc file

{
  "extends": [
    "linaria/stylelint-config"
  ]
}

exec stylelint

What is the expected behavior?
Missing lint files in release version

Please provide your exact Babel configuration and mention your Linaria, Node, Yarn/npm version and operating system.

Temporary fix:

{
  "processors": ["stylelint-processor-styled-components"],
  "syntax": "scss",
  "extends": ["stylelint-config-recommended"],
  "rules": {
    "at-rule-name-case": "lower",
    "unit-case": "lower",
    "no-empty-source": null,
    "no-extra-semicolons": null
  }
}
@zamotany zamotany added the bug 🐛 Issue is a confirmed bug label Dec 6, 2017
@zamotany zamotany self-assigned this Dec 6, 2017
@zamotany
Copy link
Contributor

zamotany commented Dec 6, 2017

Fixed in 0.4.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Issue is a confirmed bug
Projects
None yet
Development

No branches or pull requests

2 participants