-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy path.ncurc.cjs
24 lines (23 loc) · 846 Bytes
/
.ncurc.cjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
const blockMajorVersion = [
// Must match the version of Node this package uses
"@types/node",
];
module.exports = {
target: (packageName) => {
if (blockMajorVersion.includes(packageName)) {
return "minor";
}
return "latest";
},
groupFunction: (packageName, defaultGroup) => {
// TypeScript doesn't use SemVer. Both minor and major version changes are major.
if (packageName === "typescript" && defaultGroup === "minor") {
return "major";
}
// Create custom group for eslint packages since you'll want to review new and changed rules to add.
if (packageName.includes("eslint-plugin") || packageName === "eslint" || packageName.endsWith("/eslint")) {
return "ESLint Packages";
}
return defaultGroup;
},
};