Skip to content

Commit d72676f

Browse files
committed
enable package-json/exports-subpaths-style rule
1 parent f5716d4 commit d72676f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/eslint/eslint.config.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2104,6 +2104,8 @@ const json = {
21042104
};
21052105

21062106
const packageJSON = {
2107+
// enforce consistent format for the exports field (implicit or explicit subpaths)
2108+
'package-json/exports-subpaths-style': [ERROR, { prefer: 'explicit' }],
21072109
// reports on unnecessary empty arrays and objects
21082110
'package-json/no-empty-fields': ERROR,
21092111
// prevents adding unnecessary / redundant files

0 commit comments

Comments
 (0)