Coder Social home page Coder Social logo

web-norm's Issues

少安装了一个依赖

image
win11,Vue3-ts
执行web-norm命令之后,pnpm Install,会报缺少一个依赖,
Peer dependencies that should be installed:
inquirer@^8.0.0
如果安装的时候,不指定它的版本,就会下载到9以上的版本,然而9版本在commit的时候会有问题,安装回8版本之后没问题。

不太好用啊

试了一下不太好用啊,没有自动化格式校验不说,基本的模板工程也没

lint-stage 写法

发现生成的 lint-stage 为:

{
"lint-staged": {
    "*.{js,ts,vue,jsx,tsx}": ['npm run eslint'],
    "*.{js,jsx,ts,tsx,md,html,css,lees,scss,sass}": 'prettier --write',
  }
}

是不是应该是这样?

{
"lint-staged": {
    "*.{js,ts,vue,jsx,tsx}": ["npm run eslint","prettier --write"],
    "*.{md,html,css,lees,scss,sass}": "prettier --write",
  }
}

之前我和上面的配置方式一样,但是好像 commit 的时候 eslint 没有生效,后来改成后面这样的就好了。环境是mac+vscode

项目结构出现了mac独有的`.DS_Store`

你好,对这个项目比较感兴趣。
在fork之后,看了下好像是没有配置.gitignore,导致文件中有一些.DS_Storeyarn-error这类的冗余文件也在项目中。

于是提交了个PR #8 ,配置了一下文件。

自定义配置以及右键配置

感觉这个可以帮助新项目省很多力气
作者有想过将这个弄到老项目的场景嘛?比如支持自定义是保存时格式化,还是右键点击格式化
或者提示报错的信息,是否支持自定义与默认合并组成最终的验证格式化规则

提Issues标准

  1. 明确说明自己代码运行环境 IOS | window 框架是vue(2|3) 还是react
  2. 如有报错,提供报错截图

好像没用

使用的是window系统,用的普通node项目,没有vue或者react,安装了eslint和prettier插件,
image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.