prettier-stylelint icon indicating copy to clipboard operation
prettier-stylelint copied to clipboard

Warning: `parser` with value "postcss" is deprecated. Use "css", "less" or "scss" instead.

Open wbern opened this issue 8 years ago • 17 comments

./node_modules/.bin/prettier-stylelint src/assets/css/ahu.less --quiet
Warning: `parser` with value "postcss" is deprecated. Use "css", "less" or "scss" instead.

Not sure if it's because of prettier or this plugin.

https://prettier.io/docs/en/options.html#parser

wbern avatar Oct 30 '17 06:10 wbern

thank you for reporting i'll check this out, also need to update the vscode extension.

hugomrdias avatar Oct 30 '17 14:10 hugomrdias

I thought I'd open a PR here but the discussions over here started making my head spin!

kaelig avatar Nov 01 '17 23:11 kaelig

Is there any progress on this issue? There is a fork referenced above that seems to be solving it. On the other hand, the parser can simply become a new parameter (not sure if the new css parser would work with less and scss). It also seems like the vscode extension is using an older version of this package. I see discrepancies between running prettier-stylelint via command line and saving a file while using prettier.stylelintIntegration in vsCode (the ordes specified by stylelint-order is respected by the command line but not by the vscode extension)

mmellado avatar Nov 24 '17 10:11 mmellado

I'll address this issue and vscode extension in the weekend sorry for the delay

Hugo Dias

On Nov 24, 2017 10:37, "Marcos Mellado" [email protected] wrote:

Is there any progress on this issue? There is a fork referenced above that seems to be solving it. It also seems like the vscode extension is using an older version of this package. I see discrepancies between running prettier-stylelint via command line and saving a file while using prettier.stylelintIntegration in vsCode (the ordes specified by stylelint-order is respected by the command line but not by the vscode extension)

— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub https://github.com/hugomrdias/prettier-stylelint/issues/3#issuecomment-346797551, or mute the thread https://github.com/notifications/unsubscribe-auth/AATLToM3Bu7FCP3PPMECswPQ3wG4HWvpks5s5pxXgaJpZM4QKt9M .

hugomrdias avatar Nov 24 '17 17:11 hugomrdias

bump

mmellado avatar Dec 06 '17 09:12 mmellado

hey man, great tool!! I am having this issue now so im wondering if im doing something wrong

csantiago132 avatar Dec 20 '17 22:12 csantiago132

@hugomrdias Looking at 0cfcb62 in @JonathanWolfe's fork, it seems this fix should be fairly easy, or is there more to it?

wbern avatar Feb 20 '18 08:02 wbern

In case this helps, @ismail-syed also forked the repo and applied a different fix than @jonathanwolfe: https://github.com/ismail-syed/prettier-stylelint-formatter/commit/1f0cf835240d6f61acded2ce85772952f5a2ad1e

kaelig avatar Feb 21 '18 04:02 kaelig

I'm seeing a 'Couldn't resolve parser "postcss"' message in VSCode's Output panel whenever I save a .scss file. Sounds like the same/similar issue running v0.4.2

icreatestuff avatar Feb 27 '18 14:02 icreatestuff

@kaelig @ismail-syed's fix is not a good one, because not everyone uses "css".

prettier supports automatically recognizing the type used, so it is completely fine to simply remove the property, like what @JonathanWolfe did.

wbern avatar Mar 16 '18 14:03 wbern

bump 2

meszaros-lajos-gyorgy avatar Jul 16 '18 09:07 meszaros-lajos-gyorgy

Any progress on it? Still getting this warning :(

atipugin avatar Jul 18 '18 07:07 atipugin

bump 3

meszaros-lajos-gyorgy avatar Sep 04 '18 10:09 meszaros-lajos-gyorgy

bump 4 :)

mazhermon avatar Sep 24 '18 22:09 mazhermon

I'm afraid this project is no longer maintained :( Anyone care to fork it and continue the work?

meszaros-lajos-gyorgy avatar Sep 25 '18 10:09 meszaros-lajos-gyorgy

In the meantime I published a temporary package, containing updated dependencies and the fix for this warning (which @ismail-syed opened this pull request for https://github.com/hugomrdias/prettier-stylelint/pull/6).

-> https://www.npmjs.com/package/prettier-stylelint-temp

isellsoap avatar Dec 13 '18 10:12 isellsoap

$ prettier-stylelint --write -q 'src/**/*.{css,scss,less}' 
{ parser: "postcss" } is deprecated; we now treat it as { parser: "css" }.

buyou0821 avatar Mar 15 '19 08:03 buyou0821