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. Markdown · 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 with a plain require()-able CommonJS entry is 8.0.1, published Jul 27, 2022.
On Node.js 20.19+, 22.12+ and newer, require("@vue/eslint-config-standard") works with the latest version: Node.js loads synchronous ES modules through require(). Verified on Node.js 20, 22, 24 and 26. On Node.js 18, which has no require(esm), require("@vue/eslint-config-standard") fails with ERR_REQUIRE_ESM.
What to do
- On Node.js 20.19+, 22.12+ and newer, require("@vue/eslint-config-standard") works with the latest version: Node.js loads synchronous ES modules through require(). Verified on Node.js 20, 22, 24 and 26.
- From a CommonJS file, use a dynamic import inside an async function: const eslintConfigStandard = await import("@vue/eslint-config-standard"). That works on every Node.js version the package supports.
- If you need a synchronous require() or run Node.js 18: npm install @vue/eslint-config-standard@8.0.1, the last CommonJS release (published Jul 27, 2022).
- TypeScript: no types are available for @vue/eslint-config-standard; declare the module yourself if you need them.
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.0 | ✓ works | ✓ works |
How to import @vue/eslint-config-standard
ES modules (import)
import * as eslintConfigStandard from "@vue/eslint-config-standard";Namespace import shown because the ESM entry may have no default export; use named imports for what it exports.
CommonJS (require)
// Node.js 20.19+, 22.12+ and newer (verified):
const eslintConfigStandard = require("@vue/eslint-config-standard");
// Any Node.js version the package supports, from an async function:
async function main() {
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, corrected where a runtime test of that version contradicted them (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 with a plain require()-able CommonJS entry 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?
From a CommonJS file, use a dynamic import inside an async function: const eslintConfigStandard = await import("@vue/eslint-config-standard"). That works on every Node.js version the package supports. On Node.js 20.19+, 22.12+ and newer, require("@vue/eslint-config-standard") works with the latest version: Node.js loads synchronous ES modules through require(). Verified on Node.js 20, 22, 24 and 26. 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.0 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 - string-width 8.2.2last CJS
4.2.3 - ansi-regex 6.3.0last CJS
5.0.1 - escape-string-regexp 5.0.0last CJS
4.0.0
Similar popularity
- tslint-react 5.0.0CommonJS
- @storybook/preset-create-react-app 10.6.0ESM-only
- element-ui 2.15.14CommonJS
- gulp-load-plugins 2.0.8CommonJS
- rollup-plugin-delete 3.0.2ESM-only
- @nomiclabs/hardhat-ethers 2.2.3CommonJS
- babel-plugin-transform-vue-jsx 3.7.0CommonJS
- @vitest/coverage-c8 0.33.0ESM-only