1.3.0 • Published 5 months ago

eslintrc-type v1.3.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
5 months ago

Eslintrc Type

A .eslintrc.json type, regularly regenerated based on the schemastore.org definition.

Installation

npm i eslintrc-type

Usage

import {Eslintrc} from "eslintrc-type";

const eslintrc: Eslintrc = {
    // ...
};

Rationale

I want to generate eslint config files from javascript objects. For that I want to have the correct type. This is a fork from tsconfig-type, the only thing I did was replacing tsconfig with eslintrc.

eslintrc-type is regularly (on a weekly basis) regenerated from the latest JSON schema. First, the generation script fetches the JSON schema and runs it through json-schema-to-typescript. Next, that output undergoes a series of transforms. Finally, the resulting type is auto-published to NPM with a minor version increment. In this regard, this package does not strictly follow semver (I'd recommend pinning).

1.3.0

5 months ago

1.2.0

1 year ago

1.1.0

2 years ago

1.0.0

2 years ago