er-ant-lints
raw JSON → 1.0.2 verified Fri May 01 auth: no javascript
A personal collection of lint rules organized by categories (basic, advanced, different areas, disputable, configurable). Version 1.0.2, no release cadence. Differentiators: includes subjective/disputable rules and project-specific configurable rules.
Common errors
error Cannot find module 'er-ant-lints' ↓
cause Package not installed or not published.
fix
Run 'npm install er-ant-lints' or ensure package name is correct.
error SyntaxError: Unexpected token 'export' ↓
cause Using require() instead of import in ESM environment.
fix
Use 'import erAntLints from 'er-ant-lints'' in .mjs file or with module type.
Warnings
gotcha Exact rule names may differ from documentation; check actual exported rule names. ↓
fix Inspect the package's index.js or documentation for correct rule identifiers.
gotcha The package might not be published to npm registry; verify availability before use. ↓
fix Use 'npm view er-ant-lints' to confirm package exists.
gotcha No type declarations; TypeScript users may need to create custom .d.ts. ↓
fix Add declaration: declare module 'er-ant-lints' { export const rules: any; }
Install
npm install er-ant-lints yarn add er-ant-lints pnpm add er-ant-lints Imports
- default wrong
const erAntLints = require('er-ant-lints')correctimport erAntLints from 'er-ant-lints' - rules wrong
const rules = require('er-ant-lints').rulescorrectimport { rules } from 'er-ant-lints' - configs
import { configs } from 'er-ant-lints'
Quickstart
import erAntLints from 'er-ant-lints';
const config = {
extends: [
'er-ant-lints/basic',
'er-ant-lints/advanced'
],
rules: {
'my-rule': 'error'
}
};