hugomrdias / prettier-stylelint

code > prettier > stylelint > formatted code
MIT License
175 stars 29 forks source link

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

Open wbern opened 7 years ago

wbern commented 7 years ago
./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

hugomrdias commented 7 years ago

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

kaelig commented 7 years ago

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

mmellado commented 6 years ago

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)

hugomrdias commented 6 years ago

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" notifications@github.com 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 .

mmellado commented 6 years ago

bump

csantiago132 commented 6 years ago

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

wbern commented 6 years ago

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

kaelig commented 6 years ago

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

icreatestuff commented 6 years ago

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

wbern commented 6 years ago

@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.

meszaros-lajos-gyorgy commented 6 years ago

bump 2

atipugin commented 6 years ago

Any progress on it? Still getting this warning :(

meszaros-lajos-gyorgy commented 6 years ago

bump 3

mazhermon commented 6 years ago

bump 4 :)

meszaros-lajos-gyorgy commented 6 years ago

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

isellsoap commented 5 years ago

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

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