eslint-plugin-loosely-restrict-imports
v0.1.15
Published
Loosely restrict ES6 imports
Maintainers
Readme
eslint-plugin-loosely-restrict-imports
Loosely restrict ES6 imports
Installation
You'll first need to install ESLint:
$ npm i eslint --save-devNext, install eslint-plugin-loosely-restrict-imports:
$ npm install eslint-plugin-loosely-restrict-imports --save-devNote: If you installed ESLint globally (using the -g flag) then you must also install eslint-plugin-loosely-restrict-imports globally.
Usage
Add loosely-restrict-imports to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:
plugins:
- loosely-restrict-importsThen configure the rules you want to use under the rules section.
rules:
loosely-restrict-imports/loosely-restrict-imports: [2, ".jsx"]