eslint-config-expo

7.1.2 • Public • Published

eslint-config-expo

Base ESLint config for Expo projects. This is a minimal config that supports JSX and TypeScript, platform-specific global variables, and file extensions like .android.js, .ios.js and .web.js. You are intended to compose this base config with the linter rules of your choice in your own ESLint configuration.

Installation

yarn add --dev eslint-config-expo

You will also need to install eslint:

yarn add --dev eslint

Usage

Import this config into your own ESLint configuration using the extends option. ESLint checks both package.json and .eslintrc.* files for its configuration:

package.json

{
  "eslintConfig": {
    "extends": ["expo", "eslint:recommended"]
  }
}

.eslintrc.js

module.exports = {
  extends: ["expo", "eslint:recommended"],
};

Package Sidebar

Install

npm i eslint-config-expo

Weekly Downloads

31,219

Version

7.1.2

License

MIT

Unpacked Size

10.5 kB

Total Files

9

Last publish

Collaborators

  • douglowder
  • betoatexpo
  • philpl
  • expo-bot
  • szdziedzic
  • alanhughes
  • kadikraman
  • radoslawkrzemien
  • aleqsio
  • marklawlor
  • gabrieldonadel
  • simek
  • keith-kurak
  • fiber-god
  • ide
  • brentvatne
  • evanbacon
  • quinlanj
  • expoadmin
  • tsapeta
  • exponent
  • wschurman
  • bycedric
  • lukmccall
  • jonsamp
  • princefleaswallow
  • kudochien