Comments (1)
You shouldn't enable stylelint rules that conflict with prettier. This is because prettier's ethos is that prettier should handle code formatting, while linters should handle code quality.
You should disable the declaration-colon-newline-after rule. You can use https://github.com/prettier/stylelint-config-prettier to disable all rules that would conflict with prettier including declaration-colon-newline-after. That package also provides a helper tool that lets you identify any rules that you currently have enabled that would conflict with prettier's styling.
from stylelint-prettier.
Related Issues (20)
- 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.