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.

ruleseslint-v9-flat-config.md

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

ESLint v9 uses flat config by default. Prefer eslint.config.js or eslint.config.mjs over legacy .eslintrc* files.

Preferred setup in this skill: neostandard baseline

Install:

npm install --save-dev eslint neostandard

Create config (ESM helper):

npx neostandard --esm > eslint.config.js

Run lint:

npx eslint .

Manual flat config (when not using neostandard)

Install (example):

npm install --save-dev eslint @eslint/js typescript-eslint

Basic eslint.config.mjs (JS + TS):

import js from '@eslint/js'
import tseslint from 'typescript-eslint'

export default [
  js.configs.recommended,
  ...tseslint.configs.recommended,
  {
    files: ['**/*.{js,mjs,cjs,ts,mts,cts}'],
    languageOptions: {
      ecmaVersion: 'latest',
      sourceType: 'module'
    },
    rules: {
      'no-unused-vars': 'off',
      '@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_' }]
    }
  }
]

Package scripts

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

Good practices

  • Use a single root flat config unless package-level variance is required
  • Keep TypeScript-aware rules scoped to TS files
  • Avoid duplicate JS/TS rules; disable base rule when TS extension rule is used
  • Keep CI on non-fix lint runs; reserve --fix for local workflows

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