eslint-plugin-expo

0.0.1 • Public • Published

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

Name Description
no-dynamic-env-var Prevents process.env from being accessed dynamically
no-env-var-destructuring Disallow desctructuring of environment variables

Package Sidebar

Install

npm i eslint-plugin-expo

Weekly Downloads

2,039

Version

0.0.1

License

MIT

Unpacked Size

7.54 kB

Total Files

7

Last publish

Collaborators

  • szdziedzic
  • alanhughes
  • kadikraman
  • radoslawkrzemien
  • aleqsio
  • marklawlor
  • gabrieldonadel
  • simek
  • keith-kurak
  • christopherwalter
  • kbrandwijk
  • fiber-god
  • ide
  • brentvatne
  • evanbacon
  • quinlanj
  • expoadmin
  • tsapeta
  • exponent
  • wschurman
  • wkozyra
  • bycedric
  • lukmccall
  • jonsamp
  • princefleaswallow
  • kudochien