-
-
Notifications
You must be signed in to change notification settings - Fork 206
Description
I don't think this is a bug for eslint-plugin-prettier, but one recent PR gives Prettier a chance to load its configure file even in API mode introduce conflict with Webpack at least.
Since 1.6.0 Prettier now pickup '--config' arg from the command line to load its configuration, but it didn't distinguish who was the arg for, so if you set it up with webpack, eslint-loader and eslint-plugin-prettier and running command like
webpack --config webpack.dev.js
could have webpack.dev.js file been pick up by prettier as configuration thus resulting Validation Warning like this:
● Validation Warning:
Unknown option "devtool" with value "#source-map" was found.
This is probably a typing mistake. Fixing it will remove this message.
The reason I rise it here is that given the 'bridge' nature of eslint-plugin-prettier that using prettier in API mode, perhaps we could have flag controls this "loads config file by its self like it did in command mode" behaviour, I'm currently holding at version 2.2.0 to avoid this.
Just my 2 cents, not sure if it's duplicated, Please feel free to correct me.