{"_id":"@0x706b/coc-prettier","_rev":"4-0434c472077b962a69e8aee82d1d8721","name":"@0x706b/coc-prettier","dist-tags":{"latest":"1.2.2"},"versions":{"1.2.0":{"name":"@0x706b/coc-prettier","version":"1.2.0","description":"prettier extension for coc.nvim","main":"lib/index.js","publisher":"0x706b","keywords":["coc.nvim","prettier"],"engines":{"coc":">= 0.0.30"},"scripts":{"prepare":"node esbuild.js"},"activationEvents":["*"],"contributes":{"configuration":{"type":"object","title":"Prettier - Code formatter configuration","properties":{"prettier.formatterPriority":{"type":"number","default":1,"description":"Priority of format provider, default to 1 that higher than other languageserver formatter, change to -1 to make it lower priority."},"prettier.disableLanguages":{"type":"array","items":{"type":"string"},"default":["vue"],"description":"A list of languages IDs to disable this extension on","scope":"window"},"prettier.eslintIntegration":{"type":"boolean","default":false,"description":"Use 'prettier-eslint' instead of 'prettier'. Other settings will only be fallbacks in case they could not be inferred from eslint rules.","scope":"resource"},"prettier.tslintIntegration":{"type":"boolean","default":false,"description":"Use 'prettier-tslint' instead of 'prettier'. Other settings will only be fallbacks in case they could not be inferred from tslint rules.","scope":"resource"},"prettier.stylelintIntegration":{"type":"boolean","default":false,"description":"Use 'prettier-stylelint' instead of 'prettier'. Other settings will only be fallbacks in case they could not be inferred from stylelint rules.","scope":"resource"},"prettier.requireConfig":{"type":"boolean","default":false,"description":"Require a 'prettierconfig' to format","scope":"resource"},"prettier.onlyUseLocalVersion":{"type":"boolean","default":false,"description":"Only use the version of prettier installed by the client, ignoring the version bundled with coc-prettier","scope":"resource"},"prettier.disableSuccessMessage":{"type":"boolean","default":false,"description":"Disable the 'Formatted by prettier' message which is echoed every time a file is successfully formatted","scope":"resource"},"prettier.statusItemText":{"type":"string","default":"Prettier","description":"Text shown in status item.","scope":"resource"},"prettier.ignorePath":{"type":"string","default":".prettierignore","description":"Path to a .prettierignore or similar file","scope":"resource"},"prettier.printWidth":{"type":"integer","default":80,"description":"Fit code within this line limit","scope":"resource"},"prettier.tabWidth":{"type":"integer","default":2,"description":"Number of spaces it should use per tab","scope":"resource"},"prettier.singleQuote":{"type":"boolean","default":false,"description":"If true, will use single instead of double quotes","scope":"resource"},"prettier.trailingComma":{"type":"string","enum":["none","es5","all"],"default":"es5","description":"Controls the printing of trailing commas wherever possible.\n Valid options:\n    'none' - No trailing commas\n    'es5' - Trailing commas where valid in ES5 (objects, arrays, etc)\n    'all' - Trailing commas wherever possible (function arguments)","scope":"resource"},"prettier.bracketSpacing":{"type":"boolean","default":true,"description":"Controls the printing of spaces inside object literals","scope":"resource"},"prettier.jsxBracketSameLine":{"type":"boolean","default":false,"description":"If true, puts the `>` of a multi-line jsx element at the end of the last line instead of being alone on the next line","scope":"resource"},"prettier.jsxSingleQuote":{"type":"boolean","default":false,"description":"Use single quotes instead of double quotes in JSX"},"prettier.htmlWhitespaceSensitivity":{"type":"string","enum":["css","strict","ignore"],"default":"css","description":"Specify the global whitespace sensitivity for HTML files.\n Valid options: \n'css' - Respect the default value of CSS display property. \n'strict' - Whitespaces are considered sensitive. \n'ignore' - Whitespaces are considered insensitive."},"prettier.endOfLine":{"type":"string","enum":["auto","lf","crlf","cr"],"default":"lf","description":"Specify the end of line used by prettier"},"prettier.parser":{"type":"string","enum":["none","babel","babel-flow","babel-ts","flow","typescript"],"default":"none","description":"Override the parser. You shouldn't have to change this setting.","scope":"resource"},"prettier.semi":{"type":"boolean","default":true,"description":"Whether to add a semicolon at the end of every line","scope":"resource"},"prettier.useTabs":{"type":"boolean","default":false,"description":"Indent lines with tabs","scope":"resource"},"prettier.proseWrap":{"type":"string","enum":["preserve","always","never"],"default":"preserve","description":"(Markdown) wrap prose over multiple lines"},"prettier.arrowParens":{"type":"string","enum":["avoid","always"],"default":"always","description":"Include parentheses around a sole arrow function parameter","scope":"resource"}}},"jsonValidation":[{"fileMatch":".prettierrc","url":"http://json.schemastore.org/prettierrc"},{"fileMatch":".prettierrc.json","url":"http://json.schemastore.org/prettierrc"},{"fileMatch":"package.json","url":"./package-json-schema.json"}]},"author":{"name":"chemzqm@gmail.com"},"publishConfig":{"access":"public"},"license":"MIT","devDependencies":{"@chemzqm/tsconfig":"^0.0.3","@types/node":"^14.14.31","@types/semver":"^7.3.4","coc.nvim":"^0.0.80","esbuild":"^0.8.54","ignore":"^5.1.8","resolve-from":"^5.0.0","rimraf":"^3.0.2","semver":"^7.3.4","typescript":"^4.2.2"},"dependencies":{"@0x706b/prettier-eslint-8":"^0.0.2","core-js":"^3.9.1","prettier":"^2.2.1","prettier-eslint":"^12.0.0","prettier-stylelint":"^0.4.2","prettier-tslint":"^0.4.2"},"_id":"@0x706b/coc-prettier@1.2.0","dist":{"shasum":"41b8b0eae1b36ec847d8497b9725f32a4d63c695","integrity":"sha512-54BsIdGlWt+ZDc+jeiWpQQZHE8AvRuN36VGc0UChN9jj1RlLL5Z0JfuwFp2v95kWErQ8tceYxocGoi4KwHPw2Q==","tarball":"https://registry.npmjs.org/@0x706b/coc-prettier/-/coc-prettier-1.2.0.tgz","fileCount":9,"unpackedSize":109657,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEXYJ9Tv1EHKVbfW1Td+yLqcBO7Ylw7FGNfg7lSaVEcVAiEAueTC1NRessB9lIuORrP8FFEtjLzdxvYXts8BNv/uSmE="}]},"_npmUser":{"name":"0x706b","email":"peter@peterkrol.com"},"directories":{},"maintainers":[{"name":"0x706b","email":"peter@peterkrol.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/coc-prettier_1.2.0_1634704640513_0.761326369758696"},"_hasShrinkwrap":false},"1.2.1":{"name":"@0x706b/coc-prettier","version":"1.2.1","description":"prettier extension for coc.nvim","main":"lib/index.js","publisher":"0x706b","keywords":["coc.nvim","prettier"],"engines":{"coc":">= 0.0.30"},"scripts":{"prepare":"node esbuild.js"},"activationEvents":["*"],"contributes":{"configuration":{"type":"object","title":"Prettier - Code formatter configuration","properties":{"prettier.formatterPriority":{"type":"number","default":1,"description":"Priority of format provider, default to 1 that higher than other languageserver formatter, change to -1 to make it lower priority."},"prettier.disableLanguages":{"type":"array","items":{"type":"string"},"default":["vue"],"description":"A list of languages IDs to disable this extension on","scope":"window"},"prettier.eslintIntegration":{"type":"boolean","default":false,"description":"Use 'prettier-eslint' instead of 'prettier'. Other settings will only be fallbacks in case they could not be inferred from eslint rules.","scope":"resource"},"prettier.tslintIntegration":{"type":"boolean","default":false,"description":"Use 'prettier-tslint' instead of 'prettier'. Other settings will only be fallbacks in case they could not be inferred from tslint rules.","scope":"resource"},"prettier.stylelintIntegration":{"type":"boolean","default":false,"description":"Use 'prettier-stylelint' instead of 'prettier'. Other settings will only be fallbacks in case they could not be inferred from stylelint rules.","scope":"resource"},"prettier.requireConfig":{"type":"boolean","default":false,"description":"Require a 'prettierconfig' to format","scope":"resource"},"prettier.onlyUseLocalVersion":{"type":"boolean","default":false,"description":"Only use the version of prettier installed by the client, ignoring the version bundled with coc-prettier","scope":"resource"},"prettier.disableSuccessMessage":{"type":"boolean","default":false,"description":"Disable the 'Formatted by prettier' message which is echoed every time a file is successfully formatted","scope":"resource"},"prettier.statusItemText":{"type":"string","default":"Prettier","description":"Text shown in status item.","scope":"resource"},"prettier.ignorePath":{"type":"string","default":".prettierignore","description":"Path to a .prettierignore or similar file","scope":"resource"},"prettier.printWidth":{"type":"integer","default":80,"description":"Fit code within this line limit","scope":"resource"},"prettier.tabWidth":{"type":"integer","default":2,"description":"Number of spaces it should use per tab","scope":"resource"},"prettier.singleQuote":{"type":"boolean","default":false,"description":"If true, will use single instead of double quotes","scope":"resource"},"prettier.trailingComma":{"type":"string","enum":["none","es5","all"],"default":"es5","description":"Controls the printing of trailing commas wherever possible.\n Valid options:\n    'none' - No trailing commas\n    'es5' - Trailing commas where valid in ES5 (objects, arrays, etc)\n    'all' - Trailing commas wherever possible (function arguments)","scope":"resource"},"prettier.bracketSpacing":{"type":"boolean","default":true,"description":"Controls the printing of spaces inside object literals","scope":"resource"},"prettier.jsxBracketSameLine":{"type":"boolean","default":false,"description":"If true, puts the `>` of a multi-line jsx element at the end of the last line instead of being alone on the next line","scope":"resource"},"prettier.jsxSingleQuote":{"type":"boolean","default":false,"description":"Use single quotes instead of double quotes in JSX"},"prettier.htmlWhitespaceSensitivity":{"type":"string","enum":["css","strict","ignore"],"default":"css","description":"Specify the global whitespace sensitivity for HTML files.\n Valid options: \n'css' - Respect the default value of CSS display property. \n'strict' - Whitespaces are considered sensitive. \n'ignore' - Whitespaces are considered insensitive."},"prettier.endOfLine":{"type":"string","enum":["auto","lf","crlf","cr"],"default":"lf","description":"Specify the end of line used by prettier"},"prettier.parser":{"type":"string","enum":["none","babel","babel-flow","babel-ts","flow","typescript"],"default":"none","description":"Override the parser. You shouldn't have to change this setting.","scope":"resource"},"prettier.semi":{"type":"boolean","default":true,"description":"Whether to add a semicolon at the end of every line","scope":"resource"},"prettier.useTabs":{"type":"boolean","default":false,"description":"Indent lines with tabs","scope":"resource"},"prettier.proseWrap":{"type":"string","enum":["preserve","always","never"],"default":"preserve","description":"(Markdown) wrap prose over multiple lines"},"prettier.arrowParens":{"type":"string","enum":["avoid","always"],"default":"always","description":"Include parentheses around a sole arrow function parameter","scope":"resource"}}},"jsonValidation":[{"fileMatch":".prettierrc","url":"http://json.schemastore.org/prettierrc"},{"fileMatch":".prettierrc.json","url":"http://json.schemastore.org/prettierrc"},{"fileMatch":"package.json","url":"./package-json-schema.json"}]},"author":{"name":"chemzqm@gmail.com"},"publishConfig":{"access":"public"},"license":"MIT","devDependencies":{"@chemzqm/tsconfig":"^0.0.3","@types/node":"^14.14.31","@types/semver":"^7.3.4","coc.nvim":"^0.0.80","esbuild":"^0.8.54","ignore":"^5.1.8","resolve-from":"^5.0.0","rimraf":"^3.0.2","semver":"^7.3.4","typescript":"^4.2.2"},"dependencies":{"@0x706b/prettier-eslint-8":"^0.0.2","core-js":"^3.9.1","prettier":"^2.2.1","prettier-eslint":"^12.0.0","prettier-stylelint":"^0.4.2","prettier-tslint":"^0.4.2"},"_id":"@0x706b/coc-prettier@1.2.1","dist":{"shasum":"57fed9d863b355a37130955aa7433c52fac3edf0","integrity":"sha512-KbS5iMfxakEZzpMh2wZ3gtlc46BUPdH28C6F0U/RX94nrAnHTK7baTAleLKfnBi/tqWJ78iCbqTaLmJ6twtXww==","tarball":"https://registry.npmjs.org/@0x706b/coc-prettier/-/coc-prettier-1.2.1.tgz","fileCount":9,"unpackedSize":109679,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhue3LCRA9TVsSAnZWagAA1/8P/A6+OvXkRoKbfkbdbWxn\nHUPKLcKApruWI3CR2YhDLnUUd8VgdoGwjfhL9zci22ut+VrQ/4hb27s7expF\nT7B9ak3gL6UOzXAdD7EYHCe5B3almyKAGBkjrrNUGAebGPNYA7QcEF68t9v9\n6p4XqvW9gOS1zH5szi6Z63xO4H2YPf2ci32wTuKEgYM2/CWE1GeYgI5i6x4I\n8deBR+JV/eRbEDdiaEJZv+StpGyAdLJHnefAuARXzhIQ8EngAP62krBsv4N+\nB+BiCtybptVe5deBbnxtpq1iHPZSVgwiEWtPz4vgnD9Q916C9iJIXVY5jveG\nQvI2A6FmlKuh+fh5Jj71ndocs9k3Wwq4+FCc7aGGqycWCPnNZVtnuGQXWn85\nl8yUHscL93+ACKGcQGchmt3vqA+lAMrb2WOVDLGgxTiydb/UXkhjeAHp0ln4\nqeWuMxQYobKlsqhKarJt1BjRlBXd4f0q799+ZJEb2be/UTGvSvxEJo/w6UOn\nqQuE/+jp3URnvLu47vdORL3+h0twAXlnD5qqN6IXc9w06AkmFSruFxzgi16Z\naaFb3IgYC1HTGpaHjNrD+bjpLt/qLSQmRNK/ppBP6p5T4cPO+32iBuWeJxZq\nqzE3HP4pV2cFl4ewOqmU1h2xPnda/MOTDQygbJxByEoU+ENkNxDuOv4mltZK\nPgbV\r\n=y3AO\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFq5djHQxVeki15s73lJzOfj5cDx7nMNTBMI0gxSsEwJAiBXhX48Rm0uOC96QOl+S3Ye/EAXOYqhvxWU8CYmvbBVPA=="}]},"_npmUser":{"name":"0x706b","email":"peter@peterkrol.com"},"directories":{},"maintainers":[{"name":"0x706b","email":"peter@peterkrol.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/coc-prettier_1.2.1_1634776939103_0.8059069033573416"},"_hasShrinkwrap":false},"1.2.2":{"name":"@0x706b/coc-prettier","version":"1.2.2","description":"prettier extension for coc.nvim","main":"lib/index.js","publisher":"0x706b","keywords":["coc.nvim","prettier"],"engines":{"coc":">= 0.0.30"},"scripts":{"prepare":"node esbuild.js"},"activationEvents":["*"],"contributes":{"configuration":{"type":"object","title":"Prettier - Code formatter configuration","properties":{"prettier.formatterPriority":{"type":"number","default":1,"description":"Priority of format provider, default to 1 that higher than other languageserver formatter, change to -1 to make it lower priority."},"prettier.disableLanguages":{"type":"array","items":{"type":"string"},"default":["vue"],"description":"A list of languages IDs to disable this extension on","scope":"window"},"prettier.eslintIntegration":{"type":"boolean","default":false,"description":"Use 'prettier-eslint' instead of 'prettier'. Other settings will only be fallbacks in case they could not be inferred from eslint rules.","scope":"resource"},"prettier.tslintIntegration":{"type":"boolean","default":false,"description":"Use 'prettier-tslint' instead of 'prettier'. Other settings will only be fallbacks in case they could not be inferred from tslint rules.","scope":"resource"},"prettier.stylelintIntegration":{"type":"boolean","default":false,"description":"Use 'prettier-stylelint' instead of 'prettier'. Other settings will only be fallbacks in case they could not be inferred from stylelint rules.","scope":"resource"},"prettier.requireConfig":{"type":"boolean","default":false,"description":"Require a 'prettierconfig' to format","scope":"resource"},"prettier.onlyUseLocalVersion":{"type":"boolean","default":false,"description":"Only use the version of prettier installed by the client, ignoring the version bundled with coc-prettier","scope":"resource"},"prettier.disableSuccessMessage":{"type":"boolean","default":false,"description":"Disable the 'Formatted by prettier' message which is echoed every time a file is successfully formatted","scope":"resource"},"prettier.statusItemText":{"type":"string","default":"Prettier","description":"Text shown in status item.","scope":"resource"},"prettier.ignorePath":{"type":"string","default":".prettierignore","description":"Path to a .prettierignore or similar file","scope":"resource"},"prettier.printWidth":{"type":"integer","default":80,"description":"Fit code within this line limit","scope":"resource"},"prettier.tabWidth":{"type":"integer","default":2,"description":"Number of spaces it should use per tab","scope":"resource"},"prettier.singleQuote":{"type":"boolean","default":false,"description":"If true, will use single instead of double quotes","scope":"resource"},"prettier.trailingComma":{"type":"string","enum":["none","es5","all"],"default":"es5","description":"Controls the printing of trailing commas wherever possible.\n Valid options:\n    'none' - No trailing commas\n    'es5' - Trailing commas where valid in ES5 (objects, arrays, etc)\n    'all' - Trailing commas wherever possible (function arguments)","scope":"resource"},"prettier.bracketSpacing":{"type":"boolean","default":true,"description":"Controls the printing of spaces inside object literals","scope":"resource"},"prettier.jsxBracketSameLine":{"type":"boolean","default":false,"description":"If true, puts the `>` of a multi-line jsx element at the end of the last line instead of being alone on the next line","scope":"resource"},"prettier.jsxSingleQuote":{"type":"boolean","default":false,"description":"Use single quotes instead of double quotes in JSX"},"prettier.htmlWhitespaceSensitivity":{"type":"string","enum":["css","strict","ignore"],"default":"css","description":"Specify the global whitespace sensitivity for HTML files.\n Valid options: \n'css' - Respect the default value of CSS display property. \n'strict' - Whitespaces are considered sensitive. \n'ignore' - Whitespaces are considered insensitive."},"prettier.endOfLine":{"type":"string","enum":["auto","lf","crlf","cr"],"default":"lf","description":"Specify the end of line used by prettier"},"prettier.parser":{"type":"string","enum":["none","babel","babel-flow","babel-ts","flow","typescript"],"default":"none","description":"Override the parser. You shouldn't have to change this setting.","scope":"resource"},"prettier.semi":{"type":"boolean","default":true,"description":"Whether to add a semicolon at the end of every line","scope":"resource"},"prettier.useTabs":{"type":"boolean","default":false,"description":"Indent lines with tabs","scope":"resource"},"prettier.proseWrap":{"type":"string","enum":["preserve","always","never"],"default":"preserve","description":"(Markdown) wrap prose over multiple lines"},"prettier.arrowParens":{"type":"string","enum":["avoid","always"],"default":"always","description":"Include parentheses around a sole arrow function parameter","scope":"resource"}}},"jsonValidation":[{"fileMatch":".prettierrc","url":"http://json.schemastore.org/prettierrc"},{"fileMatch":".prettierrc.json","url":"http://json.schemastore.org/prettierrc"},{"fileMatch":"package.json","url":"./package-json-schema.json"}]},"author":{"name":"chemzqm@gmail.com"},"publishConfig":{"access":"public"},"license":"MIT","devDependencies":{"@chemzqm/tsconfig":"^0.0.3","@types/node":"^14.14.31","@types/semver":"^7.3.4","coc.nvim":"^0.0.80","esbuild":"^0.8.54","ignore":"^5.1.8","resolve-from":"^5.0.0","rimraf":"^3.0.2","semver":"^7.3.4","typescript":"^4.2.2"},"dependencies":{"@0x706b/prettier-eslint-8":"^0.0.3","core-js":"^3.9.1","prettier":"^2.2.1","prettier-eslint":"^12.0.0","prettier-stylelint":"^0.4.2","prettier-tslint":"^0.4.2"},"_id":"@0x706b/coc-prettier@1.2.2","dist":{"shasum":"609547bf788b0529c1745763e7a13d9dd2d5a229","integrity":"sha512-MWnxg6EAJxRx45+er/Is5M7V19SsEryIU9AkCdLEJin97d64jB6UBREou1ParHO/kds2CxaIAjs5z20nH69XcA==","tarball":"https://registry.npmjs.org/@0x706b/coc-prettier/-/coc-prettier-1.2.2.tgz","fileCount":9,"unpackedSize":109679,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhxrB5CRA9TVsSAnZWagAABZoQAIAq9BFv/dyuEC3O1saL\nd9An/dA6w9P0s0CUAHlo8eHaygUznvvqUF8U8sVXEjJivHtP/vtj3Iiz61I4\nf7bHbRfi+bPmEJG6cK/nKEQQIZ1mOv2QXh5bylNW8i4p+jWsxIIeUYYHVwV8\nzhUCSavIOpy770SrUFOWQdlGvhmDryo/N8Wwpvn24qhc3hMWNxbHgQhEaeAA\nHEFW72Yi5+Y62qUltfo+ImNpDgQTJYyTALE/EKFAl2I8H5eNvmV/LQG8uOVV\nlPk+xKcD8k6DwpUBrPaJAast+fe0fvKLgwJFlnER0RFtkOyYlpSk16htYv8t\noDpUTinaRzjR2wX3klG+8EC2abg7OHWBK9Xs5ys3L/RAPu2k0KPUnczWYxo5\noloMm2YLjWuE296m1R/VbBNQbHkkyHT3k9M4LJza96i8r0SQAlbbM3fKLYRv\nrnOluHFAN/LNfKdcqZyRFXo5UM+157R5C78UR6yQriarU8XluT/tqw8wLt5W\nio+bvEQjK7obfcX3rAxBDs8ZDFqLsAScJ2hy/fqx1RDIOFTQVNhiACBpcjo7\nH3HfayiQ0Klt9iArYmabvEZmzHFzjINRuuQ57ICqeUarXZPTdY/Hl5qSF3j6\nCZvbZuM/Maav+oW1/g9GS1CSBGP49sh1WTMicPn8Cqw4PVph/KGqmB2OMeZz\nzfAF\r\n=O/3D\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD6eaU1kNlRyr98gf97MUPGZnt3gioj7RIog/KQGhGF5QIgNVLzJ5xSumrhxIM25oyK1szz2KMZFU3pDoL5/2YpJjg="}]},"_npmUser":{"name":"0x706b","email":"peter@peterkrol.com"},"directories":{},"maintainers":[{"name":"0x706b","email":"peter@peterkrol.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/coc-prettier_1.2.2_1640411257491_0.4429262578572557"},"_hasShrinkwrap":false}},"time":{"created":"2021-10-20T04:37:20.467Z","1.2.0":"2021-10-20T04:37:20.703Z","modified":"2022-04-04T10:27:44.977Z","1.2.1":"2021-10-21T00:42:19.264Z","1.2.2":"2021-12-25T05:47:37.777Z"},"maintainers":[{"name":"0x706b","email":"peter@peterkrol.com"}],"description":"prettier extension for coc.nvim","keywords":["coc.nvim","prettier"],"author":{"name":"chemzqm@gmail.com"},"license":"MIT","readme":"# Prettier formatter for coc.nvim\n\nCoc extension to format your JavaScript / TypeScript / CSS / JSON using [Prettier](https://github.com/prettier/prettier).\n\nA fork of [prettier-vscode](https://github.com/prettier/prettier-vscode)\n\n## Installation\n\nRun vim command:\n\n```\n:CocInstall coc-prettier\n```\n\n## Usage\n\n### Setup `Prettier` command in your `init.vim` or `.vimrc`\n\n```\ncommand! -nargs=0 Prettier :CocCommand prettier.formatFile\n```\n\nThen you can use `:Prettier` to format current buffer.\n\n### Remap keys for range format in your `init.vim` or `.vimrc`\n\n```\nvmap <leader>f  <Plug>(coc-format-selected)\nnmap <leader>f  <Plug>(coc-format-selected)\n```\n\nThen you can `<leader>f` for range format.\n\nPrettier range format only support languageId including: `javascript`,\n`javascriptreact`, `typescript`, `typescriptreact`, `json` and `graphql`.\n\n### Update your `coc-settings.json` for format on save.\n\nOpen settings file with:\n\n    :CocConfig\n\nAdd:\n\n```\n  \"coc.preferences.formatOnSaveFiletypes\": [\"css\", \"markdown\"],\n```\n\nto setup the languages which you want to format on save.\n\n**Note:** prettier extension have lower priority, if the document have other\nregistered document format provider, prettier would not work.\n\nTo check the format is done by prettier, check out the output message after\nformat, which should contains `Formatted by prettier`.\n\nTo make prettier do the format, use command `:CocCommand prettier.formatFile`\n\nTo save without formatting, use `:noa w`\n\n## Settings\n\n### Prettier's Settings\n\nSettings will be read from (listed by priority):\n\n1. [Prettier configuration file](https://prettier.io/docs/en/configuration.html)\n1. `.editorconfig`\n\nOr if no prettier configuration file exist\n\n1. `.editorconfig`\n1. Coc prettier's settings (described below with their default)\n\n#### prettier.printWidth (default: 80)\n\nFit code within this line limit\n\n#### prettier.tabWidth (default: 2)\n\nNumber of spaces it should use per tab\n\n#### prettier.singleQuote (default: false)\n\nIf true, will use single instead of double quotes\n\n#### prettier.trailingComma (default: 'none')\n\nControls the printing of trailing commas wherever possible. Valid options:\n\n- \"none\" - No trailing commas\n- \"es5\" - Trailing commas where valid in ES5 (objects, arrays, etc)\n- \"all\" - Trailing commas wherever possible (function arguments)\n\n#### prettier.bracketSpacing (default: true)\n\nControls the printing of spaces inside object literals\n\n#### prettier.jsxBracketSameLine (default: false)\n\nIf true, puts the `>` of a multi-line jsx element at the end of the last line instead of being alone on the next line\n\n#### prettier.parser (default: 'babylon') - JavaScript only\n\nWhich parser to use. Valid options are 'flow' and 'babylon'.\n\n#### prettier.semi (default: true)\n\nWhether to add a semicolon at the end of every line (semi: true),\nor only at the beginning of lines that may introduce ASI failures (semi: false)\n\n#### prettier.useTabs (default: false)\n\nIf true, indent lines with tabs\n\n#### prettier.proseWrap (default: 'preserve')\n\n(Markdown) wrap prose over multiple lines.\n\n#### prettier.arrowParens (default: 'avoid')\n\nInclude parentheses around a sole arrow function parameter\n\n### Coc specific settings\n\nThese settings are specific to Coc and need to be set in the Coc settings file. See the [documentation](https://github.com/neoclide/coc.nvim/wiki/Using-the-configuration-file) for how to do that.\n\n#### prettier.formatterPriority (default: 1) - priority of formatter\n\nChange it to `-1` if you don't want prettier to have higher priority than\nformatter provided by other language server.\n\n#### prettier.eslintIntegration (default: false) - JavaScript and TypeScript only\n\nUse _[prettier-eslint](https://github.com/prettier/prettier-eslint)_ instead of _prettier_.\nOther settings will only be fallbacks in case they could not be inferred from ESLint rules.\n\n#### prettier.tslintIntegration (default: false) - JavaScript and TypeScript only\n\nUse _[prettier-tslint](https://github.com/azz/prettier-tslint)_ instead of _prettier_.\nOther settings will only be fallbacks in case they could not be inferred from TSLint rules.\n\n#### prettier.stylelintIntegration (default: false) - CSS, SCSS and LESS only\n\nUse _[prettier-stylelint](https://github.com/hugomrdias/prettier-stylelint)_ instead of _prettier_.\nOther settings will only be fallbacks in case they could not be inferred from stylelint rules.\n\n#### prettier.requireConfig (default: false)\n\nRequire a 'prettierconfig' to format\n\n#### prettier.ignorePath (default: .prettierignore)\n\nSupply the path to an ignore file such as `.gitignore` or `.prettierignore`.\nFiles which match will not be formatted. Set to `null` to not read ignore files. Restart required.\n\n#### prettier.disableLanguages (default: [\"vue\"])\n\nA list of languages IDs to disable this extension on. Restart required.\n_Note: Disabling a language enabled in a parent folder will prevent formatting instead of letting any other formatter to run_\n\n#### prettier.statusItemText (default: \"Prettier\")\n\nText of status item indicating current buffer can be formatted by prettier.\n\n#### prettier.onlyUseLocalVersion (default: false)\n\nOnly use the version of prettier installed by the client, ignoring the version bundled with coc-prettier\n\n#### prettier.disableSuccessMessage (default: false)\n\nDisable the 'Formatted by prettier' message which is echoed every time a file is successfully formatted\n\n## Prettier resolution\n\nThis extension will use prettier from your project's local dependencies. Should prettier not be installed locally with your project's dependencies, a copy will be bundled with the extension.\n\n### ESLint and TSLint Integration\n\n`prettier-eslint` and `prettier-tslint` are included with the installation of this extension. There is no need for a separate local or global install of either for functionality.\n\n`eslint`, `tslint`, and all peer dependencies required by your specific configuration must be installed locally. Global installations will not be recognized.\n\n## Contribute\n\nFeel free to open issues or PRs!\n","readmeFilename":"Readme.md"}