@0x4447/eslint-plugin-0x4447 中文文档教程
0x4447 Eslint Plugin for Function Padding
一组由 0x4447 LLC 创建的自定义 Eslint 规则,以最大限度地提高代码清晰度,因此您可以专注于解决问题,而不是在脑子里解析代码。
Installation
您首先需要安装 ESLint:
] npm install eslint --save-dev
接下来,安装插件本身:
] npm install @0x4447/eslint-plugin-0x4447 --save-dev
注意如果您全局安装了 ESLint (使用 -g
标志)然后您还必须全局安装 @0x4447/eslint-plugin-0x4447
。
Current Rules
- function-padding: Require function to have padding at the top and bottom of the blocks: Documentation.
Usage
将 0x4447
添加到 .eslintrc
配置文件的插件部分。
{
"plugins": [
"@0x4447/eslint-plugin-0x4447"
]
}
然后在规则部分下配置要使用的规则。
{
"rules": {
"@0x4447/0x4447/<rule-name>": "error"
}
}
The End
如果您喜欢这个项目,请考虑给它一个????。 并查看我们的 0x4447 GitHub 帐户,我们在其中提供您可能会觉得有用或有趣的其他资源。
Sponsor ????
该项目由 0x4447 LLC 提供,这是一家专门在 AWS 上构建自定义解决方案的软件公司。 通过以下链接了解更多信息:https://0x4447.com 或者说 hello@0x4447.email。
0x4447 Eslint Plugin for Function Padding
A set of custom Eslint rules created by 0x4447 LLC to maximize code clarity, so you can focus on solving the problem, and not mentally parsing the code.
Installation
You'll first need to install ESLint:
] npm install eslint --save-dev
Next, install the plug-in itself:
] npm install @0x4447/eslint-plugin-0x4447 --save-dev
Note: If you installed ESLint globally (using the -g
flag) then you must also install @0x4447/eslint-plugin-0x4447
globally.
Current Rules
- function-padding: Require function to have padding at the top and bottom of the blocks: Documentation.
Usage
Add 0x4447
to the plugins section of your .eslintrc
configuration file.
{
"plugins": [
"@0x4447/eslint-plugin-0x4447"
]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"@0x4447/0x4447/<rule-name>": "error"
}
}
The End
If you enjoyed this project, please consider giving it a ????. And check out our 0x4447 GitHub account, where we have additional resources that you might find useful or interesting.
Sponsor ????
This project is brought to you by 0x4447 LLC, a software company specializing in build custom solutions on top of AWS. Find out more by following this link: https://0x4447.com or, say hello@0x4447.email.