Skip to content

Latest commit

 

History

History
35 lines (25 loc) · 517 Bytes

ts-package-json-module.md

File metadata and controls

35 lines (25 loc) · 517 Bytes

ts-package-json-module

Requires module in package.json to be set to the ES6 entrypoint of the package. It is assumed that this is "dist-esm/src/index.js".

This rule is fixable using the --fix option.

Examples

Good

{
  "module": "dist-esm/src/index.js"
}

Bad

{
  "module": "dist-esm/src/lib/index.js"
}
{
  "module": "dist/index.js"
}
{}