@magicdawn/eslint-config 1.5.14 → 1.5.15
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 +8 -17
- package/dist/index.js +10 -11
- package/package.json +6 -6
package/dist/index.d.ts
CHANGED
|
@@ -41,35 +41,26 @@ declare const mgCustomRules: {
|
|
|
41
41
|
}];
|
|
42
42
|
};
|
|
43
43
|
readonly unicorn: {
|
|
44
|
-
/**
|
|
45
|
-
* I don't prefer, I know what I'm doing ~
|
|
46
|
-
*/
|
|
47
|
-
readonly 'unicorn/catch-error-name': "off";
|
|
48
|
-
readonly 'unicorn/consistent-function-scoping': "off";
|
|
49
|
-
readonly 'unicorn/filename-case': "off";
|
|
50
44
|
readonly 'unicorn/prefer-array-flat-map': "off";
|
|
51
45
|
readonly 'unicorn/prefer-array-index-of': "off";
|
|
52
46
|
readonly 'unicorn/prefer-array-some': "off";
|
|
53
|
-
readonly 'unicorn/
|
|
54
|
-
readonly 'unicorn/prefer-
|
|
47
|
+
readonly 'unicorn/no-array-reduce': "off";
|
|
48
|
+
readonly 'unicorn/prefer-string-trim-start-end': "off";
|
|
49
|
+
readonly 'unicorn/prefer-string-raw': "off";
|
|
55
50
|
readonly 'unicorn/prefer-query-selector': "off";
|
|
56
51
|
readonly 'unicorn/prefer-dom-node-append': "off";
|
|
57
52
|
readonly 'unicorn/prefer-dom-node-dataset': "off";
|
|
58
|
-
readonly 'unicorn/prefer-modern-dom-apis': "off";
|
|
59
53
|
readonly 'unicorn/prefer-add-event-listener': "off";
|
|
60
|
-
readonly 'unicorn/prefer-
|
|
61
|
-
readonly 'unicorn/prefer-
|
|
54
|
+
readonly 'unicorn/prefer-single-call': "off";
|
|
55
|
+
readonly 'unicorn/prefer-reflect-apply': "off";
|
|
56
|
+
readonly 'unicorn/catch-error-name': "off";
|
|
57
|
+
readonly 'unicorn/consistent-function-scoping': "off";
|
|
58
|
+
readonly 'unicorn/filename-case': "off";
|
|
62
59
|
readonly 'unicorn/no-negated-condition': "off";
|
|
63
60
|
readonly 'unicorn/no-array-sort': "off";
|
|
64
61
|
readonly 'unicorn/no-array-reverse': "off";
|
|
65
62
|
readonly 'unicorn/prefer-global-this': "off";
|
|
66
63
|
readonly 'unicorn/no-useless-undefined': "off";
|
|
67
|
-
/**
|
|
68
|
-
* change options
|
|
69
|
-
*/
|
|
70
|
-
readonly 'unicorn/text-encoding-identifier-case': ["warn", {
|
|
71
|
-
readonly withDash: true;
|
|
72
|
-
}];
|
|
73
64
|
};
|
|
74
65
|
readonly disableMorePrefer: {
|
|
75
66
|
readonly 'prefer-template': "off";
|
package/dist/index.js
CHANGED
|
@@ -26,27 +26,26 @@ const mgCustomRules = {
|
|
|
26
26
|
"@typescript-eslint/consistent-type-imports": ["warn", { fixStyle: "inline-type-imports" }]
|
|
27
27
|
},
|
|
28
28
|
unicorn: {
|
|
29
|
-
"unicorn/catch-error-name": "off",
|
|
30
|
-
"unicorn/consistent-function-scoping": "off",
|
|
31
|
-
"unicorn/filename-case": "off",
|
|
32
29
|
"unicorn/prefer-array-flat-map": "off",
|
|
33
30
|
"unicorn/prefer-array-index-of": "off",
|
|
34
31
|
"unicorn/prefer-array-some": "off",
|
|
35
|
-
"unicorn/
|
|
36
|
-
"unicorn/prefer-
|
|
32
|
+
"unicorn/no-array-reduce": "off",
|
|
33
|
+
"unicorn/prefer-string-trim-start-end": "off",
|
|
34
|
+
"unicorn/prefer-string-raw": "off",
|
|
37
35
|
"unicorn/prefer-query-selector": "off",
|
|
38
36
|
"unicorn/prefer-dom-node-append": "off",
|
|
39
37
|
"unicorn/prefer-dom-node-dataset": "off",
|
|
40
|
-
"unicorn/prefer-modern-dom-apis": "off",
|
|
41
38
|
"unicorn/prefer-add-event-listener": "off",
|
|
42
|
-
"unicorn/prefer-
|
|
43
|
-
"unicorn/prefer-
|
|
39
|
+
"unicorn/prefer-single-call": "off",
|
|
40
|
+
"unicorn/prefer-reflect-apply": "off",
|
|
41
|
+
"unicorn/catch-error-name": "off",
|
|
42
|
+
"unicorn/consistent-function-scoping": "off",
|
|
43
|
+
"unicorn/filename-case": "off",
|
|
44
44
|
"unicorn/no-negated-condition": "off",
|
|
45
45
|
"unicorn/no-array-sort": "off",
|
|
46
46
|
"unicorn/no-array-reverse": "off",
|
|
47
47
|
"unicorn/prefer-global-this": "off",
|
|
48
|
-
"unicorn/no-useless-undefined": "off"
|
|
49
|
-
"unicorn/text-encoding-identifier-case": ["warn", { withDash: true }]
|
|
48
|
+
"unicorn/no-useless-undefined": "off"
|
|
50
49
|
},
|
|
51
50
|
disableMorePrefer: { "prefer-template": "off" },
|
|
52
51
|
tseslint: {
|
|
@@ -171,7 +170,7 @@ function fromSxzz(options, ...moreConfigs) {
|
|
|
171
170
|
assert(options$1[0], "options[0] should not be nil");
|
|
172
171
|
options$1[0].internalPattern = uniq([
|
|
173
172
|
"^[~@#$]/.*",
|
|
174
|
-
|
|
173
|
+
`^[$].+`,
|
|
175
174
|
...internalPattern ?? []
|
|
176
175
|
]);
|
|
177
176
|
options$1[0].groups = uniq([
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@magicdawn/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.5.
|
|
5
|
-
"packageManager": "pnpm@10.
|
|
4
|
+
"version": "1.5.15",
|
|
5
|
+
"packageManager": "pnpm@10.26.2+sha512.0e308ff2005fc7410366f154f625f6631ab2b16b1d2e70238444dd6ae9d630a8482d92a451144debc492416896ed16f7b114a86ec68b8404b2443869e68ffda6",
|
|
6
6
|
"description": "magicdawn's eslint-config",
|
|
7
7
|
"author": "magicdawn",
|
|
8
8
|
"license": "MIT",
|
|
@@ -51,18 +51,18 @@
|
|
|
51
51
|
}
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@sxzz/eslint-config": "^7.4.
|
|
55
|
-
"es-toolkit": "^1.
|
|
54
|
+
"@sxzz/eslint-config": "^7.4.4",
|
|
55
|
+
"es-toolkit": "^1.43.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.4",
|
|
62
62
|
"husky": "^9.1.7",
|
|
63
63
|
"lint-staged": "^16.2.7",
|
|
64
64
|
"prettier": "^3.7.4",
|
|
65
|
-
"tsdown": "^0.
|
|
65
|
+
"tsdown": "^0.18.3"
|
|
66
66
|
},
|
|
67
67
|
"lint-staged": {
|
|
68
68
|
"*.{?(c|m)(j|t)s?(x),json,y?(a)ml}": [
|