Index of every page on this site: llms.txt
All skills
mcollina avatar

/linting-neostandard-eslint9

@c75d70d
by Matteo Collinamcollina/skills2k stars
146
Run it yourself

Configures ESLint v9 flat config and neostandard for JavaScript and TypeScript projects, including migrating from legacy `.eslintrc*` files or the `standard` package. Use when you need to set up or fix linting with `eslint.config.js` or `eslint.config.mjs`, troubleshoot lint errors, configure neostandard rules, migrate from `.eslintrc` to flat config, or integrate linting into CI pipelines and pre-commit hooks.

Use this Skill: https://skilld.dev/gh/mcollina/skills/linting-neostandard-eslint9

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

rulesmigration-from-standard.md

≈472 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Use this when a project currently runs standard and you want modern ESLint v9 + flat config while keeping a Standard-like baseline.

Canonical migration flow

  1. Install dependencies:
npm install --save-dev neostandard eslint
  1. (Optional preflight) verify helper command works:
npx neostandard --help
  1. Generate migrated config from existing package.json "standard" settings:
npx neostandard --migrate > eslint.config.js
  1. Replace lint scripts/CI commands from standard to eslint:
{
  "scripts": {
    "lint": "eslint .",
    "lint:fix": "eslint . --fix"
  }
}
  1. Cleanup old setup:
npm uninstall standard

Then remove obsolete top-level "standard" config and editor integrations specific to standard (for example vscode-standard).

Semicolon and TypeScript variants

  • semistandard-like migration:
npx neostandard --semi --migrate > eslint.config.js
  • TypeScript support in resulting config: set ts: true (or regenerate/configure accordingly).

Behavioral differences to expect

  • neostandard is built for ESLint 9 flat config (no standard-engine wrapper)
  • rule implementation uses modern flat-config/plugin model
  • some rules differ from legacy standard/eslint-config-standard behavior
  • on neostandard v1+, import rules from eslint-plugin-import-x are not bundled by default

If you relied heavily on import linting in your old setup, either:

  • add eslint-plugin-import-x explicitly, or
  • rely on tsc --noEmit (recommended for TypeScript-heavy projects)

Run lint and fix incrementally after migration; keep tooling migration separate from rule-tuning commits.

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts2mo4 checks · Risk SAFE
  • Gen Agent Trust Hub2mo

    The skill provides legitimate instructions for configuring ESLint v9 and neostandard in JavaScript and TypeScript projects. It uses standard development tools and well-known packages from the npm registry to set up linting environments.

  • Socket2mo

    No alerts

  • Snyk2mo

    Risk: LOW · No issues

  • Runlayer8mo

    5/6 files flagged

Signed by skilld at c75d70d. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub last month.

Activeupdated 9 months ago
Other metadata
metadata
{
  "tags": "linting, neostandard, eslint, eslint9, flat-config, javascript, typescript"
}

README badge

README badge for mcollina/skills/linting-neostandard-eslint9