240 lines
7.7 KiB
JSON
240 lines
7.7 KiB
JSON
{
|
|
"name": "coc-prettier",
|
|
"version": "1.1.24",
|
|
"description": "prettier extension for coc.nvim",
|
|
"main": "lib/index.js",
|
|
"publisher": "chemzqm",
|
|
"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": "chemzqm@gmail.com",
|
|
"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": {
|
|
"core-js": "^3.9.1",
|
|
"prettier": "^2.2.1",
|
|
"prettier-eslint": "^12.0.0",
|
|
"prettier-stylelint": "^0.4.2",
|
|
"prettier-tslint": "^0.4.2"
|
|
}
|
|
}
|