@lincy/eslint-config 6.1.0 → 6.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "@lincy/eslint-config",
3
3
  "type": "module",
4
- "version": "6.1.0",
4
+ "version": "6.3.0",
5
+ "packageManager": "pnpm@10.26.1",
5
6
  "description": "LinCenYing's ESLint config",
6
7
  "author": "LinCenYing <lincenying@gmail.com> (https://github.com/lincenying/)",
7
8
  "license": "MIT",
@@ -11,16 +12,31 @@
11
12
  ],
12
13
  "exports": {
13
14
  ".": {
14
- "import": "./dist/index.js",
15
- "require": "./dist/index.cjs"
16
- }
15
+ "require": "./dist/index.cjs",
16
+ "import": "./dist/index.mjs"
17
+ },
18
+ "./package.json": "./package.json"
17
19
  },
18
20
  "main": "./dist/index.cjs",
19
- "module": "./dist/index.js",
20
- "types": "./dist/index.d.ts",
21
+ "module": "./dist/index.mjs",
22
+ "types": "./dist/index.d.cts",
21
23
  "files": [
22
24
  "dist"
23
25
  ],
26
+ "scripts": {
27
+ "build": "nr typegen && tsdown --format esm,cjs --clean --dts",
28
+ "stub": "tsdown src/index.ts --format esm",
29
+ "watch": "tsdown --format esm,cjs --watch",
30
+ "postpublish": "simple-open-url https://npmmirror.com/package/@lincy/eslint-config",
31
+ "prepublishOnly": "nr build",
32
+ "release": "bumpp && pnpm publish -r --access public",
33
+ "test": "vitest",
34
+ "typegen": "tsx scripts/typegen.ts",
35
+ "lint": "pnpm run stub && eslint .",
36
+ "lint:fix": "eslint . --fix",
37
+ "lint:ts": "tsc --noEmit",
38
+ "prepare[-del]": "npx simple-git-hooks"
39
+ },
24
40
  "peerDependencies": {
25
41
  "@eslint-react/eslint-plugin": "^2.3.5",
26
42
  "@next/eslint-plugin-next": ">=15.0.0",
@@ -55,70 +71,76 @@
55
71
  }
56
72
  },
57
73
  "dependencies": {
58
- "@antfu/install-pkg": "^1.1.0",
59
- "@clack/prompts": "^0.11.0",
60
- "@eslint-community/eslint-plugin-eslint-comments": "^4.5.0",
61
- "@eslint/markdown": "^7.5.1",
62
- "@stylistic/eslint-plugin": "^5.6.1",
63
- "@typescript-eslint/eslint-plugin": "^8.48.1",
64
- "@typescript-eslint/parser": "^8.48.1",
65
- "@vitest/eslint-plugin": "^1.5.1",
66
- "eslint-config-flat-gitignore": "^2.1.0",
67
- "eslint-flat-config-utils": "^2.1.4",
68
- "eslint-merge-processors": "^2.0.0",
69
- "eslint-parser-plain": "^0.1.1",
70
- "eslint-plugin-antfu": "^3.1.1",
71
- "eslint-plugin-import-lite": "^0.3.0",
72
- "eslint-plugin-jsdoc": "^61.4.1",
73
- "eslint-plugin-jsonc": "^2.21.0",
74
- "eslint-plugin-n": "^17.23.1",
75
- "eslint-plugin-no-only-tests": "^3.3.0",
76
- "eslint-plugin-perfectionist": "^4.15.1",
77
- "eslint-plugin-pnpm": "^1.4.0",
78
- "eslint-plugin-regexp": "^2.10.0",
79
- "eslint-plugin-toml": "^0.12.0",
80
- "eslint-plugin-unicorn": "^62.0.0",
81
- "eslint-plugin-unused-imports": "^4.3.0",
82
- "eslint-plugin-vue": "^10.6.2",
83
- "eslint-plugin-yml": "^1.19.0",
84
- "eslint-processor-vue-blocks": "^2.0.0",
85
- "globals": "^16.5.0",
86
- "jsonc-eslint-parser": "^2.4.1",
87
- "local-pkg": "^1.1.2",
88
- "toml-eslint-parser": "^0.10.0",
89
- "vue-eslint-parser": "^10.2.0",
90
- "yaml-eslint-parser": "^1.3.2"
74
+ "@antfu/install-pkg": "catalog:prod",
75
+ "@clack/prompts": "catalog:prod",
76
+ "@eslint-community/eslint-plugin-eslint-comments": "catalog:prod",
77
+ "@eslint/markdown": "catalog:prod",
78
+ "@stylistic/eslint-plugin": "catalog:prod",
79
+ "@typescript-eslint/eslint-plugin": "catalog:prod",
80
+ "@typescript-eslint/parser": "catalog:prod",
81
+ "@vitest/eslint-plugin": "catalog:prod",
82
+ "eslint-config-flat-gitignore": "catalog:prod",
83
+ "eslint-flat-config-utils": "catalog:prod",
84
+ "eslint-merge-processors": "catalog:prod",
85
+ "eslint-parser-plain": "catalog:prod",
86
+ "eslint-plugin-antfu": "catalog:prod",
87
+ "eslint-plugin-erasable-syntax-only": "catalog:prod",
88
+ "eslint-plugin-import-lite": "catalog:prod",
89
+ "eslint-plugin-jsdoc": "catalog:prod",
90
+ "eslint-plugin-jsonc": "catalog:prod",
91
+ "eslint-plugin-n": "catalog:prod",
92
+ "eslint-plugin-no-only-tests": "catalog:prod",
93
+ "eslint-plugin-perfectionist": "catalog:prod",
94
+ "eslint-plugin-pnpm": "catalog:prod",
95
+ "eslint-plugin-regexp": "catalog:prod",
96
+ "eslint-plugin-toml": "catalog:prod",
97
+ "eslint-plugin-unicorn": "catalog:prod",
98
+ "eslint-plugin-unused-imports": "catalog:prod",
99
+ "eslint-plugin-vue": "catalog:prod",
100
+ "eslint-plugin-yml": "catalog:prod",
101
+ "eslint-processor-vue-blocks": "catalog:prod",
102
+ "globals": "catalog:prod",
103
+ "jsonc-eslint-parser": "catalog:prod",
104
+ "local-pkg": "catalog:prod",
105
+ "toml-eslint-parser": "catalog:prod",
106
+ "vue-eslint-parser": "catalog:prod",
107
+ "yaml-eslint-parser": "catalog:prod"
91
108
  },
92
109
  "devDependencies": {
93
- "@antfu/ni": "^28.0.0",
94
- "@eslint-react/eslint-plugin": "^2.3.12",
95
- "@eslint/config-inspector": "^1.4.2",
96
- "@next/eslint-plugin-next": "^16.0.7",
97
- "@prettier/plugin-xml": "^3.4.2",
98
- "@stylistic/eslint-plugin-migrate": "^4.4.1",
99
- "@types/node": "^24.10.1",
100
- "@types/react": "^19.2.7",
101
- "@unocss/eslint-plugin": "^66.5.10",
102
- "bumpp": "^10.3.2",
103
- "eslint": "^9.39.1",
104
- "eslint-plugin-erasable-syntax-only": "^0.4.0",
105
- "eslint-plugin-format": "^1.1.0",
106
- "eslint-plugin-react-hooks": "^7.0.1",
107
- "eslint-plugin-react-refresh": "^0.4.24",
108
- "eslint-typegen": "^2.3.0",
109
- "esno": "^4.8.0",
110
- "execa": "^9.6.1",
111
- "find-up-simple": "^1.0.1",
112
- "lint-staged": "^16.2.7",
113
- "prettier": "^3.7.4",
114
- "react": "^19.2.1",
115
- "simple-open-url": "^3.0.1",
116
- "tinyglobby": "^0.2.15",
117
- "tsdown": "^0.15.12",
118
- "typescript": "^5.9.3",
119
- "vitest": "^4.0.15",
120
- "vue": "^3.5.25",
121
- "@lincy/eslint-config": "6.1.0"
110
+ "@antfu/ni": "catalog:dev",
111
+ "@eslint-react/eslint-plugin": "catalog:peer",
112
+ "@eslint/config-inspector": "catalog:dev",
113
+ "@lincy/eslint-config": "workspace:*",
114
+ "@next/eslint-plugin-next": "catalog:peer",
115
+ "@prettier/plugin-xml": "catalog:peer",
116
+ "@stylistic/eslint-plugin-migrate": "catalog:dev",
117
+ "@types/node": "catalog:dev",
118
+ "@types/react": "catalog:dev",
119
+ "@unocss/eslint-plugin": "catalog:peer",
120
+ "bumpp": "catalog:dev",
121
+ "eslint": "catalog:peer",
122
+ "eslint-plugin-format": "catalog:peer",
123
+ "eslint-plugin-react-hooks": "catalog:peer",
124
+ "eslint-plugin-react-refresh": "catalog:peer",
125
+ "eslint-typegen": "catalog:dev",
126
+ "esno": "catalog:dev",
127
+ "execa": "catalog:test",
128
+ "find-up-simple": "catalog:inline",
129
+ "lint-staged": "catalog:dev",
130
+ "prettier": "catalog:dev",
131
+ "react": "catalog:dev",
132
+ "simple-open-url": "catalog:dev",
133
+ "tinyglobby": "catalog:test",
134
+ "tsdown": "catalog:dev",
135
+ "typescript": "catalog:dev",
136
+ "vitest": "catalog:test",
137
+ "vue": "catalog:peer"
138
+ },
139
+ "resolutions": {
140
+ "@eslint-community/eslint-utils": "catalog:peer",
141
+ "@typescript-eslint/utils": "catalog:peer",
142
+ "eslint": "catalog:peer",
143
+ "tsx": "catalog:peer"
122
144
  },
123
145
  "simple-git-hooks[-del]": {
124
146
  "pre-commit": "npx lint-staged"
@@ -128,17 +150,5 @@
128
150
  },
129
151
  "publishConfig": {
130
152
  "registry": "https://registry.npmjs.org/"
131
- },
132
- "scripts": {
133
- "build": "nr typegen && tsdown --format esm,cjs --clean --dts",
134
- "stub": "tsdown src/index.ts --format esm",
135
- "watch": "tsdown --format esm,cjs --watch",
136
- "release": "bumpp && pnpm publish -r --access public",
137
- "test": "vitest",
138
- "typegen": "tsx scripts/typegen.ts",
139
- "lint": "pnpm run stub && eslint .",
140
- "lint:fix": "eslint . --fix",
141
- "lint:ts": "tsc --noEmit",
142
- "prepare[-del]": "npx simple-git-hooks"
143
153
  }
144
- }
154
+ }
@@ -1,39 +0,0 @@
1
- //#region rolldown:runtime
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __commonJS = (cb, mod) => function() {
9
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
10
- };
11
- var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
13
- key = keys[i];
14
- if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
15
- get: ((k) => from[k]).bind(null, key),
16
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
17
- });
18
- }
19
- return to;
20
- };
21
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
22
- value: mod,
23
- enumerable: true
24
- }) : target, mod));
25
-
26
- //#endregion
27
-
28
- Object.defineProperty(exports, '__commonJS', {
29
- enumerable: true,
30
- get: function () {
31
- return __commonJS;
32
- }
33
- });
34
- Object.defineProperty(exports, '__toESM', {
35
- enumerable: true,
36
- get: function () {
37
- return __toESM;
38
- }
39
- });