Registry / devops / eslint-config-greenpie

eslint-config-greenpie

JSON →
library16.1.0jsnpmunverified

A strict ESLint and oxlint shared configuration package by GreenPie. Current stable version is 16.1.0, released in 2025. It provides separate configs for JavaScript, TypeScript, Vue, and Oxlint with type-aware linting. Key differentiators: extremely strict rules, built-in Oxlint support with Vitest addon, and ESM-only usage. Dependencies include eslint, oxlint, oxlint-tsgolint, @stylistic/eslint-plugin, typescript-eslint, and eslint-plugin-vue. No official release cadence documented.

npm install eslint-config-greenpie
INSTALL
IMPORT
SIG · ESLINT-CONFIG-GREE
E
eslint-config-greenpie
devopsjavascriptv16.1.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

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

configs
import { configs } from 'eslint-config-greenpie'
const configs = require('eslint-config-greenpie')
Package is ESM-only. CommonJS require will fail.
default config
import { configs } from 'eslint-config-greenpie'; export default [...configs.default]
module.exports = require('eslint-config-greenpie').configs.default
Use spread operator to apply configs. Cannot use require.
Oxlint config file
extends: ['./node_modules/eslint-config-greenpie/configs/oxlintrc.jsonc']
extends: ['eslint-config-greenpie/configs/oxlintrc.jsonc']
Must use relative path to node_modules, not package name.

Shows how to install and configure eslint-config-greenpie for both ESLint and Oxlint, including TypeScript and Vue support.

// Install dependencies (pick one): // For ESLint: npm install eslint-config-greenpie eslint @stylistic/eslint-plugin --save-dev // For ESLint + TypeScript: npm install eslint-config-greenpie eslint @stylistic/eslint-plugin typescript-eslint --save-dev // For ESLint + Vue: npm install eslint-config-greenpie eslint @stylistic/eslint-plugin eslint-plugin-vue --save-dev // For Oxlint: npm install eslint-config-greenpie oxlint oxlint-tsgolint --save-dev // Then create an ESLint config file (eslint.config.js): import { defineConfig } from 'eslint/config'; import { configs } from 'eslint-config-greenpie'; export default defineConfig( ...configs.default ); // Or for Vue: export default defineConfig( ...configs.default, ...configs.vue ); // For Oxlint, create .oxlintrc.jsonc: { "$schema": "./node_modules/oxlint/configuration_schema.json", "extends": ["./node_modules/eslint-config-greenpie/configs/oxlintrc.jsonc"], "rules": { "eslint/no-magic-numbers": "off" } } // Run: oxlint
Debug
Known issues
breakingPackage is ESM-only. CommonJS require() will throw an error.
fix
Use import syntax or switch to dynamic import().
affects: >=16.0.0
gotchaOxlint config file must use relative path to node_modules, not package name.
fix
Use './node_modules/eslint-config-greenpie/configs/oxlintrc.jsonc' as extends value.
affects: >=16.0.0
deprecatedreportUnusedDisableDirectives is enabled by default and does not honor eslint-disable comments.
fix
Use oxlint-disable comments instead, or override in local config: set reportUnusedDisableDirectives to 'off' and respectEslintDisableDirectives to true.
affects: >=16.0.0
gotchaType-aware linting requires tsconfig.json in project root and oxlint-tsgolint installed.
fix
Ensure tsconfig.json exists in root and run: npm install oxlint-tsgolint --save-dev
affects: >=16.0.0
gotchaVitest rules are included only for files matching **/*.test.ts and **/__tests__/**/*.ts.
fix
If using different test file patterns, override the pattern in local oxlint config.
affects: >=16.0.0
Errors
Common errors & fixes
SyntaxError: Cannot use import statement outside a module
Package is ESM-only but project is using CommonJS (require) or no type: module in package.json.
fix
Add 'type': 'module' to your package.json or rename file to .mjs.
Cannot find module 'eslint-config-greenpie/configs/oxlintrc.jsonc'
Oxlint config file is referenced using package name instead of relative path to node_modules.
fix
Use './node_modules/eslint-config-greenpie/configs/oxlintrc.jsonc' as the extends value.
Error: Config array must contain only flat config objects and exported configs
ESLint config is not spread properly when using configs.default.
fix
Use spread operator: ...configs.default inside defineConfig([]).
Upgrade
Version history
16.1.0latest on npm
Audit
Dependencies
eslintrequiredpeer dependency for ESLint configs
oxlintoptionalpeer dependency for Oxlint configs
oxlint-tsgolintoptionalpeer dependency for type-aware Oxlint rules
eslint-plugin-vueoptionalpeer dependency for Vue configs
typescript-eslintoptionalpeer dependency for TypeScript configs
@stylistic/eslint-pluginoptionalpeer dependency for stylistic rules in ESLint
Agent activity
5 hits · last 30 days
node
4
Resources
eslint-config-greenpie — npm install eslint-config-greenpie · libregistry