14

When i try to npm start, error:

No configuration provided for .../main.scss, Error in plugin "gulp-stylelint".

Someone help me!

tk421
  • 5,775
  • 6
  • 23
  • 34
Neo
  • 151
  • 1
  • 1
  • 7
  • 1
    Seems like you haven´t written a config for linting your scss https://stylelint.io/user-guide/configuration/ – amyloula Apr 05 '19 at 09:40

1 Answers1

22

The quickest way to add a configuration to stylelint is to extend one of the official shared configs:

You should extend the standard config if you want stylelint to enforce stylistic conventions like spaces after colons in declarations and use the recommended config if you don't.

To use the standard config you should first install it as a devDependency:

npm install stylelint-config-standard --save-dev 

Then create a configuration file, e.g. .stylelintrc.json, in the root of your project and add the following content to it:

{
  "extends": "stylelint-config-standard"
}
jeddy3
  • 3,451
  • 1
  • 12
  • 21