# Is eslint-config-standard-react ESM-only? Can you require() it?

> eslint-config-standard-react@13.0.0 is a CommonJS package. CommonJS — require() works on every Node.js version we test.

JavaScript Standard Style React/JSX support - ESLint Shareable Config

Latest version 13.0.0, published Dec 15, 2022.

eslint-config-standard-react ships CommonJS only. require("eslint-config-standard-react") should work on every Node.js version the package supports; the runtime probe has not run for this version. import "eslint-config-standard-react" also works because Node.js and Bun can import CommonJS from ES modules, but only the default export is guaranteed; named imports depend on Node's static analysis of the module.

## What to do

1. require("eslint-config-standard-react") should work on every Node.js version the package supports; the runtime probe has not run for this version.
2. From ES modules use the default import: import eslintConfigStandardReact from "eslint-config-standard-react"; then destructure. Named imports only work when Node.js can statically detect the exports.
3. TypeScript: no types are available for eslint-config-standard-react; declare the module yourself if you need them.

## Facts

- Latest: 13.0.0 (Dec 15, 2022)
- Module format: CommonJS
- Last CommonJS version: 13.0.0
- TypeScript types: none
- Node engines: not declared
- Weekly downloads: 64K
- License: MIT

## Runtime test results for eslint-config-standard-react@13.0.0

Runtime probe pending for this version (install failed: error: ConnectionRefused downloading package manifest eslint-config-standard-react). The facts above come from package.json.

## How to import eslint-config-standard-react

ES modules:

```js
import eslintConfigStandardReact from "eslint-config-standard-react";
```

CommonJS:

```js
const eslintConfigStandardReact = require("eslint-config-standard-react");
```

## Module format by version

Derived from the type, main and exports fields of every stable release on npm (37 versions; the newest 37 shown).

| Versions | Format | First published |
|---|---|---|
| 1.0.0 – 13.0.0 | CommonJS | Jun 10, 2015 |

## Frequently asked

**Is eslint-config-standard-react ESM-only?**

eslint-config-standard-react@13.0.0 is a CommonJS package. eslint-config-standard-react ships CommonJS only. require("eslint-config-standard-react") should work on every Node.js version the package supports; the runtime probe has not run for this version. import "eslint-config-standard-react" also works because Node.js and Bun can import CommonJS from ES modules, but only the default export is guaranteed; named imports depend on Node's static analysis of the module.

**Can I import eslint-config-standard-react with ES module syntax?**

Yes. import eslintConfigStandardReact from "eslint-config-standard-react" works in Node.js and Bun because they support importing CommonJS modules. Named imports work only when Node.js can statically detect the exports.

**Does eslint-config-standard-react ship TypeScript types?**

No. eslint-config-standard-react ships no type declarations and there is no @types package for it.

## Links

- [eslint-config-standard-react on npm](https://www.npmjs.com/package/eslint-config-standard-react)
- [Source repository](https://github.com/standard/eslint-config-standard-react)
- [HTML version](https://canirequire.com/package/eslint-config-standard-react/)
- [JSON version](https://canirequire.com/package/eslint-config-standard-react.json)

---

For scripts and AI agents: any package is at https://canirequire.com/package/<name>/index.md (Markdown) or https://canirequire.com/package/<name>.json (JSON); the site index is https://canirequire.com/llms.txt. Fetch the URL directly; no search needed.
