@ocavue/eslint-config 2.12.1 → 2.12.3
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/dist/src/package-json.d.ts.map +1 -1
- package/package.json +18 -12
- package/src/package-json.js +11 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"package-json.d.ts","sourceRoot":"","sources":["../../src/package-json.js"],"names":[],"mappings":"AAIA;;GAEG;AACH,
|
|
1
|
+
{"version":3,"file":"package-json.d.ts","sourceRoot":"","sources":["../../src/package-json.js"],"names":[],"mappings":"AAIA;;GAEG;AACH,qGAoEC"}
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ocavue/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.12.
|
|
5
|
-
"packageManager": "pnpm@9.15.
|
|
4
|
+
"version": "2.12.3",
|
|
5
|
+
"packageManager": "pnpm@9.15.4",
|
|
6
6
|
"description": "",
|
|
7
7
|
"author": "ocavue <ocavue@gmail.com>",
|
|
8
8
|
"license": "MIT",
|
|
@@ -13,7 +13,14 @@
|
|
|
13
13
|
"url": "https://github.com/ocavue/eslint-config.git"
|
|
14
14
|
},
|
|
15
15
|
"bugs": "https://github.com/ocavue/eslint-config/issues",
|
|
16
|
-
"keywords": [
|
|
16
|
+
"keywords": [
|
|
17
|
+
"eslint",
|
|
18
|
+
"eslint-config",
|
|
19
|
+
"typescript",
|
|
20
|
+
"markdown",
|
|
21
|
+
"react",
|
|
22
|
+
"vue"
|
|
23
|
+
],
|
|
17
24
|
"sideEffects": false,
|
|
18
25
|
"main": "./index.js",
|
|
19
26
|
"module": "./index.js",
|
|
@@ -34,26 +41,25 @@
|
|
|
34
41
|
"@eslint-types/unicorn": "^52.0.0",
|
|
35
42
|
"@eslint/js": "^9.17.0",
|
|
36
43
|
"@eslint/markdown": "^6.2.1",
|
|
37
|
-
"eslint-config-flat-gitignore": "^0.
|
|
38
|
-
"eslint-config-prettier": "^
|
|
44
|
+
"eslint-config-flat-gitignore": "^2.0.0",
|
|
45
|
+
"eslint-config-prettier": "^10.0.1",
|
|
39
46
|
"eslint-import-resolver-typescript": "^3.7.0",
|
|
40
|
-
"eslint-plugin-antfu": "^
|
|
47
|
+
"eslint-plugin-antfu": "^3.0.0",
|
|
41
48
|
"eslint-plugin-import-x": "^4.6.1",
|
|
42
49
|
"eslint-plugin-no-only-tests": "^3.3.0",
|
|
43
|
-
"eslint-plugin-package-json": "^0.
|
|
44
|
-
"eslint-plugin-react": "^7.37.
|
|
50
|
+
"eslint-plugin-package-json": "^0.21.1",
|
|
51
|
+
"eslint-plugin-react": "^7.37.4",
|
|
45
52
|
"eslint-plugin-react-hooks": "^5.1.0",
|
|
46
53
|
"eslint-plugin-unicorn": "^56.0.1",
|
|
47
54
|
"eslint-plugin-vue": "^9.32.0",
|
|
48
|
-
"typescript-eslint": "^8.
|
|
55
|
+
"typescript-eslint": "^8.22.0"
|
|
49
56
|
},
|
|
50
57
|
"devDependencies": {
|
|
51
58
|
"@antfu/ni": "^0.23.2",
|
|
52
59
|
"@types/eslint-config-prettier": "^6.11.3",
|
|
53
|
-
"@types/eslint__js": "^8.42.3",
|
|
54
60
|
"@types/node": "^20.17.9",
|
|
55
|
-
"@typescript-eslint/utils": "^8.
|
|
56
|
-
"eslint": "^9.
|
|
61
|
+
"@typescript-eslint/utils": "^8.22.0",
|
|
62
|
+
"eslint": "^9.17.0",
|
|
57
63
|
"prettier": "^3.4.2",
|
|
58
64
|
"typescript": "^5.7.2"
|
|
59
65
|
},
|
package/src/package-json.js
CHANGED
|
@@ -11,6 +11,17 @@ export function packageJson() {
|
|
|
11
11
|
rules: {
|
|
12
12
|
...pkgJson.rules,
|
|
13
13
|
'package-json/valid-package-definition': 'off',
|
|
14
|
+
'package-json/sort-collections': [
|
|
15
|
+
'warn',
|
|
16
|
+
[
|
|
17
|
+
// 'scripts', // Don't sort scripts
|
|
18
|
+
'devDependencies',
|
|
19
|
+
'dependencies',
|
|
20
|
+
'peerDependencies',
|
|
21
|
+
'config',
|
|
22
|
+
'exports',
|
|
23
|
+
],
|
|
24
|
+
],
|
|
14
25
|
'package-json/order-properties': [
|
|
15
26
|
'warn',
|
|
16
27
|
{
|