5 Star 27 Fork 8

Gitee 极速下载 / notesnook

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/streetwriters/notesnook
克隆/下载
.commitlintrc.js 955 Bytes
一键复制 编辑 原始数据 按行查看 历史
Ammar Ahmed 提交于 2023-08-08 11:10 . themebuilder: fix screenshot
/* eslint-disable @typescript-eslint/no-var-requires */
const { execSync } = require("child_process");
const { readFileSync } = require("fs");
const authorEmail = execSync(`git config --global --get user.email`)
.toString("utf-8")
.trim();
const authors = readFileSync("AUTHORS", "utf-8");
const isAuthor = authors.includes(`<${authorEmail}>`);
const SCOPES = [
// for full list of scopes + details see: https://github.com/streetwriters/notesnook-private/blob/master/CONTRIBUTING.md#commit-guidelines
"mobile",
"web",
"vericrypt",
"desktop",
"crypto",
"editor",
"logger",
"theme",
"server",
"core",
"fs",
"ui",
"clipper",
"config",
"ci",
"setup",
"docs",
"refactor",
"misc",
"common",
"global",
"docs",
"themebuilder"
];
module.exports = {
rules: {
"signed-off-by": [isAuthor ? 0 : 2, "always", `Signed-off-by:`],
"type-enum": [2, "always", SCOPES],
"type-empty": [2, "never"]
}
};
JavaScript
1
https://gitee.com/mirrors/notesnook.git
git@gitee.com:mirrors/notesnook.git
mirrors
notesnook
notesnook
master

搜索帮助