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

eslint-plugin-getsentry

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-getsentry

Custom ESLint rules for development on Sentry

  • 2.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
248
decreased by-34.74%
Maintainers
1
Weekly downloads
 
Created
Source

ESLint-plugin-React

Custom ESLint rules for the getsentry organization. Used for Sentry and other projects.

Installation

$ npm install eslint-plugin-getsentry

Configuration

Add plugins section and specify ESLint-plugin-React as a plugin.

{
  "plugins": [
    "getsentry"
  ]
}

If it is not already the case you must also configure ESLint to support JSX.

{
  "ecmaFeatures": {
    "jsx": true
  }
}

Finally, enable all of the rules that you would like to use.

{
  "rules": {
    "getsentry/jsx-needs-il8n": 1
  }
}

List of supported rules

jsx-needs-il8n

Prevent usage of unwrapped string literals in JSX components.

Bad:

<div>foo</div>

Good:

<div>{t('foo')}</div>

If you don't want to translate a string, but don't want it to trigger this rule, you can just do:

<div>{'foo'}</div>

License

ESLint-plugin-getsentry is licensed under the Apache 2.0 License.

FAQs

Package last updated on 22 May 2016

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