enforcing-code-linting — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited enforcing-code-linting (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
For staged changes:
git diff --cached --name-only --diff-filter=ACMRFor branch comparison:
git diff --name-only origin/main...HEADFilter to lintable files:
git diff --cached --name-only --diff-filter=ACMR | grep -E '\.(js|jsx|ts|tsx|vue|css|scss|json|md)$'Check for linter configurations in project root:
| Tool | Config Files |
|---|---|
| ESLint | .eslintrc.*, eslint.config.*, package.json |
| Prettier | .prettierrc.*, prettier.config.*, package.json |
| stylelint | .stylelintrc.*, stylelint.config.*, package.json |
Verify tools are installed:
npm ls eslint prettier stylelint 2>/dev/null || yarn list --pattern "eslint|prettier|stylelint" 2>/dev/nullESLint (JavaScript/TypeScript):
npx eslint --format stylish <files>With auto-fix preview:
npx eslint --fix-dry-run --format json <files>Prettier (formatting):
npx prettier --check <files>Show what would change:
npx prettier --write --list-different <files>stylelint (CSS/SCSS):
npx stylelint <css-files>Group issues by severity and type:
Errors (must fix):
Warnings (should fix):
Style (nice to fix):
Format findings clearly:
## Linting Report
### Errors (3)
| File | Line | Rule | Message |
| ------------ | ---- | ---------------------------------- | ------------------------------------ |
| src/utils.ts | 42 | @typescript-eslint/no-explicit-any | Unexpected any |
| src/api.ts | 15 | no-unused-vars | 'response' is defined but never used |
| src/index.ts | 8 | import/no-unresolved | Unable to resolve path |
### Warnings (2)
| File | Line | Rule | Message |
| -------------- | ---- | ---------------------------------------- | ------------------------- |
| src/Button.tsx | 23 | jsx-a11y/click-events-have-key-events | Missing keyboard handler |
| src/utils.ts | 67 | @typescript-eslint/no-non-null-assertion | Avoid non-null assertions |
### Formatting (5 files)
- src/components/Card.tsx
- src/hooks/useAuth.ts
- src/pages/Home.tsx
- src/styles/main.css
- src/types/index.tsAuto-fix all fixable issues:
npx eslint --fix <files>
npx prettier --write <files>
npx stylelint --fix <css-files>Fix specific rule categories:
# Only formatting fixes
npx eslint --fix --rule 'indent: error' --rule 'semi: error' <files>
# Only import sorting
npx eslint --fix --rule 'import/order: error' <files>Re-run linters to confirm resolution:
npx eslint <files> && npx prettier --check <files> && echo "✓ All checks passed"Check for flat config (ESLint 9+):
ls eslint.config.{js,mjs,cjs} 2>/dev/nullCheck for legacy config:
ls .eslintrc.{js,cjs,json,yml,yaml} 2>/dev/nullls .prettierrc{,.json,.yml,.yaml,.js,.cjs,.mjs} prettier.config.{js,cjs,mjs} 2>/dev/nullCheck for existing lint scripts:
npm pkg get scripts.lint scripts.format scripts.style 2>/dev/nullPrefer using project scripts when available:
npm run lint -- --fix
npm run format// Before
import { useState, useEffect, useCallback } from "react";
// Only useState used
// After
import { useState } from "react";// Before
<div onClick={handleClick}>Click me</div>
// After
<button type="button" onClick={handleClick}>Click me</button>// Before
const obj = { foo: "bar", baz: 42 };
// After
const obj = { foo: "bar", baz: 42 };If user wants pre-commit enforcement, suggest:
npx husky add .husky/pre-commit "npx lint-staged"With lint-staged config in package.json:
{
"lint-staged": {
"*.{js,jsx,ts,tsx}": ["eslint --fix", "prettier --write"],
"*.{css,scss}": ["stylelint --fix", "prettier --write"],
"*.{json,md}": ["prettier --write"]
}
}Before completing:
npm install --save-dev <tool> or check if project uses yarn/pnpm.npx <tool> --init to create config.npx <tool> --help for available options.git status to verify. May need to stage changes first.~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.