Skip to content

Commit a2856b1

Browse files
authored
Chore: Fix issues related to Node 12 becoming LTS (WordPress#18054)
* Chore: Fix issues related to Node 12 becoming LTS * Include the root package.json file in the linting This commit also moves the npm-package-json-lint config to the standalone file. * Add changelog entries to @wordpress/scripts package
1 parent 4df25af commit a2856b1

File tree

6 files changed

+1389
-1403
lines changed

6 files changed

+1389
-1403
lines changed

.npmpackagejsonlintrc.json

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"extends": "@wordpress/npm-package-json-lint-config",
3+
"rules": {
4+
"description-format": [
5+
"error",
6+
{
7+
"requireCapitalFirstLetter": true,
8+
"requireEndingPeriod": true
9+
}
10+
],
11+
"prefer-no-devDependencies": "error",
12+
"require-publishConfig": "error",
13+
"require-repository-directory": "error",
14+
"valid-values-author": [
15+
"error",
16+
[
17+
"The WordPress Contributors"
18+
]
19+
],
20+
"valid-values-publishConfig": [
21+
"error",
22+
[
23+
{
24+
"access": "public"
25+
}
26+
]
27+
]
28+
},
29+
"overrides": [
30+
{
31+
"patterns": [ "./package.json" ],
32+
"rules": {
33+
"require-publishConfig": "off",
34+
"require-repository-directory": "off",
35+
"prefer-no-devDependencies": "off"
36+
}
37+
}
38+
]
39+
}

0 commit comments

Comments
 (0)