JSPM

eslint-config-expo

8.1.0-canary-20250219-4a5dade
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 447455
  • Score
    100M100P100Q166882F
  • License MIT

ESLint config for Expo apps

Package Exports

  • eslint-config-expo
  • eslint-config-expo/default.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (eslint-config-expo) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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 configuration file, e.g. eslint.config.js and spread it into the config array.

// eslint.config.js
const expoConfig = require("eslint-config-expo/flat");

module.exports = [
  ...expoConfig,
  // your other config
];

With legacy config

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"]
  }
}

.eslintrc.js

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