Skip to content

Instantly share code, notes, and snippets.

@farynaio
Last active December 12, 2023 16:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save farynaio/2a1eb382e65ab67b44d396fa44f3100f to your computer and use it in GitHub Desktop.
Save farynaio/2a1eb382e65ab67b44d396fa44f3100f to your computer and use it in GitHub Desktop.
prettier.el output
;; Please create a Gist with the contents of this buffer.
;; MAKE SURE TO REMOVE ANY SENSITIVE INFORMATION FIRST
(:emacs-version
"GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.37, cairo version 1.16.0)\n of 2023-09-29"
:prettier-el-version "1.3.0" :buffer-file-name
"/home/user/foo/app/dashboard/layout.tsx"
:remote-id nil :major-mode rjsx-mode :exec-path
("/home/user/.nvm/versions/node/v20.6.1/bin")
:env
("TERM=dumb" "NVM_BIN=/home/user/.nvm/versions/node/v20.6.1/bin"
"NPM_TOKEN" "LC_TIME" "LC_NUMERIC" "LC_MONETARY" "LC_MESSAGES"
"LC_CTYPE" "LC_COLLATE" "LANGUAGE" "MANPATH"
"LIBRARY_PATH=/usr/local/opt/gcc/lib/gcc/10:/usr/local/opt/libgccjit/lib/gcc/10:/usr/local/opt/gcc/lib/gcc/10/gcc/x86_64-apple-darwin19/10.2.0"
"GIO_LAUNCHED_DESKTOP_FILE=/home/user/.local/share/applications/emacs.desktop"
"XDG_DATA_DIRS=/usr/local/share:/usr/share:/var/lib/snapd/desktop"
"_JAVA_AWT_WM_NONREPARENTING=1" "VMTYPE=AppVM" "QT_ACCESSIBILITY=1"
"SHELL=/usr/bin/bash"
"SSH_AUTH_SOCK=/tmp/ssh-XXXXXXP7eCkT/agent.1195" "LANG=en_US.UTF-8"
"SSL_CERT_DIR=/etc/ssl/certs"
"XDG_RUNTIME_DIR=/run/user/1000" "LSP_USE_PLISTS=true"
"PATH=/home/user/.nvm/versions/node/v20.6.1/bin:~/.rbenv/versions/2.7.1/bin:/home/user/.local/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/snap/bin:/snap/bin"
"QT_X11_NO_MITSHM=1" "WINDOWPATH=7" "GNOME_DESKTOP_SESSION_ID=c4"
"XDG_SESSION_ID=c4" "XDG_SESSION_CLASS=user"
"LOGNAME=user"
"GIO_LAUNCHED_DESKTOP_FILE_PID=55579"
"DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus"
"SYSTEMD_EXEC_PID=945" "HOME=/home/user" "SHLVL=1"
"UPDTYPE=UpdateableVM" "XDG_SESSION_TYPE=x11" "SSH_AGENT_PID=1251"
"XDG_SEAT=seat0"
"USER=user" "QREXEC_SERVICE_ARGUMENT=emacs")
:prettier-options
(:versions
(:node "20.6.1" :acorn "8.10.0" :ada "2.6.0" :ares "1.19.1" :base64
"0.5.0" :brotli "1.0.9" :cjs_module_lexer "1.2.2" :cldr
"43.1" :icu "73.2" :llhttp "8.1.1" :modules "115" :napi "9"
:nghttp2 "1.55.1" :nghttp3 "0.7.0" :ngtcp2 "0.8.1" :openssl
"3.0.10+quic" :simdutf "3.2.17" :tz "2023c" :undici "5.23.0"
:unicode "15.0" :uv "1.46.0" :uvwasi "0.0.18" :v8
"11.3.244.8-node.14" :zlib "1.2.13.1-motley" :prettier
"3.0.3")
:options
(:endOfLine "lf" :tabWidth 2 :printWidth 80 :useTabs nil
:singleQuote t :plugins
[(:languages
[(:linguistLanguageId 50 :name "CSS" :type "markup"
:tmScope "source.css" :aceMode
"css" :codemirrorMode "css"
:codemirrorMimeType "text/css"
:color "#563d7c" :extensions
[".css" ".wxss"] :parsers
["css"] :vscodeLanguageIds
["css"])
(:linguistLanguageId 262764437 :name "PostCSS" :type
"markup" :color "#dc3a0c"
:tmScope "source.postcss" :group
"CSS" :extensions
[".pcss" ".postcss"] :aceMode
"text" :parsers ["css"]
:vscodeLanguageIds ["postcss"])
(:linguistLanguageId 198 :name "Less" :type "markup"
:color "#1d365d" :aliases
["less-css"] :extensions
[".less"] :tmScope
"source.css.less" :aceMode
"less" :codemirrorMode "css"
:codemirrorMimeType "text/css"
:parsers ["less"]
:vscodeLanguageIds ["less"])
(:linguistLanguageId 329 :name "SCSS" :type "markup"
:color "#c6538c" :tmScope
"source.css.scss" :aceMode
"scss" :codemirrorMode "css"
:codemirrorMimeType
"text/x-scss" :extensions
[".scss"] :parsers ["scss"]
:vscodeLanguageIds ["scss"])
(:linguistLanguageId 139 :name "GraphQL" :type "data"
:color "#e10098" :extensions
[".graphql" ".gql" ".graphqls"]
:tmScope "source.graphql"
:aceMode "text" :parsers
["graphql"] :vscodeLanguageIds
["graphql"])
(:linguistLanguageId 155 :name "Handlebars" :type
"markup" :color "#f7931e"
:aliases ["hbs" "htmlbars"]
:extensions
[".handlebars" ".hbs"] :tmScope
"text.html.handlebars" :aceMode
"handlebars" :parsers
["glimmer"] :vscodeLanguageIds
["handlebars"])
(:linguistLanguageId 146 :name "Angular" :type
"markup" :tmScope
"text.html.basic" :aceMode
"html" :codemirrorMode
"htmlmixed" :codemirrorMimeType
"text/html" :color "#e34c26"
:aliases ["xhtml"] :extensions
[".component.html"] :parsers
["angular"] :vscodeLanguageIds
["html"] :filenames [])
(:linguistLanguageId 146 :name "HTML" :type "markup"
:tmScope "text.html.basic"
:aceMode "html" :codemirrorMode
"htmlmixed" :codemirrorMimeType
"text/html" :color "#e34c26"
:aliases ["xhtml"] :extensions
[".html" ".hta" ".htm"
".html.hl" ".inc" ".xht"
".xhtml" ".mjml"]
:parsers ["html"]
:vscodeLanguageIds ["html"])
(:linguistLanguageId 146 :name
"Lightning Web Components" :type
"markup" :tmScope
"text.html.basic" :aceMode
"html" :codemirrorMode
"htmlmixed" :codemirrorMimeType
"text/html" :color "#e34c26"
:aliases ["xhtml"] :extensions
[] :parsers ["lwc"]
:vscodeLanguageIds ["html"]
:filenames [])
(:linguistLanguageId 391 :name "Vue" :type "markup"
:color "#41b883" :extensions
[".vue"] :tmScope
"text.html.vue" :aceMode "html"
:parsers ["vue"]
:vscodeLanguageIds ["vue"])
(:linguistLanguageId 183 :name "JavaScript" :type
"programming" :tmScope
"source.js" :aceMode
"javascript" :codemirrorMode
"javascript" :codemirrorMimeType
"text/javascript" :color
"#f1e05a" :aliases ["js" "node"]
:extensions
[".js" "._js" ".bones" ".cjs"
".es" ".es6" ".frag" ".gs"
".jake" ".javascript" ".jsb"
".jscad" ".jsfl" ".jslib"
".jsm" ".jspre" ".jss" ".mjs"
".njs" ".pac" ".sjs" ".ssjs"
".xsjs" ".xsjslib" ".wxs"]
:filenames ["Jakefile"]
:interpreters
["chakra" "d8" "gjs" "js" "node"
"nodejs" "qjs" "rhino" "v8"
"v8-shell" "zx"]
:parsers
["babel" "acorn" "espree"
"meriyah" "babel-flow"
"babel-ts" "flow" "typescript"]
:vscodeLanguageIds
["javascript" "mongo"])
(:linguistLanguageId 183 :name "Flow" :type
"programming" :tmScope
"source.js" :aceMode
"javascript" :codemirrorMode
"javascript" :codemirrorMimeType
"text/javascript" :color
"#f1e05a" :aliases []
:extensions [".js.flow"]
:filenames [] :interpreters
["chakra" "d8" "gjs" "js" "node"
"nodejs" "qjs" "rhino" "v8"
"v8-shell"]
:parsers ["flow" "babel-flow"]
:vscodeLanguageIds
["javascript"])
(:linguistLanguageId 183 :name "JSX" :type
"programming" :tmScope
"source.js.jsx" :aceMode
"javascript" :codemirrorMode
"jsx" :codemirrorMimeType
"text/jsx" :extensions [".jsx"]
:parsers
["babel" "babel-flow" "babel-ts"
"flow" "typescript" "espree"
"meriyah"]
:vscodeLanguageIds
["javascriptreact"] :group
"JavaScript")
(:linguistLanguageId 378 :name "TypeScript" :type
"programming" :color "#3178c6"
:aliases ["ts"] :interpreters
["deno" "ts-node"] :extensions
[".ts" ".cts" ".mts"] :tmScope
"source.ts" :aceMode
"typescript" :codemirrorMode
"javascript" :codemirrorMimeType
"application/typescript"
:parsers
["typescript" "babel-ts"]
:vscodeLanguageIds
["typescript"])
(:linguistLanguageId 94901924 :name "TSX" :type
"programming" :color "#3178c6"
:group "TypeScript" :extensions
[".tsx"] :tmScope "source.tsx"
:aceMode "javascript"
:codemirrorMode "jsx"
:codemirrorMimeType "text/jsx"
:parsers
["typescript" "babel-ts"]
:vscodeLanguageIds
["typescriptreact"])
(:linguistLanguageId 174 :name "JSON.stringify" :type
"data" :color "#292929" :tmScope
"source.json" :aceMode "json"
:codemirrorMode "javascript"
:codemirrorMimeType
"application/json" :aliases
["geojson" "jsonl" "topojson"]
:extensions [".importmap"]
:filenames
["package.json"
"package-lock.json"
"composer.json"]
:parsers ["json-stringify"]
:vscodeLanguageIds ["json"])
(:linguistLanguageId 174 :name "JSON" :type "data"
:color "#292929" :tmScope
"source.json" :aceMode "json"
:codemirrorMode "javascript"
:codemirrorMimeType
"application/json" :aliases
["geojson" "jsonl" "topojson"]
:extensions
[".json" ".4DForm" ".4DProject"
".avsc" ".geojson" ".gltf"
".har" ".ice"
".JSON-tmLanguage" ".mcmeta"
".tfstate" ".tfstate.backup"
".topojson" ".webapp"
".webmanifest" ".yy" ".yyp"]
:filenames
[".all-contributorsrc"
".arcconfig" ".auto-changelog"
".c8rc" ".htmlhintrc"
".imgbotconfig" ".nycrc"
".tern-config" ".tern-project"
".watchmanconfig"
"Pipfile.lock" "composer.lock"
"flake.lock" "mcmod.info"]
:parsers ["json"]
:vscodeLanguageIds ["json"])
(:linguistLanguageId 423 :name "JSON with Comments"
:type "data" :color "#292929"
:group "JSON" :tmScope
"source.js" :aceMode
"javascript" :codemirrorMode
"javascript" :codemirrorMimeType
"text/javascript" :aliases
["jsonc"] :extensions
[".jsonc" ".code-snippets"
".sublime-build"
".sublime-commands"
".sublime-completions"
".sublime-keymap"
".sublime-macro"
".sublime-menu"
".sublime-mousemap"
".sublime-project"
".sublime-settings"
".sublime-theme"
".sublime-workspace"
".sublime_metrics"
".sublime_session"]
:filenames
[".babelrc" ".devcontainer.json"
".eslintrc.json" ".jscsrc"
".jshintrc" ".jslintrc"
".swcrc" "api-extractor.json"
"devcontainer.json"
"jsconfig.json"
"language-configuration.json"
"tsconfig.json" "tslint.json"
".eslintrc"]
:parsers ["json"]
:vscodeLanguageIds ["jsonc"])
(:linguistLanguageId 175 :name "JSON5" :type "data"
:color "#267CB9" :extensions
[".json5"] :tmScope "source.js"
:aceMode "javascript"
:codemirrorMode "javascript"
:codemirrorMimeType
"application/json" :parsers
["json5"] :vscodeLanguageIds
["json5"])
(:linguistLanguageId 222 :name "Markdown" :type
"prose" :color "#083fa1"
:aliases ["md" "pandoc"]
:aceMode "markdown"
:codemirrorMode "gfm"
:codemirrorMimeType "text/x-gfm"
:wrap t :extensions
[".md" ".livemd" ".markdown"
".mdown" ".mdwn" ".mkd" ".mkdn"
".mkdown" ".ronn" ".scd"
".workbook"]
:filenames
["contents.lr" "README"]
:tmScope "text.md" :parsers
["markdown"] :vscodeLanguageIds
["markdown"])
(:linguistLanguageId 222 :name "MDX" :type "prose"
:color "#083fa1" :aliases
["md" "pandoc"] :aceMode
"markdown" :codemirrorMode "gfm"
:codemirrorMimeType "text/x-gfm"
:wrap t :extensions [".mdx"]
:filenames [] :tmScope "text.md"
:parsers ["mdx"]
:vscodeLanguageIds ["mdx"])
(:linguistLanguageId 407 :name "YAML" :type "data"
:color "#cb171e" :tmScope
"source.yaml" :aliases ["yml"]
:extensions
[".yml" ".mir" ".reek" ".rviz"
".sublime-syntax" ".syntax"
".yaml" ".yaml-tmlanguage"
".yaml.sed" ".yml.mysql"]
:filenames
[".clang-format" ".clang-tidy"
".gemrc" "CITATION.cff"
"glide.lock" ".prettierrc"
".stylelintrc" ".lintstagedrc"]
:aceMode "yaml" :codemirrorMode
"yaml" :codemirrorMimeType
"text/x-yaml" :parsers ["yaml"]
:vscodeLanguageIds
["yaml" "ansible"
"home-assistant"])]
:options
(:singleQuote
(:category "Common" :type "boolean" :default nil
:description
"Use single quotes instead of double quotes.")
:bracketSpacing
(:category "Common" :type "boolean" :default t
:description
"Print spaces between brackets."
:oppositeDescription
"Do not print spaces between brackets.")
:bracketSameLine
(:category "Common" :type "boolean" :default nil
:description
"Put > of opening tags on the last line instead of on a new line.")
:htmlWhitespaceSensitivity
(:category "HTML" :type "choice" :default "css"
:description
"How to handle whitespaces in HTML."
:choices
[(:value "css" :description
"Respect the default value of CSS display property.")
(:value "strict" :description
"Whitespaces are considered sensitive.")
(:value "ignore" :description
"Whitespaces are considered insensitive.")])
:singleAttributePerLine
(:category "Common" :type "boolean" :default nil
:description
"Enforce single attribute per line in HTML, Vue and JSX.")
:vueIndentScriptAndStyle
(:category "HTML" :type "boolean" :default nil
:description
"Indent script and style tags in Vue files.")
:arrowParens
(:category "JavaScript" :type "choice" :default
"always" :description
"Include parentheses around a sole arrow function parameter."
:choices
[(:value "always" :description
"Always include parens. Example: `(x) => x`")
(:value "avoid" :description
"Omit parens when possible. Example: `x => x`")])
:jsxBracketSameLine
(:category "JavaScript" :type "boolean" :description
"Put > on the last line instead of at a new line."
:deprecated "2.4.0")
:semi
(:category "JavaScript" :type "boolean" :default t
:description "Print semicolons."
:oppositeDescription
"Do not print semicolons, except at the beginning of lines which may need them.")
:jsxSingleQuote
(:category "JavaScript" :type "boolean" :default nil
:description "Use single quotes in JSX.")
:quoteProps
(:category "JavaScript" :type "choice" :default
"as-needed" :description
"Change when properties in objects are quoted."
:choices
[(:value "as-needed" :description
"Only add quotes around object properties where required.")
(:value "consistent" :description
"If at least one property in an object requires quotes, quote all properties.")
(:value "preserve" :description
"Respect the input use of quotes in object properties.")])
:trailingComma
(:category "JavaScript" :type "choice" :default "all"
:description
"Print trailing commas wherever possible when multi-line."
:choices
[(:value "all" :description
"Trailing commas wherever possible (including function arguments).")
(:value "es5" :description
"Trailing commas where valid in ES5 (objects, arrays, etc.)")
(:value "none" :description
"No trailing commas.")])
:proseWrap
(:category "Common" :type "choice" :default
"preserve" :description
"How to wrap prose." :choices
[(:value "always" :description
"Wrap prose if it exceeds the print width.")
(:value "never" :description
"Do not wrap prose.")
(:value "preserve" :description
"Wrap prose as-is.")]))
:parsers nil :printers
(:estree
(:experimentalFeatures (:avoidAstMutation t)
:handleComments nil)
:estree-json nil))
(:parsers
(:prettier-el-null-parser (:astFormat "estree")))
(:name "prettier-plugin-packagejson" :parsers
(:json-stringify (:astFormat "estree-json")))
(:name "prettier-plugin-tailwindcss" :options
(:tailwindConfig
(:since "0.0.0" :type "string" :category
"Tailwind CSS" :description
"Path to Tailwind configuration file")
:tailwindAttributes
(:since "0.3.0" :type "string" :array t
:default [(:value [])] :category
"Tailwind CSS" :description
"List of attributes/props that contain sortable Tailwind classes")
:tailwindFunctions
(:since "0.3.0" :type "string" :array t
:default [(:value [])] :category
"Tailwind CSS" :description
"List of functions and tagged templates that contain sortable Tailwind classes"))
:parsers
(:html (:astFormat "html") :glimmer
(:astFormat "glimmer") :lwc
(:astFormat "html") :angular
(:astFormat "html") :vue
(:astFormat "html") :css
(:astFormat "postcss") :scss
(:astFormat "postcss") :less
(:astFormat "postcss") :babel
(:astFormat "estree") :babel-flow
(:astFormat "estree") :flow
(:astFormat "estree") :typescript
(:astFormat "estree") :babel-ts
(:astFormat "estree") :acorn
(:astFormat "estree") :meriyah
(:astFormat "estree") :__js_expression
(:astFormat "estree"))
:printers nil)]
:cursorOffset -1 :bracketSpacing t :bracketSameLine nil
:htmlWhitespaceSensitivity "css" :singleAttributePerLine
nil :vueIndentScriptAndStyle nil :arrowParens "always"
:semi t :jsxSingleQuote nil :quoteProps "as-needed"
:trailingComma "all" :proseWrap "preserve"
:tailwindAttributes [] :tailwindFunctions []
:insertPragma nil :rangeEnd 1 :rangeStart 0
:requirePragma nil :embeddedLanguageFormatting "auto"
:astFormat "estree" :locEnd nil :locStart nil :printer
(:experimentalFeatures (:avoidAstMutation t)
:handleComments nil)
:originalText ".")
:bestParser "babel"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment