eslint-plugin-json-schema-descriptions
TypeScript icon, indicating that this package has built-in type declarations

1.1.1 • Public • Published

eslint-plugin-json-schema-descriptions Build Status

ESLint rule to mandate that JSON Schema files have description fields on properties.

Installation

npm install --save-dev eslint-plugin-json-schema-descriptions

Configuration (eslint.config.js)

For flat configuration, this plugin ships with an eslint-plugin-json-schema-descriptions/recommended config that sets up both eslint-plugin-json-schema-descriptions and jsonc-eslint-parser in one go.

Import eslint-plugin-json-schema-descriptions and add it as the last item in the configuration array in your eslint.config.js file so that eslint-plugin-json-schema-descriptions has the opportunity to override other configs:

import jsonSchemaDescriptions from "eslint-plugin-json-schema-descriptions/recommended";

export default [
  jsonSchemaDescriptions,
];

Changelog

Detailed changes for each release are documented in CHANGELOG.md.

Package Sidebar

Install

npm i eslint-plugin-json-schema-descriptions

Weekly Downloads

8

Version

1.1.1

License

ISC

Unpacked Size

6.96 kB

Total Files

10

Last publish

Collaborators

  • fraserbenjamin