Registry / testing / edm115-lint

edm115-lint

JSON →
library0.2.1jsnpmunverified

edm115-lint is a personal, opinionated configuration package for ESLint and OxLint, providing pre-built rulesets optimized for TypeScript projects. Version 0.2.1 is the current stable release with active development. It differentiates by offering both ESLint Stylistic-compatible configs and OxLint configs (new and old format) in a single package, and exposes JSON files for easy import. Release cadence is low; updates are driven by the maintainer's personal needs.

npm install edm115-lint
INSTALL
IMPORT
SIG · EDM115-LINT
E
edm115-lint
testingjavascriptv0.2.1
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.

eslint
import { eslint } from 'edm115-lint'
import edm115Lint from 'edm115-lint'
The main ESLint config is a named export from the package root. Default import will fail.
oxlint
import { oxlint } from 'edm115-lint'
import edm115Lint from 'edm115-lint/oxlint'
OxLint config is also a named export. Path-based import (e.g., 'edm115-lint/oxlint') works but is less common.
Config (via JSON file)
import edm115Lint from 'edm115-lint/eslint-stylistic.json'
import { eslintStylistic } from 'edm115-lint'
ESLint Stylistic config is available as a JSON file with assert { type: 'json' } or direct import (depending on bundler). No named export for this variant.

Sets up ESLint with edm115-lint config, TypeScript parser, and Stylistic plugin.

// Install git init pnpm add -D edm115-lint @stylistic/eslint-plugin @typescript-eslint/parser // eslint.config.ts import stylistic from '@stylistic/eslint-plugin'; import tsParser from '@typescript-eslint/parser'; import { eslint } from 'edm115-lint'; export default [ { ignores: ['**/dist/', '**/node_modules/'] }, { files: ['**/*.ts'], linterOptions: { reportUnusedDisableDirectives: false }, languageOptions: { ecmaVersion: 'latest', sourceType: 'module', parser: tsParser, parserOptions: { ecmaVersion: 'latest', tsconfigRootDir: import.meta.dirname, }, }, plugins: { '@stylistic': stylistic }, rules: eslint, }, ];
Debug
Known issues
gotchaThe ESLint config is exported as named export `eslint`, not a default export. Using default import will result in undefined or error.
fix
Use `import { eslint } from 'edm115-lint'` instead of `import edm115Lint from 'edm115-lint'`.
affects: >=0.1.0
gotchaThe package uses ESM only. CommonJS require() will fail.
fix
Use `import` syntax or set `"type": "module"` in package.json.
affects: >=0.1.0
breakingIn v0.2.0, the OxLint config path changed. The old config file `.oxlintrc.base.json` is still available but the recommended import is the named export `oxlint`.
fix
Update imports to use `import { oxlint } from 'edm115-lint'` if previously using path-based import.
affects: >=0.2.0
gotchaPeer dependencies (@stylistic/eslint-plugin, @typescript-eslint/parser, oxlint) are not installed automatically. Missing them will cause runtime errors.
fix
Install peer dependencies manually: `pnpm add -D @stylistic/eslint-plugin @typescript-eslint/parser oxlint` (only needed ones).
affects: >=0.1.0
Errors
Common errors & fixes
Cannot find module 'edm115-lint'
Package not installed or incorrect import path.
fix
Run `pnpm add -D edm115-lint` and ensure import uses correct syntax (`import { eslint } from 'edm115-lint'`).
ERR_MODULE_NOT_FOUND
Attempting to import a named export that doesn't exist, e.g., `import default from 'edm115-lint'`.
fix
Check the export: use `import { eslint } from 'edm115-lint'` or `import { oxlint } from 'edm115-lint'`.
Cannot find module '@stylistic/eslint-plugin'
Peer dependency not installed.
fix
Run `pnpm add -D @stylistic/eslint-plugin`.
Upgrade
Version history
0.2.1latest on npm
Audit
Dependencies
@stylistic/eslint-pluginoptionalRequired peer dependency for ESLint configs that use stylistic rules.
@typescript-eslint/parseroptionalRequired for parsing TypeScript files in ESLint configs.
oxlintoptionalRequired for using OxLint configs.
Agent activity
2 hits · last 30 days
node
2
Resources
edm115-lint — npm install edm115-lint · libregistry