canirequire

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

  1. 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.
  2. 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.
  3. 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).
  4. TypeScript: no types are available for @vue/eslint-config-standard; declare the module yourself if you need them.
Latest
9.0.1 (Mar 13, 2025)
Module format
ESM-only
Last CommonJS version
8.0.1
ESM-only since
9.0.0 (Jan 19, 2025)
TypeScript types
None
Node engines
not declared
Weekly downloads
101K
License
MIT

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.

Runtimerequire("@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.1

Module 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).

VersionsFormatFirst published
9.0.0 – 9.0.1ESM-onlyJan 19, 2025
3.0.0 – 8.0.1CommonJSAug 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

Similar popularity