Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: antfu/eslint-config
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v2.6.3
Choose a base ref
...
head repository: antfu/eslint-config
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v2.6.4
Choose a head ref
  • 4 commits
  • 4 files changed
  • 2 contributors

Commits on Jan 23, 2024

  1. Verified

    This commit was signed with the committer’s verified signature.
    dtolnay David Tolnay
    Copy the full SHA
    3707078 View commit details

Commits on Feb 3, 2024

  1. chore: update deps

    antfu committed Feb 3, 2024
    Copy the full SHA
    5cabf84 View commit details
  2. Copy the full SHA
    d205d0d View commit details
  3. chore: release v2.6.4

    antfu committed Feb 3, 2024
    Copy the full SHA
    9eea829 View commit details
Showing with 255 additions and 315 deletions.
  1. +16 −16 package.json
  2. +237 −299 pnpm-lock.yaml
  3. +1 −0 src/configs/typescript.ts
  4. +1 −0 src/factory.ts
32 changes: 16 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "@antfu/eslint-config",
"type": "module",
"version": "2.6.3",
"packageManager": "pnpm@8.14.1",
"version": "2.6.4",
"packageManager": "pnpm@8.15.1",
"description": "Anthony's ESLint config",
"author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
"license": "MIT",
@@ -73,27 +73,27 @@
"@antfu/eslint-define-config": "^1.23.0-2",
"@antfu/install-pkg": "^0.3.1",
"@eslint-types/jsdoc": "46.8.2-1",
"@eslint-types/typescript-eslint": "^6.18.1",
"@eslint-types/typescript-eslint": "^6.19.1",
"@eslint-types/unicorn": "^50.0.1",
"@stylistic/eslint-plugin": "^1.5.4",
"@typescript-eslint/eslint-plugin": "^6.19.0",
"@typescript-eslint/parser": "^6.19.0",
"@typescript-eslint/eslint-plugin": "^6.20.0",
"@typescript-eslint/parser": "^6.20.0",
"eslint-config-flat-gitignore": "^0.1.2",
"eslint-merge-processors": "^0.1.0",
"eslint-plugin-antfu": "^2.1.1",
"eslint-plugin-antfu": "^2.1.2",
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-i": "^2.29.1",
"eslint-plugin-jsdoc": "^48.0.2",
"eslint-plugin-jsonc": "^2.12.2",
"eslint-plugin-jsdoc": "^48.0.4",
"eslint-plugin-jsonc": "^2.13.0",
"eslint-plugin-markdown": "^3.0.1",
"eslint-plugin-n": "^16.6.2",
"eslint-plugin-no-only-tests": "^3.1.0",
"eslint-plugin-perfectionist": "^2.5.0",
"eslint-plugin-toml": "^0.9.2",
"eslint-plugin-unicorn": "^50.0.1",
"eslint-plugin-unused-imports": "^3.0.0",
"eslint-plugin-vitest": "^0.3.20",
"eslint-plugin-vue": "^9.20.1",
"eslint-plugin-vitest": "^0.3.21",
"eslint-plugin-vue": "^9.21.1",
"eslint-plugin-yml": "^1.12.2",
"eslint-processor-vue-blocks": "^0.1.1",
"globals": "^13.24.0",
@@ -103,7 +103,7 @@
"picocolors": "^1.0.0",
"prompts": "^2.4.2",
"toml-eslint-parser": "^0.9.3",
"vue-eslint-parser": "^9.4.0",
"vue-eslint-parser": "^9.4.2",
"yaml-eslint-parser": "^1.2.2",
"yargs": "^17.7.2"
},
@@ -114,10 +114,10 @@
"@stylistic/eslint-plugin-migrate": "^1.5.4",
"@types/eslint": "^8.56.2",
"@types/fs-extra": "^11.0.4",
"@types/node": "^20.11.5",
"@types/node": "^20.11.16",
"@types/prompts": "^2.4.9",
"@types/yargs": "^17.0.32",
"@unocss/eslint-plugin": "^0.58.3",
"@unocss/eslint-plugin": "^0.58.4",
"bumpp": "^9.3.0",
"eslint": "npm:eslint-ts-patch@^8.56.0-0",
"eslint-flat-config-viewer": "^0.1.11",
@@ -131,15 +131,15 @@
"execa": "^8.0.1",
"fast-glob": "^3.3.2",
"fs-extra": "^11.2.0",
"lint-staged": "^15.2.0",
"lint-staged": "^15.2.1",
"rimraf": "^5.0.5",
"simple-git-hooks": "^2.9.0",
"svelte": "^4.2.9",
"svelte-eslint-parser": "^0.33.1",
"tsup": "^8.0.1",
"typescript": "^5.3.3",
"vitest": "^1.2.0",
"vue": "^3.4.14"
"vitest": "^1.2.2",
"vue": "^3.4.15"
},
"simple-git-hooks": {
"pre-commit": "pnpm lint-staged"
536 changes: 237 additions & 299 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/configs/typescript.ts
Original file line number Diff line number Diff line change
@@ -115,6 +115,7 @@ export async function typescript(
'ts/ban-types': ['error', { types: { Function: false } }],
'ts/consistent-type-definitions': ['error', 'interface'],
'ts/consistent-type-imports': ['error', { disallowTypeAnnotations: false, prefer: 'type-imports' }],
'ts/method-signature-style': ['error', 'property'], // https://www.totaltypescript.com/method-shorthand-syntax-considered-harmful
'ts/no-dupe-class-members': 'error',
'ts/no-dynamic-delete': 'off',
'ts/no-explicit-any': 'off',
1 change: 1 addition & 0 deletions src/factory.ts
Original file line number Diff line number Diff line change
@@ -29,6 +29,7 @@ import { combine, interopDefault } from './utils'
import { formatters } from './configs/formatters'

const flatConfigProps: (keyof FlatConfigItem)[] = [
'name',
'files',
'ignores',
'languageOptions',