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: sxzz/eslint-config
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v5.2.0
Choose a base ref
...
head repository: sxzz/eslint-config
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v5.3.0
Choose a head ref
  • 6 commits
  • 8 files changed
  • 1 contributor

Commits on Mar 2, 2025

  1. feat: deprecate vue 2 support

    sxzz committed Mar 2, 2025

    Verified

    This commit was signed with the committer’s verified signature.
    sxzz Kevin Deng 三咲智子
    Copy the full SHA
    e39062d View commit details
  2. chore: fix lint

    sxzz committed Mar 2, 2025

    Verified

    This commit was signed with the committer’s verified signature.
    sxzz Kevin Deng 三咲智子
    Copy the full SHA
    ab29507 View commit details
  3. docs: deprecate vue 2

    sxzz committed Mar 2, 2025

    Verified

    This commit was signed with the committer’s verified signature.
    sxzz Kevin Deng 三咲智子
    Copy the full SHA
    8b5c43a View commit details

Commits on Mar 7, 2025

  1. feat: sort pnpm workspace

    sxzz committed Mar 7, 2025

    Verified

    This commit was signed with the committer’s verified signature.
    sxzz Kevin Deng 三咲智子
    Copy the full SHA
    7da97c6 View commit details
  2. chore: upgrade deps

    sxzz committed Mar 7, 2025

    Verified

    This commit was signed with the committer’s verified signature.
    sxzz Kevin Deng 三咲智子
    Copy the full SHA
    8296841 View commit details
  3. chore: release v5.3.0

    sxzz committed Mar 7, 2025

    Verified

    This commit was signed with the committer’s verified signature.
    sxzz Kevin Deng 三咲智子
    Copy the full SHA
    502a99b View commit details
Showing with 415 additions and 322 deletions.
  1. +5 −2 README.md
  2. +16 −16 package.json
  3. +358 −297 pnpm-lock.yaml
  4. +21 −0 src/configs/sort.ts
  5. +1 −1 src/configs/unicorn.ts
  6. +5 −2 src/configs/vue.ts
  7. +7 −4 src/configs/yml.ts
  8. +2 −0 src/presets.ts
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,22 @@
# @sxzz/eslint-config [![npm](https://img.shields.io/npm/v/@sxzz/eslint-config.svg)](https://npmjs.com/package/@sxzz/eslint-config)

A opinionated ESLint config preset for JavaScript, TypeScript, Vue 2 or Vue 3,
A opinionated ESLint config preset for JavaScript, TypeScript, Vue,
and Prettier.

## Features

- Format with Prettier.
- Designed to work with TypeScript, Vue 2 and 3 out-of-box.
- Designed to work with TypeScript, Vue out-of-box.
- Support JSON(5), YAML, Markdown...
- Sort imports, `package.json`, `tsconfig.json`...
- [ESLint Flat config](https://eslint.org/docs/latest/use/configure/configuration-files-new), compose easily!
- Ignores common files like `dist`, `node_modules`, `coverage`, and files in `.gitignore`.
- Reasonable defaults, best practices, only one-line of config
- Reasonable strict, but with better code quality.

> [!TIP]
> Support for Vue 2 is deprecated.
## Install

```bash
32 changes: 16 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@sxzz/eslint-config",
"version": "5.2.0",
"packageManager": "pnpm@10.5.2",
"version": "5.3.0",
"packageManager": "pnpm@10.6.1",
"description": "ESLint config for @sxzz.",
"type": "module",
"license": "MIT",
@@ -51,43 +51,43 @@
"dependencies": {
"@eslint-community/eslint-plugin-eslint-comments": "^4.4.1",
"@eslint/js": "^9.21.0",
"@eslint/markdown": "^6.2.2",
"@eslint/markdown": "^6.3.0",
"eslint-config-flat-gitignore": "^2.1.0",
"eslint-config-prettier": "^10.0.2",
"eslint-plugin-antfu": "^3.1.0",
"eslint-config-prettier": "^10.1.1",
"eslint-plugin-antfu": "^3.1.1",
"eslint-plugin-command": "^3.1.0",
"eslint-plugin-de-morgan": "^1.2.0",
"eslint-plugin-import-x": "^4.6.1",
"eslint-plugin-jsdoc": "^50.6.3",
"eslint-plugin-jsonc": "^2.19.1",
"eslint-plugin-n": "^17.16.1",
"eslint-plugin-n": "^17.16.2",
"eslint-plugin-perfectionist": "^4.9.0",
"eslint-plugin-prettier": "^5.2.3",
"eslint-plugin-regexp": "^2.7.0",
"eslint-plugin-sxzz": "^0.2.0",
"eslint-plugin-sxzz": "^0.2.1",
"eslint-plugin-unicorn": "^57.0.0",
"eslint-plugin-unused-imports": "^4.1.4",
"eslint-plugin-vue": "^9.32.0",
"eslint-plugin-vue": "^10.0.0",
"eslint-plugin-yml": "^1.17.0",
"globals": "^16.0.0",
"jsonc-eslint-parser": "^2.4.0",
"local-pkg": "^1.1.0",
"prettier": "^3.5.2",
"typescript-eslint": "^8.25.0",
"vue-eslint-parser": "^9.4.3",
"local-pkg": "^1.1.1",
"prettier": "^3.5.3",
"typescript-eslint": "^8.26.0",
"vue-eslint-parser": "^10.1.1",
"yaml-eslint-parser": "^1.3.0"
},
"devDependencies": {
"@eslint/config-inspector": "^1.0.1",
"@sxzz/prettier-config": "^2.2.0",
"@types/node": "^22.13.8",
"@eslint/config-inspector": "^1.0.2",
"@sxzz/prettier-config": "^2.2.1",
"@types/node": "^22.13.9",
"@unocss/eslint-plugin": "^66.1.0-beta.3",
"bumpp": "^10.0.3",
"eslint": "^9.21.0",
"eslint-typegen": "^2.0.0",
"importx": "^0.5.2",
"picocolors": "^1.1.1",
"tsdown": "^0.6.0",
"tsdown": "^0.6.4",
"tsx": "^4.19.3",
"typescript": "^5.8.2"
},
Loading