No configuration provided for scss file
Asked Answered
R

1

19

When i try to npm start, error:

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

Someone help me!

Rusk answered 5/4, 2019 at 9:34 Comment(1)
The correct link is stylelint.io/user-guide/configure.Glower
D
24

The quickest way to add a configuration to Stylelint is to extend one of the officially shared config options:

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, for example .stylelintrc.json, in the root of your project and add the following content to it:

{
  "extends": "stylelint-config-standard"
}
Declaration answered 6/4, 2019 at 21:43 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.