eslint-plugin-loosely-restrict-imports

0.1.15 • Public • Published

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"]

Package Sidebar

Install

npm i eslint-plugin-loosely-restrict-imports

Weekly Downloads

14

Version

0.1.15

License

ISC

Last publish

Collaborators

  • mattgoucher