Socket
Book a DemoInstallSign in
Socket

@inventi/eslint-plugin-reinhard

Package Overview
Dependencies
Maintainers
4
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@inventi/eslint-plugin-reinhard

Grammar nazi for your INVENTI `grab a plate` project.

1.2.2
latest
npmnpm
Version published
Maintainers
4
Created
Source

@inventi/eslint-plugin-reinhard

Grammar nazi for your INVENTI grab a plate project.

This ESLint plugin enforces the Frontend Principles.

Installation

Assuming you already have ESLint installed, run:

# npm
npm install @inventi/eslint-plugin-reinhard --save-dev

# yarn
yarn add @inventi/eslint-plugin-reinhard --dev

Then extend the recommended eslint config:

{
  "extends": [
    // ...
    "plugin:@inventi/reinhard/recommended"
  ]
}

Custom Configuration

If you want more fine-grained configuration, you can instead add a snippet like this to your ESLint configuration file:

{
  "plugins": [
    // ...
    "@inventi/reinhard"
  ],
  "rules": {
    // ...
    '@inventi/reinhard/no-data-hooks-inside-components': ['error'], // disallow hooks for fetching and mutating data inside regular presentational components
    '@inventi/reinhard/no-data-hooks-in-basic-components-dirs': ['error'], // disallow hooks within components directories
    '@inventi/reinhard/components-staff-culture': ['error'], // staff culture of components; every component should consist of  index.ts, storybook and component
  }
}

License

MIT

Development

yarn remove @inventi/eslint-plugin-reinhard yarn add --dev file:./src/@packages/eslintPluginReinhard

Add plugin to eslint config - see section Custom Configuration above

FAQs

Package last updated on 31 Jul 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.