@cspell/cspell-types
TypeScript icon, indicating that this package has built-in type declarations

8.15.1 • Public • Published

Cspell Types

Contains cspell types and json-schema.

This package contains no dependencies to avoid any security issues.

Support Future Development

  • GitHub Sponsors
  • Patreon
  • PayPal
  • Open Collective

Installation

npm i -S @cspell/cspell-types

Usage

Can be use to make writing cspell.config.js files easier.

'use strict';

/** @type { import("@cspell/cspell-types").CSpellUserSettings } */
const cspell = {
  description: 'cspell.config.js file in samples/js-config',
  languageSettings: [
    {
      languageId: 'cpp',
      allowCompoundWords: false,
      patterns: [
        {
          name: 'pound-includes',
          pattern: /^\s*#include.*/g
        }
      ],
      ignoreRegExpList: ['pound-includes']
    }
  ],
  dictionaryDefinitions: [
    {
      name: 'custom-words',
      path: './custom-words.txt'
    }
  ],
  dictionaries: ['custom-words']
};

module.exports = cspell;

API

CSpellSettings alias CSpellUserSettings is the formal definition of the configuration that controls the spell checker.

CSpell for Enterprise

Available as part of the Tidelift Subscription.

The maintainers of cspell and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source packages you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact packages you use. Learn more.



Brought to you byStreet Side Software Logo Street Side Software

Readme

Keywords

Package Sidebar

Install

npm i @cspell/cspell-types

Weekly Downloads

773,294

Version

8.15.1

License

MIT

Unpacked Size

210 kB

Total Files

36

Last publish

Collaborators

  • jason-dent