Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,16 +47,18 @@ If you want to override the recommended rules:
```ts
// eslint.config.ts
import packageJson from "eslint-plugin-package-json";
import { defineConfig } from "eslint/config";

export default [
export default defineConfig(
// your other ESLint configurations
packageJson.configs.recommended,
{
extends: [packageJson.configs.recommended],
files: ["package.json"],
rules: {
"package-json/valid-package-definition": "off",
"package-json/require-author": "error",
},
},
];
);
```

See [ESLint's _Configuration Files_ guide](https://eslint.org/docs/latest/use/configure/configuration-files-new) for details on how to customize your rules and other config settings.
Expand Down
Loading