Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@sayari/eslint-plugin

Package Overview
Dependencies
Maintainers
4
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sayari/eslint-plugin

custom lint rules built for Sayari Graph

  • 0.0.1-rc.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4.7K
increased by15.84%
Maintainers
4
Weekly downloads
 
Created
Source

eslint-plugin-sayari

Custom rules built for Sayari Graph

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install @sayari/eslint-plugin:

$ npm install @sayari/eslint-plugin --save-dev

Usage

Option 1

Add the sayari plugin recommended config to the extends section of your .eslintrc configuration file.

{
  "extends": ["plugin:@sayari/recommended"]
}

Option 2

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

{
  "plugins": ["@sayari"]
}

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

{
  "rules": {
    "@sayari/rule-name": 2
  }
}

Supported Rules

strict-mui-imports:

  • prevents styles imported from @material-ui to come from @material-ui/core/styles to help the import tranformer to minimize final bundle

no-unwrapped-jsx-text:

  • requires that when JSX text shares a common parent with other elements, the text be wrapped in a <span> tag
  • this prevents issues with this React bug when conflicted with things like google translate

polyfill-resize-observer:

  • imorts the polyfill build from react-resize-detector to avoid browser compatability conflicts when accessing the ResizeObserver API

Keywords

FAQs

Package last updated on 22 Dec 2021

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc