0.0.0 • Published 9 years ago
eslint-plugin-only-ascii v0.0.0
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-devNext, install eslint-plugin-only-ascii:
$ npm install eslint-plugin-only-ascii --save-devNote: 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
0.0.0
9 years ago