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.

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.
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; }
npm install er-ant-lints
yarn add er-ant-lints
pnpm add er-ant-lints

Shows how to use the package by extending predefined rule sets and overriding a rule.

import erAntLints from 'er-ant-lints';
const config = {
  extends: [
    'er-ant-lints/basic',
    'er-ant-lints/advanced'
  ],
  rules: {
    'my-rule': 'error'
  }
};