Skip to content

Commit eb518c7

Browse files
Add package.json checks to ESLint check config
1 parent 806a60d commit eb518c7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

eslint.testconfig.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
import eslintPluginDepend from "eslint-plugin-depend";
22
import eslintPluginImport from "eslint-plugin-import";
33
import eslintPluginJs from "@eslint/js";
4+
import eslintPluginPackageJson from "eslint-plugin-package-json/configs/recommended";
45
import globals from "globals";
56

67
const config = [
78
eslintPluginDepend.configs["flat/recommended"],
89
eslintPluginImport.flatConfigs.recommended,
910
eslintPluginJs.configs.recommended,
11+
eslintPluginPackageJson,
1012
{
1113
"ignores": ["**/*.min.js"]
1214
},
@@ -56,7 +58,9 @@ const config = [
5658
{
5759
"files": ["package.json"],
5860
"rules": {
59-
"depend/ban-dependencies": ["error", {"allowed": ["moment", "eslint-plugin-import"]}]
61+
"depend/ban-dependencies": ["error", {"allowed": ["moment", "eslint-plugin-import"]}],
62+
"package-json/require-author": "error",
63+
"package-json/require-keywords": "error"
6064
}
6165
}
6266
];

0 commit comments

Comments
 (0)