prettier

vue 3 组件库(基于 element-ui 修改)

為{幸葍}努か 提交于 2020-10-01 02:40:13
(wip)Element-UI 3 (Ale-UI) for vue3 这是一个基于 element-ui 修改的,支持 Vue 3 的组件库,你可以叫它 element3,也可以叫它 Ale (爱了)。 目前 0.1.0 版本已经发布到 github,完成了 17 个组件的修改。 不过一个人力量有限,所以在希望可以得到更多的开发支持,非常欢迎各位大神可以 star 和 commit 提交 请注意代码规范(项目内嵌了 prettier)。 提交前请先拉取代码,以免产生不必要的冲突 提交规范: key: value 。比如:重构了 button 按钮 -> refactor: refactor button key 可选 : feat:新功能(feature) fix:修补bug docs:文档(documentation) style: 格式(不影响代码运行的变动) refactor:重构(即不是新增功能,也不是修改bug的代码变动) test:增加测试 chore:构建过程或辅助工具的变动 release: 发布 已移植组件 - Layout 布局 - Container 布局容器 - Color 色彩 - Typography 字体 - Border 边框 - Icon 图标 - Button 按钮 - Link 文字链接 - Radio 单选框 - Checkbox 多选框

What's the difference between prettier-eslint, eslint-plugin-prettier and eslint-config-prettier?

吃可爱长大的小学妹 提交于 2020-08-20 16:18:52
问题 I want to use Prettier and ESLint together, but I experienced some conflicts just by using them one after another. I see that there are these three packages that seem to allow them to be used in tandem: prettier-eslint eslint-plugin-prettier eslint-config-prettier However, I am unsure which to use as these package names all contain eslint and prettier . Which should I use? 回答1: ESLint contains many rules and those that are formatting-related might conflict with Prettier, such as arrow-parens

记VS Code 中格式化 Vue 文件的问题

回眸只為那壹抹淺笑 提交于 2020-08-19 20:43:28
使用快捷键 Alt+Shift+F 时,选择了 Vetur 进行格式化。但是当按下快捷键一刹那,脑壳 weng weng 的。 JS 部分的 ' 全都成了 " ,每句后面也添加上了 ; 经过查找,发现需要配置 Vetur 的JS formatter 为 prettier-eslint : "vetur.format.defaultFormatter.js": "prettier-eslint" 配置如下图: 作博以备忘 来源: oschina 链接: https://my.oschina.net/hyjiacan/blog/4511687

vscode配置 eslint +prettier

我的未来我决定 提交于 2020-08-16 06:14:20
{ "editor.fontFamily" : "Menlo, Consolas, 'Courier New', monospace" , "editor.fontLigatures" : true , "editor.fontSize" : 24 , "editor.fontWeight" : "500" , "editor.lineHeight" : 24 , "editor.lineNumbers" : "on" , "editor.minimap.enabled" : false , "editor.renderIndentGuides" : false , "editor.rulers" : [ 120 ] , "editor.formatOnPaste" : true , "workbench.colorTheme" : "One Dark Pro" , "explorer.confirmDelete" : false , "terminal.integrated.fontFamily" : "monospace" , "editor.formatOnType" : false , "editor.formatOnSave" : true , "eslint.validate" : [ "javascript" , "javascriptreact" , {

前端开发工具vscode插件推荐及配置

笑着哭i 提交于 2020-08-15 01:46:43
vscode插件推荐 vscode 配置 ESLint "files.autoSave": "off", "eslint.validate": [ "javascript", "javascriptreact", "html", { "language": "vue", "autoFix": true } ], "eslint.options": { "plugins": [ "html" ] }, "eslint.autoFixOnSave": true, Vscode + Prettier "prettier.singleQuote": true, "prettier.semi": false, "prettier.eslintIntegration": true, "prettier.printWidth": 120, "editor.formatOnSave": true, Vscode + Vetur "vetur.format.defaultFormatter.js": "vscode-typescript", "vetur.format.defaultFormatter.html": "js-beautify-html", "vetur.format.defaultFormatterOptions": { "js-beautify-html": { "wrap