2.0.0 • Published 1 year ago
eslint-plugin-ascii v2.0.0
eslint-plugin-ascii
ESLint plugin to detect non-ascii characters in JavaScript source code.
Installation
You'll first need to install ESLint:
$ npm i eslint --save-devNext, install eslint-plugin-ascii:
$ npm install eslint-plugin-ascii --save-devNote: If you installed ESLint globally (using the -g flag) then you must also install eslint-plugin-ascii globally.
Usage
Add ascii to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:
{
"plugins": [
"ascii"
]
}Then configure the rules you want to use under the rules section.
{
"rules": {
"ascii/valid-name": 2
}
}