What is @cspell/dict-makefile?
@cspell/dict-makefile is a dictionary extension for the CSpell spell checker that provides support for Makefile-specific terminology. It helps developers ensure that their Makefile scripts are free from spelling errors by recognizing and validating common terms used in Makefiles.
What are @cspell/dict-makefile's main functionalities?
Makefile Terminology Support
This feature allows CSpell to recognize and validate Makefile-specific terms. The code sample demonstrates how to configure CSpell to use the Makefile dictionary and validate a simple Makefile script.
const cspell = require('cspell');
const settings = {
language: 'en',
dictionaries: ['makefile'],
};
const text = 'all: build\n\t@echo Building project...';
const result = cspell.validateText(text, settings);
console.log(result);
Other packages similar to @cspell/dict-makefile
@cspell/dict-python
@cspell/dict-python is a dictionary extension for CSpell that provides support for Python-specific terminology. Similar to @cspell/dict-makefile, it helps developers ensure that their Python code is free from spelling errors by recognizing and validating common Python terms.
@cspell/dict-html
@cspell/dict-html is a dictionary extension for CSpell that provides support for HTML-specific terminology. It helps developers ensure that their HTML documents are free from spelling errors by recognizing and validating common HTML terms, similar to how @cspell/dict-makefile works for Makefiles.
CSpell Makefile Dictionary
Makefile dictionary for cspell.
This is a pre-built dictionary for use with CSpell.
Installation
Global Install and add to CSpell global settings.
npm install -g @cspell/dict-makefile
cspell link add @cspell/dict-makefile
Uninstall from CSpell
cspell link remove @cspell/dict-makefile
Manual Installation
Manual installation is useful if you want to include this dictionary as part of your CI/CD lint process.
npm i @cspell/dict-makefile
The cspell-ext.json
file in this package should be added to the import section in your cspell.json
file.
{
"import": ["@cspell/dict-makefile/cspell-ext.json"],
}
Dictionary Development
See: How to Create a New Dictionary
License
MIT
Some packages may have other licenses included.
Brought to you by
Street Side Software