eslint-plugin-internations
v3.3.3
Published
Custom ESLint rules and recommended rule configuration for internal InterNations usage
Downloads
54
Keywords
Readme
eslint-plugin-internations
Custom ESLint rules and recommended rule configuration for internal InterNations usage.
Installation
You'll first need to install ESLint:
$ npm i eslint --save-dev
Next, install eslint-plugin-internations
and its peer dependencies:
(
export PKG=eslint-plugin-internations;
npm info "$PKG@latest" peerDependencies --json | command sed 's/[\{\},]//g ; s/@/@/g' | xargs npm install --save-dev "$PKG@latest"
)
Note: If you installed ESLint globally (using the -g
flag) then you must also install eslint-plugin-internations
and its peer dependencies globally.
Usage
Add internations
to the plugins
section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": [
"internations"
]
}
Then, add plugin:internations/recommended
to the extends
section:
{
"extends": [
"plugin:internations/recommended"
]
}
You may optionally configure any specific rules you want to override under the rules
section:
{
"rules": {
"internations/rule-name": "error"
}
}