What is @cspell/dict-css?
@cspell/dict-css is a dictionary extension for the CSpell spell checker that provides CSS-related terms. It helps developers ensure that CSS-specific terminology is correctly spelled in their code.
What are @cspell/dict-css's main functionalities?
CSS Dictionary Integration
This feature allows you to integrate the CSS dictionary into the CSpell spell checker, ensuring that CSS-specific terms are recognized and correctly spelled.
const cspell = require('cspell');
cspell.addDictionary('css');
Spell Checking CSS Files
This feature enables spell checking of CSS files, ensuring that all CSS properties and values are correctly spelled.
const cspell = require('cspell');
cspell.checkText('body { background-color: #fff; }', { language: 'css' });
Other packages similar to @cspell/dict-css
cspell-dict-html
cspell-dict-html is a dictionary extension for the CSpell spell checker that provides HTML-related terms. It is similar to @cspell/dict-css but focuses on HTML terminology instead of CSS.
cspell-dict-python
cspell-dict-python is a dictionary extension for the CSpell spell checker that provides Python-related terms. It is similar to @cspell/dict-css but focuses on Python terminology instead of CSS.
CSpell css Dictionary
Css dictionary for cspell.
This is a pre-built dictionary for use with cspell.
Requirements
Installation
Global Install and add to cspell global settings.
npm install -g @cspell/dict-css
cspell link add @cspell/dict-css
Uninstall from cspell
cspell link remove @cspell/dict-css
Manual Installation
The cspell-ext.json
file in this package should be added to the import section in your cspell.json file.
{
"import": ["@cspell/dict-css/cspell-ext.json"],
}
Building
Building is only necessary if you want to modify the contents of the dictionary. Note: Building will take a few minutes for large files.
npm run build
License
MIT
Some packages may have other licenses included.