This repository was archived by the owner on Apr 17, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 93
This repository was archived by the owner on Apr 17, 2023. It is now read-only.
Plugin support? #395
Copy link
Copy link
Closed
Labels
Description
I'm curious if there is anything missing in prettier-atom to support plugins. After locally installing prettier and prettier-plugin-elm (which I developed myself 😃 ), the plugin works from the command line, but not in the editor. In particular, pressing control+option+f while editing a markdown file, does not format ```elm code blocks. Running yarn prettier same-file.md from the terminal does this job perfectly.
What could be causing the issue? Can it be that the way prettier is spawned does not let it search for prettier-plugin-* in node_modules?
Prettier: Debug
Atom version: 1.24.1
prettier-atom version: 0.52.0
prettier version: 1.11.1
prettier-eslint version: 8.8.1
prettier-atom configuration: {
"formatOnSaveOptions": {
"enabled": true,
"isDisabledIfNoConfigFile": true,
"showInStatusBar": true,
"respectEslintignore": true,
"excludedGlobs": [],
"whitelistedGlobs": [],
"isDisabledIfNotInPackageJson": false
},
"silenceErrors": true,
"useEditorConfig": false,
"useEslint": false,
"useStylelint": false,
"prettierOptions": {
"singleQuote": false,
"bracketSpacing": true,
"semi": true,
"useTabs": false,
"jsxBracketSameLine": false,
"printWidth": 80,
"tabWidth": "auto",
"trailingComma": "none",
"parser": "babylon",
"arrowParens": "avoid"
},
"prettierEslintOptions": {
"prettierLast": false
},
"scopes": {
"javascript": [
"source.js",
"source.jsx",
"source.js.jsx",
"source.babel",
"source.js-semantic",
"text.html.basic",
"text.html.vue"
],
"typescript": [
"source.ts",
"source.tsx",
"source.ts.tsx"
],
"css": [
"source.css",
"source.less",
"source.css.less",
"source.scss",
"source.css.scss",
"source.css.postcss"
],
"json": [
"source.json"
],
"graphQl": [
"source.graphql"
],
"markdown": [
"source.md",
"source.gfm",
"text.md"
],
"vue": [
"text.html.vue"
]
}
}
UPD: Same issue in prettier/prettier-vscode#395 (even the same id 😄)
Reactions are currently unavailable