Skip to content

Export configuration type #964

@regseb

Description

@regseb

Export the types (file *.d.ts) of the configuration so that we can validate our configurations with TypeScript.


Example of npmpackagejsonlint.config.js if types are exported:

// @ts-check
/**
 * @type {import('npm-package-json-lint').Configuration}
 */
module.exports = {
  rules: {
    'require-author': 'error'
  }
};

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions