canirequire › ESM-only › @vue/eslint-config-standard
Is @vue/eslint-config-standard ESM-only? Can you require() it?
eslint-config-standard for Vue.js projects
Last verified Sep 9, 2026 against @vue/eslint-config-standard@9.0.1. JSON
ESM-only ESM-only since 9.0.0 — last CommonJS version is 8.0.1
@vue/eslint-config-standard dropped its CommonJS build in 9.0.0 (January 2025). The last version you can require() on every Node.js version, including 18 and older, is 8.0.1, published Jul 27, 2022.
On Node.js 20.19+, 22.12+ and every newer release, require("@vue/eslint-config-standard") works anyway: Node can load synchronous ES modules through require(). Verified on Node 20, 22, 24, 26. Node.js 18 and older still fail with ERR_REQUIRE_ESM.
Does @vue/eslint-config-standard@9.0.1 actually load? Runtime test results
Installed and executed on Sep 9, 2026 with require("@vue/eslint-config-standard") from a CommonJS file and import "@vue/eslint-config-standard" from an ES module.
| Runtime | require("@vue/eslint-config-standard") | import "@vue/eslint-config-standard" |
|---|---|---|
| Node.js 18 | ✗ failsERR_REQUIRE_ESM | ✓ works |
| Node.js 20 | ✓ works | ✓ works |
| Node.js 22 | ✓ works | ✓ works |
| Node.js 24 | ✓ works | ✓ works |
| Node.js 26 | ✓ works | ✓ works |
| Bun 1.4 | ✓ works | ✓ works |
How to import @vue/eslint-config-standard
ES modules (import)
import eslintConfigStandard from "@vue/eslint-config-standard";CommonJS (require)
// Node.js 20.19+ / 22.12+ / newer (package has no top-level await):
const eslintConfigStandard = require("@vue/eslint-config-standard");
// Any Node.js version:
const eslintConfigStandard = await import("@vue/eslint-config-standard");
// Or pin the last CommonJS release:
// npm install @vue/eslint-config-standard@8.0.1Module format by version
Derived from the type, main and exports fields of every stable release on npm (19 versions; the newest 19 shown).
| Versions | Format | First published |
|---|---|---|
| 9.0.0 – 9.0.1 | ESM-only | Jan 19, 2025 |
| 3.0.0 – 8.0.1 | CommonJS | Aug 10, 2018 |
Frequently asked
Is @vue/eslint-config-standard ESM-only?
@vue/eslint-config-standard@9.0.1 is ESM-only. @vue/eslint-config-standard dropped its CommonJS build in 9.0.0 (January 2025). The last version you can require() on every Node.js version, including 18 and older, is 8.0.1, published Jul 27, 2022.
Which version of @vue/eslint-config-standard still supports CommonJS / require()?
8.0.1 is the last version of @vue/eslint-config-standard with a CommonJS build. Install it with "npm install @vue/eslint-config-standard@8.0.1". Every version from 9.0.0 on is ESM-only.
How do I use @vue/eslint-config-standard from a CommonJS file?
Use a dynamic import: const mod = await import("@vue/eslint-config-standard"). On Node.js 20.19+, 22.12+ and newer, a plain require("@vue/eslint-config-standard") also works for ESM packages that do not use top-level await. Alternatively pin @vue/eslint-config-standard@8.0.1.
Does @vue/eslint-config-standard work in Bun?
Yes. import "@vue/eslint-config-standard" loaded successfully in Bun 1.4 on Sep 9, 2026.
Does @vue/eslint-config-standard ship TypeScript types?
No. @vue/eslint-config-standard ships no type declarations and there is no @types package for it.
Links
Other esm-only packages
- ansi-styles 7.0.0last CJS
5.2.0 - strip-ansi 7.2.0last CJS
6.0.1 - commander 15.0.0last CJS
14.0.3 - supports-color 11.0.0last CJS
8.1.1 - chalk 6.0.0last CJS
4.1.2 - tslib 2.8.1last CJS
2.5.2 - string-width 8.2.2last CJS
4.2.3 - ansi-regex 6.3.0last CJS
5.0.1
Similar popularity
- @alifd/next 1.27.34CommonJS
- @angular/http 7.2.16CommonJS
- @alifd/babel-preset-next 2.0.0-betaCommonJS
- @release-it/conventional-changelog 12.0.0ESM-only
- @storybook/addon-info 5.3.21CommonJS
- @vue/cli-plugin-unit-jest 5.0.9CommonJS
- @nomiclabs/hardhat-ethers 2.2.3CommonJS
- @vitest/coverage-c8 0.33.0ESM-only