Comments (7)
We could allow kebab-case and PascalCase both currently.
For markdown files, I think we don't need too much rules for restricting its name. Because we need to append some language tags (zhCN
, zhTW
) to our markdown files.
"unicorn/filename-case": [
"error",
{
"cases": {
"kebabCase": true,
"pascalCase": true,
"ignore": [
/.*\.md$/,
/.*\.(yml|yaml)$/,
],
}
}
]
from flat.
That feels down to the fact that this rule may not apply to our situation.
How about we redevelop it on top of it?
from flat.
Or we write a script to do this. Because the main rule of eslint is the code specification, not the filename specification. Its an AST we will not be using.
How do you feel?
cc: @netless-io/developers
from flat.
That feels down to the fact that this rule may not apply to our situation. How about we redevelop it on top of it?
yes, you are right. other issue sindresorhus/eslint-plugin-unicorn#1577 .There seem to be other special problems
from flat.
That's what I want to mention. We are putting ourselves into a complicated situation: create another tool.
If we only use kebab-case then we have nothing to worry about.
For eslint-plugin-unicorn
, if some rules will occur with lots of file changes and are hard to fix then let us disable them or mark them as warnings.
My main point is to make our project rules simple and easy to maintain.
Any thoughts?
from flat.
That's what I want to mention. We are putting ourselves into a complicated situation: create another tool.
If we only use kebab-case then we have nothing to worry about.
For
eslint-plugin-unicorn
, if some rules will occur with lots of file changes and are hard to fix then let us disable them or mark them as warnings.My main point is to make our project rules simple and easy to maintain.
Any thoughts?
Do not worry, just write an git hook . that's enough
from flat.
Just write a git hook. that's enough.
Let's go for it.
from flat.
Related Issues (20)
- 如何自定义主题和UI? HOT 2
- 关于屏幕共享 HOT 2
- 回放页面无法监听到当前播放时间进度 HOT 4
- Ipad不支持屏幕共享吗 HOT 7
- 进入房间后开启录制,结束后回放的后半段是白屏。 HOT 6
- Run pnpm i failed. HOT 4
- Flat Desktop Client Now Available in Arch User Repository (AUR) HOT 4
- electron/js2c/renderer_init.js:93 Unable to load preload script: HOT 5
- Camera blank HOT 4
- [BUG](desktop/classroom-cloud): the subfiles and directories path do not match in classroom cloud setting of Desktop APP
- 开发环境一切正常-MAC打包后检测摄像头麦克风空白,权限提示没弹,MAC版本MACOS Monterey 12.6.7
- UPDATE_DOMAIN检查版本更新, 阿里云上怎么存放Windows 与 Mac 安装包格式 HOT 1
- Why phone number required? HOT 2
- 课堂开启录制报错,麻烦看一下 HOT 1
- Both chrome and edge browsers on Android don't work. HOT 5
- Is it possible to make hyperlinks in Word, PDF, PPT and Excel clickable? HOT 2
- Can I use it in the vue system built by npm? HOT 1
- error with Bluetooth HOT 3
- cannot resolve https://npmmirror.com/mirrors/electron/12.0.15/electron-v12.0.15-win32-x64.zip: status code 404 HOT 2
- How can I create an account using a Google email when that part is missing from your frontend? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flat.