2.0.0 • Published 1 year ago

types-eslintrc v2.0.0

Weekly downloads
43
License
MIT
Repository
github
Last release
1 year ago

If I should maintain this repo, please ⭐️

DM me on Twitter if you have questions or suggestions.


This package uses zod to type check ESLint configs.

Installation

yarn add types-eslintrc
npm install types-eslintrc
pnpm add types-eslintrc

Usage

Types

import {
  ESLintConfig,
  isESLintConfig,
  parseESLintConfig
} from "types-eslintrc";

const myConfig = {
  // ...
};

if(isESLintConfig(myConfig)) {
  // myConfig is now typed as ESLintConfig
}

const myConfig = parseESLintConfig(myConfig);
// If myConfig is valid, it will return as ESLintConfig. Otherwise, it will return undefined.
  • types-json: Type checking for JSON objects
  • zod: TypeScript-first schema declaration and validation library with static type inference
  • autorepo: Autorepo abstracts away your dev dependencies, providing a single command to run all of your scripts.

MIT - MIT License

Related Projects