edm115-lint
raw JSON → 0.2.1 verified Fri May 01 auth: no javascript
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.
Common errors
error Cannot find module 'edm115-lint' ↓
cause 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'). error ERR_MODULE_NOT_FOUND ↓
cause 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'. error Cannot find module '@stylistic/eslint-plugin' ↓
cause Peer dependency not installed.
fix
Run
pnpm add -D @stylistic/eslint-plugin. Warnings
gotcha The 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'`.
gotcha The package uses ESM only. CommonJS require() will fail. ↓
fix Use `import` syntax or set `"type": "module"` in package.json.
breaking In 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.
gotcha Peer 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).
Install
npm install edm115-lint yarn add edm115-lint pnpm add edm115-lint Imports
- eslint wrong
import edm115Lint from 'edm115-lint'correctimport { eslint } from 'edm115-lint' - oxlint wrong
import edm115Lint from 'edm115-lint/oxlint'correctimport { oxlint } from 'edm115-lint' - Config (via JSON file) wrong
import { eslintStylistic } from 'edm115-lint'correctimport edm115Lint from 'edm115-lint/eslint-stylistic.json'
Quickstart
// 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,
},
];