@magicdawn/eslint-config 1.5.13 → 1.5.14
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/index.d.ts +4 -0
- package/dist/index.js +6 -2
- package/package.json +22 -19
package/dist/index.d.ts
CHANGED
|
@@ -60,6 +60,10 @@ declare const mgCustomRules: {
|
|
|
60
60
|
readonly 'unicorn/prefer-string-trim-start-end': "off";
|
|
61
61
|
readonly 'unicorn/prefer-string-raw': "off";
|
|
62
62
|
readonly 'unicorn/no-negated-condition': "off";
|
|
63
|
+
readonly 'unicorn/no-array-sort': "off";
|
|
64
|
+
readonly 'unicorn/no-array-reverse': "off";
|
|
65
|
+
readonly 'unicorn/prefer-global-this': "off";
|
|
66
|
+
readonly 'unicorn/no-useless-undefined': "off";
|
|
63
67
|
/**
|
|
64
68
|
* change options
|
|
65
69
|
*/
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { GLOB_SRC, GLOB_TS, GLOB_TSX, sxzz } from "@sxzz/eslint-config";
|
|
2
1
|
import assert from "node:assert/strict";
|
|
2
|
+
import { GLOB_SRC, GLOB_TS, GLOB_TSX, sxzz } from "@sxzz/eslint-config";
|
|
3
3
|
import { uniq } from "es-toolkit";
|
|
4
4
|
import eslintConfigPrettier from "eslint-config-prettier";
|
|
5
5
|
|
|
@@ -42,6 +42,10 @@ const mgCustomRules = {
|
|
|
42
42
|
"unicorn/prefer-string-trim-start-end": "off",
|
|
43
43
|
"unicorn/prefer-string-raw": "off",
|
|
44
44
|
"unicorn/no-negated-condition": "off",
|
|
45
|
+
"unicorn/no-array-sort": "off",
|
|
46
|
+
"unicorn/no-array-reverse": "off",
|
|
47
|
+
"unicorn/prefer-global-this": "off",
|
|
48
|
+
"unicorn/no-useless-undefined": "off",
|
|
45
49
|
"unicorn/text-encoding-identifier-case": ["warn", { withDash: true }]
|
|
46
50
|
},
|
|
47
51
|
disableMorePrefer: { "prefer-template": "off" },
|
|
@@ -115,7 +119,7 @@ function fromSxzz(options, ...moreConfigs) {
|
|
|
115
119
|
return sxzz({
|
|
116
120
|
command: false,
|
|
117
121
|
prettier: false,
|
|
118
|
-
...sxzzOptions
|
|
122
|
+
...sxzzOptions
|
|
119
123
|
}, [
|
|
120
124
|
eslintConfigPrettier,
|
|
121
125
|
mgCustomIgnoreConfig,
|
package/package.json
CHANGED
|
@@ -1,26 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@magicdawn/eslint-config",
|
|
3
|
-
"version": "1.5.13",
|
|
4
|
-
"packageManager": "pnpm@10.23.0+sha512.21c4e5698002ade97e4efe8b8b4a89a8de3c85a37919f957e7a0f30f38fbc5bbdd05980ffe29179b2fb6e6e691242e098d945d1601772cad0fef5fb6411e2a4b",
|
|
5
|
-
"description": "magicdawn's eslint-config",
|
|
6
3
|
"type": "module",
|
|
7
|
-
"
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
],
|
|
4
|
+
"version": "1.5.14",
|
|
5
|
+
"packageManager": "pnpm@10.25.0+sha512.5e82639027af37cf832061bcc6d639c219634488e0f2baebe785028a793de7b525ffcd3f7ff574f5e9860654e098fe852ba8ac5dd5cefe1767d23a020a92f501",
|
|
6
|
+
"description": "magicdawn's eslint-config",
|
|
7
|
+
"author": "magicdawn",
|
|
12
8
|
"license": "MIT",
|
|
13
9
|
"homepage": "https://github.com/magicdawn/eslint-config#readme",
|
|
14
|
-
"bugs": {
|
|
15
|
-
"url": "https://github.com/magicdawn/eslint-config/issues"
|
|
16
|
-
},
|
|
17
10
|
"repository": {
|
|
18
11
|
"type": "git",
|
|
19
12
|
"url": "git+https://github.com/magicdawn/eslint-config.git"
|
|
20
13
|
},
|
|
21
|
-
"
|
|
22
|
-
|
|
23
|
-
|
|
14
|
+
"bugs": {
|
|
15
|
+
"url": "https://github.com/magicdawn/eslint-config/issues"
|
|
16
|
+
},
|
|
17
|
+
"keywords": [
|
|
18
|
+
"eslint-config",
|
|
19
|
+
"eslint",
|
|
20
|
+
"magicdawn"
|
|
24
21
|
],
|
|
25
22
|
"exports": {
|
|
26
23
|
"./package.json": "./package.json",
|
|
@@ -29,6 +26,9 @@
|
|
|
29
26
|
"default": "./dist/index.js"
|
|
30
27
|
}
|
|
31
28
|
},
|
|
29
|
+
"files": [
|
|
30
|
+
"dist/"
|
|
31
|
+
],
|
|
32
32
|
"publishConfig": {
|
|
33
33
|
"registry": "https://registry.npmjs.org/",
|
|
34
34
|
"access": "public"
|
|
@@ -51,23 +51,26 @@
|
|
|
51
51
|
}
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@sxzz/eslint-config": "^7.
|
|
54
|
+
"@sxzz/eslint-config": "^7.4.1",
|
|
55
55
|
"es-toolkit": "^1.42.0",
|
|
56
56
|
"eslint-config-prettier": "^10.1.8",
|
|
57
57
|
"eslint-flat-config-utils": "^2.1.4"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
60
|
"@magicdawn/prettier-config": "^0.1.0",
|
|
61
|
-
"@types/node": "^24.10.
|
|
61
|
+
"@types/node": "^24.10.2",
|
|
62
62
|
"husky": "^9.1.7",
|
|
63
63
|
"lint-staged": "^16.2.7",
|
|
64
|
-
"prettier": "^3.
|
|
65
|
-
"tsdown": "^0.
|
|
64
|
+
"prettier": "^3.7.4",
|
|
65
|
+
"tsdown": "^0.17.2"
|
|
66
66
|
},
|
|
67
67
|
"lint-staged": {
|
|
68
|
-
"*.{
|
|
68
|
+
"*.{?(c|m)(j|t)s?(x),json,y?(a)ml}": [
|
|
69
69
|
"eslint --fix",
|
|
70
70
|
"prettier --write"
|
|
71
|
+
],
|
|
72
|
+
"!*.{?(c|m)(j|t)s?(x),json,y?(a)ml}": [
|
|
73
|
+
"prettier --write --ignore-unknown"
|
|
71
74
|
]
|
|
72
75
|
}
|
|
73
76
|
}
|