lyh0371 / web-norm Goto Github PK
View Code? Open in Web Editor NEW简化前端项目规范构建(希望它不是个玩具)
简化前端项目规范构建(希望它不是个玩具)
为啥安装最新版之后vscode 自动保存格式化不生效了,之前旧的版本是可以的
需要支持装饰语法
试了一下不太好用啊,没有自动化格式校验不说,基本的模板工程也没
如题(插件很好用辛苦了)
发现生成的 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
husky 在mac中不生效
你好,对这个项目比较感兴趣。
在fork之后,看了下好像是没有配置.gitignore
,导致文件中有一些.DS_Store
和yarn-error
这类的冗余文件也在项目中。
于是提交了个PR #8 ,配置了一下文件。
感觉这个可以帮助新项目省很多力气
作者有想过将这个弄到老项目的场景嘛?比如支持自定义是保存时格式化,还是右键点击格式化
或者提示报错的信息,是否支持自定义与默认合并组成最终的验证格式化规则
warning File ignored because of a matching ignore pattern. Use "--no-ignore" to override
只是忽略一个文件目录,就产生了 上面的警告 导致文件无法上传
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.