question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support formatting CSS

See original GitHub issue

The latest release includes Prettier 1.4.0, which includes support for CSS formatting, but prettier-atom doesn’t seem to be running for CSS files. I tried adding source.css to my Scopes list, but that didn’t do it.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:4
  • Comments:13

github_iconTop GitHub Comments

25reactions
hutch120commented, Jun 4, 2018

I was getting a popup error prettier-atom failed: No configuration provided for ... somedir\somefile.css.

To fix I had to disable the StyleLint integration option in Settings -> Packages -> prettier-atom.

Stack trace (when StyleLint integration option is enabled):

C:\..\.atom\packages\prettier-atom\dist\executePrettier\handleError.js:55 Error: No configuration provided for C:\..\styles.css
    at module.exports (configurationError.js:8)
    at getConfigForFile.js:46
    at <anonymous>
displayErrorInPopup @ C:\..\.atom\packages\prettier-atom\dist\executePrettier\handleError.js:55
n @ C:\..\.atom\packages\prettier-atom\node_modules\lodash\lodash.min.js:5
(anonymous) @ C:\..\.atom\packages\prettier-atom\node_modules\lodash\lodash.min.js:97
n @ C:\..\.atom\packages\prettier-atom\node_modules\lodash\lodash.min.js:5
(anonymous) @ C:\..\.atom\packages\prettier-atom\node_modules\lodash\lodash.min.js:63
(anonymous) @ C:\..\.atom\packages\prettier-atom\node_modules\lodash\lodash.min.js:49
_callee2$ @ C:\..\.atom\packages\prettier-atom\dist\executePrettier\executePrettierOnBufferRange.js:175
tryCatch @ C:\..\.atom\packages\prettier-atom\node_modules\regenerator-runtime\runtime.js:62
invoke @ C:\..\.atom\packages\prettier-atom\node_modules\regenerator-runtime\runtime.js:296
prototype.(anonymous function) @ C:\..\.atom\packages\prettier-atom\node_modules\regenerator-runtime\runtime.js:114
step @ C:\..\.atom\packages\prettier-atom\node_modules\babel-runtime\helpers\asyncToGenerator.js:17
(anonymous) @ C:\..\.atom\packages\prettier-atom\node_modules\babel-runtime\helpers\asyncToGenerator.js:30
1reaction
darahakcommented, Jun 27, 2017

@robwise I don’t know. I suppose yes, if Prettier supports it, but the README only mentions SCSS and LESS. Is there a specific syntax for PostCSS? I thought it was just like Babel for CSS.

Disclaimer: I have very limited experience with CSS and preprocessors.

Read more comments on GitHub >

github_iconTop Results From Across the Web

supports - CSS: Cascading Style Sheets - MDN Web Docs
The @supports CSS at-rule lets you specify CSS declarations that depend on a browser's support for CSS features. Using this at-rule is ...
Read more >
HTML Styles CSS - W3Schools
Cascading Style Sheets (CSS) is used to format the layout of a webpage. With CSS, you can control the color, font, the size...
Read more >
CSS, SCSS, and Less support in Visual Studio Code
Find out how Visual Studio Code can support your CSS, SCSS and Less development. ... Visual Studio Code has built-in support for editing...
Read more >
CSS - Cascading Style Sheets, designing for the Web - W3C
Some browsers, such as Netscape's Navigator version 2 and 3 don't support style sheets but they know enough about the style element to...
Read more >
CSS-Tricks - Tips, Tricks, and Techniques on using Cascading ...
Daily articles about CSS, HTML, JavaScript, and all things related to web design and development.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found