-
-
Notifications
You must be signed in to change notification settings - Fork 95
isDisabledIfNotInPackageJson option title and description are contradictory #209
Comments
@tsdorsey The description text is wrong, it should be doing what the title says (if you have prettier in your deps, it formats, if you don't, it doesn't). This is the behavior you're getting, right? |
Nope. Node project. I'm using yarn. Do I need to reload the project when the package file changes? Restart Atom? |
Derp. My bad. 😞 I'm using React Starter Kit and you can see here that there are lots of package.json files in subfolders to reduce the number of index.js files in the project. The "is in deps" check is not recursive (which makes sense). So to clarify. The text is wrong but the option does what it should. |
If I add a devDependencies with prettier to the subfolder package.json file and have the option on it works as expected. I've updated the title and initial description to focus on the only real bug, the text mismatch. |
The description was backward. Now the description will correctly reflect the actual behavior. Resolves #209
Yeah, it's installed and in the bin folder. Just read #191 and looking in |
@robwise I'm actually finding this not working as expected on my end. I have prettier in my devDependencies, and no further nested package.json's (just one at the root) and when I have this option turned on it does not auto-format on save. But when I have it turned off, it does auto-format. |
@duro can you make an example repo from scratch that reproduces this? There might be some sort of edge case that I'm overlooking, as it stands right now I'm not able to reproduce. |
The following option is contradicting itself. The way I read them...
Title: "If you find prettier modules in my dependencies then format with prettier on save"
Description: "If you find prettier modules in dependencies then DO NOT format with prettier on save"
The text was updated successfully, but these errors were encountered: