Comments (2)
Hi @max8hine,
stylelint-config-prettier
disables any stylelint rules that may conflict with prettier's formatting of the files. Prettier shall format your css files based upon the settings in your prettierrc. In this case it is honoring your singleQuotes setting.
If you want to use different prettier settings for different file types then you can use overrides as @j-f1 says. Change your .prettierrc to the following if you want to use single quotes for all files except css files:
{
"singleQuote": true,
"overrides": [
{
"files": "*.css",
"options": { "singleQuote": false }
}
]
}
Please let me know if that resolves your issue so I we can close this issue
from stylelint-prettier.
You can add an overrides
section to your Prettier config.
from stylelint-prettier.
Related Issues (20)
- Long declaration not correctly formated HOT 1
- All fixture tests are ignored by prettier itself actually
- stylelint: Could not find "stylelint-config-prettier". Do you need a `configBasedir`? HOT 4
- Stylelint V3 requires plugin to expose it's self. The plugin is not doing this. HOT 3
- Seeing a lot of "Insert line break" errors HOT 1
- I've this issue `188:3 โ Insert "ยทยท" prettier/prettier` with `--fix` flag, but no error without `--fix` flag HOT 3
- perf: recommend disable the rule for files which have already handled by `esling-plugin-prettier`
- Can't lint or format svelte files at all HOT 1
- Prettier changing imports breaks build HOT 1
- After stylelint 15, stylelint-config-prettier should be remove. HOT 1
- Delete "โ" (prettier/prettier) HOT 2
- Support prettier v3 HOT 7
- 4.0.1 causes crash if a .prettierrc.js file is not present HOT 1
- Ignored vue file style block? HOT 3
- Attempting to install `stylelint-config-prettier` results in NPM error HOT 1
- `Parsing error: Unexpected token` when used with `stylelint-config-html` HOT 1
- Unknown rule prettier/prettier HOT 1
- Require ES module HOT 1
- conflict with styelint-order "emptyLineBefore" option HOT 1
- conflict with Stylelint: Expected empty line before at-rule (at-rule-empty-line-before) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stylelint-prettier.