eslint-plugin-eh-to-zee-converter
v1.3.12
Published
<img src="https://github.com/Andrew32A/eh-to-zee-converter/blob/main/images/screenshot.png" align="center">
Downloads
8
Readme
Eh to Zee Converter
This is a custom eslint plugin that adds rules to check and convert Canadian English to American English and vice versa! It's published to NPM for the public to download and use.
Installation
You'll first need to install ESLint if you haven't done so already:
npm install eslint --save-dev
Next, install eh-to-zee-converter
:
npm install --save-dev eslint-plugin-eh-to-zee-converter
Usage
Add eh-to-zee-converter
to the plugins section of your .eslintrc
file and eh-to-zee-converter/canadian-to-american
OR eh-to-zee-converter/american-to-canadian
to the list of rules. The eslint-plugin-
prefix is optional:
{
"plugins": ["eh-to-zee-converter"],
"rules": {
"eh-to-zee-converter/canadian-to-american": "error"
}
}
If you want to modify or add more rules in the src, make sure to build the dist folder with the following command:
tsc
Publishing
npm publish --access public