eslint-plugin-loosely-restrict-imports

Loosely restrict ES6 imports


Keywords
eslint, eslintplugin, eslint-plugin
License
ISC
Install
npm install eslint-plugin-loosely-restrict-imports@0.1.8

Documentation

eslint-plugin-loosely-restrict-imports

CircleCI npm David

Loosely restrict ES6 imports

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install eslint-plugin-loosely-restrict-imports:

$ npm install eslint-plugin-loosely-restrict-imports --save-dev

Note: 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-imports

Then configure the rules you want to use under the rules section.

rules:
    loosely-restrict-imports/loosely-restrict-imports: [2, ".jsx"]