@secretlint/config-validator
TypeScript icon, indicating that this package has built-in type declarations

4.2.0 • Public • Published

@secretlint/config-validator

.secretlintrc config validation library

Install

Install with npm:

npm install @secretlint/config-validator

Usage

import { validateRawConfig } from "@secretlint/config-validator";
import fs from "fs";
const secretlintrc = require("./.secretlintrc.json");
const { ok, error } = validateRawConfig(secretlintrc);
if (!ok) {
  console.error(error);
}

Changelog

See Releases page.

Running tests

Install devDependencies and Run npm test:

npm test

Contributing

Pull requests and stars are always welcome.

For bugs and feature requests, please create an issue.

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

Author

License

MIT © azu

Readme

Keywords

Package Sidebar

Install

npm i @secretlint/config-validator

Weekly Downloads

2,288

Version

4.2.0

License

MIT

Unpacked Size

117 kB

Total Files

23

Last publish

Collaborators

  • secretlint-bot
  • azu