Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

No configuration provided for scss file

Tags:

npm

stylelint

When i try to npm start, error:

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

Someone help me!

like image 601
Neo Avatar asked Apr 05 '19 09:04

Neo


People also ask

Is there any configuration provided for.../main SCSS?

No configuration provided for .../main.scss, Error in plugin "gulp-stylelint". Someone help me! Show activity on this post. 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.

How to create SCSS files instead of CSS when creating components?

The other thing you need to do is update your CLI configuration to create SCSS files instead of CSS files when you create new components. There are two ways to do this — using the CLI command or adding the reference manually. To use the command type the following into your terminal: ng config schematics.@schematics/angular:component.styleext scss

What is SCSS auto compile?

It automatically compiles your . scss files into .css files for the browser to read. Why use SCSS? SCSS allows for use of variables, nesting selectors, imports, mixins, and other features that are not yet available in CSS.

What is the use of SCSS?

SCSS is a preprocessor for CSS that lets you use additional features in your CSS stylesheets. It automatically compiles your . scss files into .css files for the browser to read. Why use SCSS?


1 Answers

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

  • stylelint-config-recommended
  • stylelint-config-standard

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"
}
like image 190
jeddy3 Avatar answered Sep 19 '22 14:09

jeddy3