eslint-plugin-only-ascii
v0.0.0
Published
ESLint plugin to remove non-ascii characters from JavaScript source code.
Downloads
1,415
Readme
eslint-plugin-only-ascii
ESLint plugin to remove non-ascii characters from JavaScript source code.
Installation
You'll first need to install ESLint:
$ npm i eslint --save-dev
Next, install eslint-plugin-only-ascii
:
$ npm install eslint-plugin-only-ascii --save-dev
Note: If you installed ESLint globally (using the -g
flag) then you must also install eslint-plugin-only-ascii
globally.
Usage
Add only-ascii
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": [
"only-ascii"
]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"only-ascii/rule-name": 2
}
}
Supported Rules
- only-ascii/only-ascii: Detect non-ascii characters