@twofortyfive/eslint-plugin

0.0.1 • Public • Published

@twofortyfive/eslint-plugin

Additional rules enforcing some architectural aspects as well as code style

Installation

You'll first need to install ESLint:

npm i eslint --save-dev

Next, install @twofortyfive/eslint-plugin:

npm install @twofortyfive/eslint-plugin --save-dev

Usage

Add eslint-mathieu-eveillard to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
    "plugins": [
        "mathieu-eveillard"
    ]
}

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

{
    "rules": {
        "mathieu-eveillard/rule-name": 2
    }
}

Rules

Name Description
no-restricted-imports Forbid import of given packages into given paths

Package Sidebar

Install

npm i @twofortyfive/eslint-plugin

Weekly Downloads

14

Version

0.0.1

License

ISC

Unpacked Size

9.15 kB

Total Files

9

Last publish

Collaborators

  • mathieueveillard