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

eslint-plugin-react-native-normalized

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-react-native-normalized

ESLint rule for forbidding use of React Native components when a version of react-native-normalized is available

  • 1.1.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
120
increased by46.34%
Maintainers
1
Weekly downloads
 
Created
Source

eslint-plugin-react-native-normalized

Prevents the import of native components of React Native when there is a version of react-native-normalized available.

Installation

# Shell
npm install -D eslint-plugin-arithmetic
// eslintrc.js
{
    "plugins": ["react-native-normalized"],
    "rules": {
        "react-native-normalized/forbid-native-components": "error"
    }
}

Options

This rule supports the follwing options:

  • disallowed: Which imports are not allowed from react-native. Defaults to ['Text', 'Alert', 'Image']. Possible values: Array of Text, Alert, Image, ActivityIndicator, TextInput

Rule details

Fail

import {Text} from 'react-native'
const {Text, Image} = require('react-native')

Pass

import {Text} from 'react-native-normalized' // Import from normalized
import {View} from 'react-native' // No react-native-normalized version available.

Ideas for further development

  • Autofixing :D

Author

Keywords

FAQs

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