diff --git a/README.md b/README.md index ead3d04ad8..2f3c0dec37 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # @nirtamir2/eslint-config -[![npm](https://img.shields.io/npm/v/@nirtamir2/eslint-config?color=444&label=)](https://npmjs.com/package/@nirtamir2/eslint-config) [![code style](https://nirtamir2.me/badge-code-style.svg)](https://github.com/nirtamir2/eslint-config) +[![npm](https://img.shields.io/npm/v/@nirtamir2/eslint-config?color=444&label=)](https://npmjs.com/package/@nirtamir2/eslint-config) This is a fork of Anthony Fu's [ESLint Config](https://github.com/antfu/eslint-config) maintained by [Nir Tamir](https://github.com/nirtamir2/). @@ -18,8 +18,6 @@ This is a fork of Anthony Fu's [ESLint Config](https://github.com/antfu/eslint-c - Respects `.gitignore` by default - Supports ESLint v9 or v8.50.0+ -> [!IMPORTANT] -> Since v1.0.0, this config is rewritten to the new [ESLint Flat config](https://eslint.org/docs/latest/use/configure/configuration-files-new), check the [release note](https://github.com/nirtamir2/eslint-config/releases/tag/v1.0.0) for more details. ## Usage diff --git a/src/configs/sort.ts b/src/configs/sort.ts index b62708f059..42e6a352eb 100644 --- a/src/configs/sort.ts +++ b/src/configs/sort.ts @@ -31,6 +31,7 @@ export async function sortPackageJson(): Promise> { "packageManager", "description", "author", + "contributors", "license", "funding", "homepage", diff --git a/src/configs/typescript.ts b/src/configs/typescript.ts index 6d3b2a85cd..1a5a1085a7 100644 --- a/src/configs/typescript.ts +++ b/src/configs/typescript.ts @@ -174,7 +174,7 @@ export async function typescript( ] : []), { - files: ["**/*.d.([cm])ts"], + files: ['**/*.d.?([cm])ts'], name: "antfu/typescript/disables/dts", rules: { "eslint-comments/no-unlimited-disable": "off",