Registry / testing / eslint-config-universe

eslint-config-universe

JSON →
library15.0.3jsnpmunverified

Shared ESLint configs for Expo projects, providing a single dependency to set up ESLint with TypeScript, React, and Prettier. Currently at version 15.0.3, it follows Expo's release cadence and updates frequently to align with new ESLint rules and Expo SDK changes. Differentiators include automatic parser detection based on TypeScript usage, built-in support for React Native and React, and seamless integration with Expo's ecosystem. Requires ESLint >=8.10 and Prettier >=3. Notably, the default export provides a comprehensive base config, but developers often misuse the require path or fail to install peer dependencies.

npm install eslint-config-universe
INSTALL
IMPORT
SIG · ESLINT-CONFIG-UNIV
E
eslint-config-universe
testingjavascriptv15.0.3
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

default config
module.exports = { extends: 'universe' }
const config = require('eslint-config-universe')
Use the string 'universe' in ESLint config's extends array. Direct require is incorrect.
TypeScript config
module.exports = { extends: 'universe/shared/typescript' }
module.exports = { extends: 'universe/typescript' }
The TypeScript config is at 'universe/shared/typescript', not 'universe/typescript'.
Web config
module.exports = { extends: 'universe/web' }
module.exports = { extends: 'universe' } (without specifying web)
Use 'universe/web' for web projects; 'universe' includes React Native rules.

Sets up ESLint with Expo's recommended config. Requires installing peer deps and correct extends path.

// Install peer dependencies first // npm install --save-dev eslint prettier eslint-config-universe // .eslintrc.js module.exports = { extends: 'universe', // For TypeScript projects, use 'universe/shared/typescript' instead // For web projects, use 'universe/web' env: { node: true, browser: true, es2021: true, }, parserOptions: { ecmaVersion: 'latest', sourceType: 'module', }, };
Debug
Known issues
breakingSince version 12, the recommended config no longer automatically detects React Native; use 'universe' (includes RN) or 'universe/web' explicitly.
fix
Update your ESLint config: use 'universe' for RN or 'universe/web' for web projects.
affects: >=12.0
deprecatedThe 'universe/node' config is deprecated and will be removed in a future version.
fix
Use 'universe' or customize with 'universe/shared/typescript' as needed.
affects: >=14.0
gotchaMissing peer dependency 'prettier' causes runtime error: 'Cannot find module 'prettier''.
fix
Install prettier: npm install --save-dev prettier
affects: >=10.0
gotchaESLint 9 flat config is not supported; this config uses legacy .eslintrc format.
fix
Use ELLint 8.x or stick with legacy config until flat config support is added.
affects: >=9.0 (ESLint)
Errors
Common errors & fixes
Error: Failed to load config 'universe' to extend from.
eslint-config-universe is not installed or not in node_modules.
fix
Run npm install --save-dev eslint-config-universe
Cannot find module 'prettier'
Missing peer dependency prettier.
fix
npm install --save-dev prettier
Configuration for rule 'react/jsx-no-bind' is invalid
Incompatible eslint-plugin-react version.
fix
Update eslint-plugin-react to the version required by eslint-config-universe.
Upgrade
Version history
15.0.3latest on npm
Audit
Dependencies
eslintrequiredPeer dependency required to run ESLint
prettierrequiredPeer dependency required for formatting rules
Agent activity
4 hits · last 30 days
node
4
Resources
eslint-config-universe — npm install eslint-config-universe · libregistry