eslint-plugin-ascii
v2.0.0
Published
ESLint plugin to detect non-ascii characters from JavaScript source code.
Downloads
6,018
Readme
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-dev
Next, install eslint-plugin-ascii
:
$ npm install eslint-plugin-ascii --save-dev
Note: 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
}
}