New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@getluko/eslint-plugin-react-native

Package Overview
Dependencies
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@getluko/eslint-plugin-react-native

GetLuko React Native ESLint Plugin created by the App Core guild

  • 0.1.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
decreased by-81.25%
Maintainers
2
Weekly downloads
 
Created
Source

@getluko/eslint-plugin-react-native

This library was generated with Nx.

Building

Run nx build eslint-plugin-react-native to build the library.

Running unit tests

Run nx test eslint-plugin-react-native to execute the unit tests via Jest.

@getluko/eslint-plugin-mobile-guidelines

Installation

yarn add @getluko/eslint-plugin-react-native --dev

Configuration

.eslintrc.js

module.exports = {
  plugins: ['@getluko/react-native'],
  rules: {
    '@getluko/react-native/lower-dash-case-test-id': 1,
    '@getluko/react-native/i18n-avoid-global-imports: 2,
  }

Rules

@getluko/react-native/lower-dash-case-test-id

Allows you to enforce a consistent naming pattern for testID prop which expect a lower dash case.

  // bad ❌
  return (
    <Element
      testID="ElementTestID"
    />
  );

  // good ✅
  return (
    <Element
      testID="element-test-id"
    />
  );

@getluko/react-native/i18n-avoid-global-imports

Allows you to enforce i18n by avoiding global imports. it allows changing language dynamically without restarting the app.

  // bad ❌
  const key = i18n.t('key');
  return (
    <Text>{key}</Text>
  )

  // good ✅
  const getKey = () => i18n.t('key');
  return (
    <Text>{getKey()}</Text>
  );

Keywords

FAQs

Package last updated on 30 Aug 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

  • 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