ericalli / static-site-boilerplate

A better workflow for building modern static websites.
http://staticsiteboilerplate.com
MIT License
1.74k stars 166 forks source link

Error: No configuration provided for styles.scss #38

Open karolsw3 opened 4 years ago

karolsw3 commented 4 years ago

What's wrong? When I'm running npm run start after setting up the project with wizard, I'm getting this error:

Error: No configuration provided for /Users/username/Documents/GitHub/repo-name/src/stylesheets/styles.scss at module.exports (/Users/username/Documents/GitHub/repo-name/node_modules/stylelint/lib/utils/configurationError.js:8:28) at searchForConfig.then.then.config (/Users/username/Documents/GitHub/repo-name/node_modules/stylelint/lib/getConfigForFile.js:55:15)

To Reproduce Steps to reproduce the behavior:

  1. Run npm install
  2. Run npm run start
  3. See the error

Expected behavior Error not showing up.

Screenshots

Screenshot 2019-12-18 at 22 16 23

Desktop:

I've tried installing and running it two times already.

LMulvey commented 4 years ago

Looks like you're missing a .stylelintrc.js in your root folder (adjacent to your package.json) with these contents:

module.exports = {
  "extends": "stylelint-config-standard",
  "plugins": ["stylelint-scss"],
  "rules": {
    "at-rule-no-unknown": null,
    "scss/at-rule-no-unknown": true,
    "no-descending-specificity": null
  },
}