You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
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.0
stable
Source
npmnpm
Version published
Weekly downloads
19
35.71%
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,
  }

Rules

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

This rule is used 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"
    />
  );

Keywords

eslint

FAQs

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