首页 > 其他分享 >git commit 提交 格式化代码

git commit 提交 格式化代码

时间:2022-10-17 21:34:54浏览次数:34  
标签:git 格式化 add json prettier https commit config

一,

yarn add --dev --exact prettier

二,

echo {}> .prettierrc.json

三,

prettier.json  文件添加

build

coverage

 

四,

yarn add eslint-config-prettier -D

在package.json "eslintConfig"添加"prettier"




 

 

参考链接:

https://prettier.io/docs/en/install.html

https://github.com/prettier/eslint-config-prettier#installation

 

 

标签:git,格式化,add,json,prettier,https,commit,config
From: https://www.cnblogs.com/yurro/p/16800770.html

相关文章

  • git & Sourcetree All In One
    git&SourcetreeAllInOneSourcetreeFreeGitGUIforMacandWindowshttps://www.sourcetreeapp.com/refshttps://confluence.atlassian.com/get-started-w......
  • Git 03:分支管理之解决冲突
    Git分支管理:解决冲突引入冲突当两个修改并入同一条分支中,造成了相互干扰,合并就会产生冲突。接下来,我们创建两个分支,并进行并行操作,人为制造合并的冲突。首先,我们从gi......
  • Python format()格式化输出方法详解
    前面章节介绍了如何使用%操作符对各种类型的数据进行格式化输出,这是早期 Python 提供的方法。自Python2.6版本开始,字符串类型(str)提供了 format()方法对字符串进行......
  • GitHub Desktop Clone GitHub的项目并在本地更新里面的内容再上传上去的方法
    已经上传的项目,想下载到本地更新里面的内容再上传上去(比如个人简历),怎么通过GitHubDesktop实现:1.打开GitHubDesktop->File->Clonerepository,如下所示:  2.之后定......
  • 基于Gitlab+Gitlab-CI+Docker的持续集成部署(含.gitlab-ci.yml说明)
    ​安装gitlabhttps://www.gitlab.com.cn/yuminstallcurlpolicycoreutilsopenssh-serveropenssh-clientsyuminstallpostfixsystemctlenablepostfixsystemctlstart......
  • git
    gitGit相关的配置文件1、Git\etc\gitconfig:Git安装目录下的gitconfig--system系统级2、C:\Users\Administrator\.gitconfig只适用于当前登录用户的配置......
  • 关于异常-git日常开发问题
    问题解决方法      是.husky下面的pre-commit已经存在了删除掉这个pre-commit文件再从stash里把内容Apply拿出来提交就可以了 ......
  • git 如何统计某人代码提交行数、提交次数
     最近一年老王提交的代码行数:gitlog--author="laowang"--since='2021-10-01'--until='2022-10-17'--pretty=tformat:--numstat|gawk'{add+=$1;subs+=$......
  • GitLab 用户头像无法显示解决方法
    修改/etc/gitlab/gitlab.rbgitlab_rails['gravatar_plain_url']='https://gravatar.loli.net/avatar/%{hash}?s=%{size}&d=identicon'gitlab_rails['gravatar_ssl_ur......
  • git使用
    [Bilibili]友情链接](https://www.bilibili.com/video/BV19a411t7Xj/?spm_id_from=333.337.search-card.all.click&vd_source=e3040aea4ee566d9f6b73f688a9e0286)......