Permalink
ab40f8d Jan 5, 2017
executable file 138 lines (136 sloc) 3.69 KB
{
"name": "beautify",
"displayName": "beautify",
"description": "Beautify code in place for VS Code",
"version": "0.7.3",
"publisher": "HookyQR",
"engines": { "vscode": "^1.6.0" },
"categories": ["Other", "Languages", "Formatters"],
"activationEvents": ["*"],
"icon": "icon.svg",
"galleryBanner": {
"color": "#e8e030",
"theme": "light"
},
"license": "MIT",
"main": "./extension",
"contributes": {
"languages": [{
"id": "json",
"aliases": ["JSON"],
"filenames": [".jsbeautifyrc", ".jshintrc"]
}],
"jsonValidation": [{
"fileMatch": ".jsbeautifyrc",
"url": "./schema/beautifyrc.json"
}],
"commands": [{
"command": "HookyQR.beautify",
"title": "Beautify selection"
}, {
"command": "HookyQR.beautifyFile",
"title": "Beautify file"
}],
"configuration": {
"type": "object",
"title": "Beautify config",
"properties": {
"beautify.language": {
"type": "object",
"description": "Link file types to the beautifier type",
"default": {
"js": {
"type": ["javascript", "json"],
"filename": [".jshintrc", ".jsbeautify"]
},
"css": ["css", "scss"],
"html": ["htm", "html"]
},
"properties": {
"js": {
"type": ["object", "array"],
"items": { "type": "string" },
"description": "Array of language types, or an object containing types, extensions and filenames to associate",
"properties": {
"type": {
"type": "array",
"items": { "type": "string" },
"description": "VS Code language name"
},
"ext": {
"type": "array",
"items": { "type": "string" },
"description": "File extensions (without the leading dot)"
},
"filename": {
"type": "array",
"items": { "type": "string" },
"description": "Full filenames (eg: '.jsbeautifyrc')"
}
}
},
"css": {
"type": ["object", "array"],
"items": { "type": "string" },
"description": "Array of language types, or an object containing types, extensions and filenames to associate",
"properties": {
"type": {
"type": "array",
"items": { "type": "string" },
"description": "VS Code language name"
},
"ext": {
"type": "array",
"items": { "type": "string" },
"description": "File extensions (without the leading dot)"
},
"filename": {
"type": "array",
"items": { "type": "string" },
"description": "Full filenames (eg: '.jsbeautifyrc')"
}
}
},
"html": {
"type": ["object", "array"],
"items": { "type": "string" },
"description": "Array of language types, or an object containing types, extensions and filenames to associate",
"properties": {
"type": {
"type": "array",
"items": { "type": "string" },
"description": "VS Code language name"
},
"ext": {
"type": "array",
"items": { "type": "string" },
"description": "File extensions (without the leading dot)"
},
"filename": {
"type": "array",
"items": { "type": "string" },
"description": "Full filenames (eg: '.jsbeautifyrc')"
}
}
}
}
}
}
}
},
"dependencies": {
"js-beautify": "1.6.8",
"editorconfig": "0.13.2"
},
"devDependencies": {
"mocha": "^3.0.0",
"expect.js": "~0.3.1",
"vscode": "^1.0.0"
},
"scripts": { "test": "node ./node_modules/vscode/bin/test" },
"repository": {
"type": "git",
"url": "https://github.com/HookyQR/VSCodeBeautify"
},
"bugs": { "url": "https://github.com/HookyQR/VSCodeBeautify/issues" }
}