You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP
Socket
Sign inDemoInstall
Socket

eslint-plugin-expo

Package Overview
Dependencies
Maintainers
0
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-expo

ESLint rules for Expo apps

0.1.0
latest
Source
npm
Version published
Weekly downloads
99K
0.38%
Maintainers
0
Weekly downloads
 
Created
Source

eslint-plugin-expo

ESLint rules for Expo apps

Installation

You'll first need to install ESLint:

npx expo install eslint --save-dev

Next, install eslint-plugin-expo:

npx expo install eslint-plugin-expo --save-dev

Usage

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

{
  "plugins": [
    "expo"
  ]
}

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

{
  "rules": {
    "expo/no-env-var-destructuring": "error",
    "expo/no-dynamic-env-var": "error"
  }
}

Rules

NameDescription
no-dynamic-env-varPrevents process.env from being accessed dynamically
no-env-var-destructuringDisallow desctructuring of environment variables

Keywords

eslint

FAQs

Package last updated on 22 Oct 2024

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