eslintrc-type
v1.3.0
Published
An always up-to-date eslintrc.json type, transformed from its JSON Schema Store definition
Downloads
10
Readme
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).