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.

rulesneostandard.md

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

neostandard is a shared ESLint flat config and config generator, not a standalone replacement linter command.

Key model

  • You install both neostandard and eslint
  • You generate or author eslint.config.js / eslint.config.mjs
  • You run linting via eslint (eslint ., eslint . --fix)

Install

npm install --save-dev neostandard eslint

Create config

Generate ESM config:

npx neostandard --esm > eslint.config.js

Generate CommonJS config:

npx neostandard > eslint.config.js

Or author manually (ESM):

import neostandard from 'neostandard'

export default neostandard({
  ts: true
})

Run lint

{
  "scripts": {
    "lint": "eslint .",
    "lint:fix": "eslint . --fix"
  }
}

Common options

  • ts: true — lint *.ts and *.d.ts
  • semi: true — semicolon mode (semistandard-style)
  • noStyle: true — disable style rules (useful with Prettier/dprint)
  • noJsx: true — disable JSX rules
  • ignores, files, filesTs, env, globals

Version caveat (v1+)

As of neostandard v1+, eslint-plugin-import-x is no longer bundled.

  • If you need deep import/export lint rules, add eslint-plugin-import-x explicitly
  • For many TypeScript projects, prefer tsc --noEmit for module/import correctness checks

Useful export

Use .gitignore patterns as ESLint ignores:

import neostandard, { resolveIgnoresFromGitignore } from 'neostandard'

export default neostandard({
  ignores: resolveIgnoresFromGitignore()
})

Important migration note

For projects moving from standard, keep neostandard as the config source but run lint through eslint.

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