Skip to main content

require-typings

Enabling this rule will result in an error being generated if typings is missing from the package.json file.

Example .npmpackagejsonlintrc configuration

{
"rules": {
"require-typings": "error"
}
}

Rule Details

Incorrect example(s)

{

}

Correct example(s)

{
"typings": "./lib/main.d.ts"
}

require-types

Notes

See https://www.typescriptlang.org/docs/handbook/declaration-files/publishing.html for more details.

History

  • Introduced in version 3.7.0