@agilebot/eslint-config 0.3.4 → 0.3.6
Sign up to get free protection for your applications and to get access to all the features.
- package/LICENSE.tpl +8 -0
- package/dist/cli.js +1 -1
- package/dist/index.js +24 -7
- package/package.json +14 -15
package/LICENSE.tpl
ADDED
package/dist/cli.js
CHANGED
package/dist/index.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* @license @agilebot/eslint-config v0.3.
|
2
|
+
* @license @agilebot/eslint-config v0.3.6
|
3
3
|
*
|
4
4
|
* Copyright (c) Agilebot, Inc. and its affiliates.
|
5
5
|
*
|
@@ -66,9 +66,9 @@ var init_cjs_shims = __esm({
|
|
66
66
|
}
|
67
67
|
});
|
68
68
|
|
69
|
-
// ../../node_modules/.pnpm/eslint-config-love@47.0.0_@typescript-eslint+eslint-plugin@7.
|
69
|
+
// ../../node_modules/.pnpm/eslint-config-love@47.0.0_@typescript-eslint+eslint-plugin@7.9.0_@typescript-eslint+parser@7._yewwkxdqextsdihbrotj7foatu/node_modules/eslint-config-love/lib/index.js
|
70
70
|
var require_lib = __commonJS({
|
71
|
-
"../../node_modules/.pnpm/eslint-config-love@47.0.0_@typescript-eslint+eslint-plugin@7.
|
71
|
+
"../../node_modules/.pnpm/eslint-config-love@47.0.0_@typescript-eslint+eslint-plugin@7.9.0_@typescript-eslint+parser@7._yewwkxdqextsdihbrotj7foatu/node_modules/eslint-config-love/lib/index.js"(exports2, module2) {
|
72
72
|
"use strict";
|
73
73
|
init_cjs_shims();
|
74
74
|
var eslint_1 = require("eslint");
|
@@ -487,7 +487,6 @@ __export(src_exports, {
|
|
487
487
|
});
|
488
488
|
module.exports = __toCommonJS(src_exports);
|
489
489
|
init_cjs_shims();
|
490
|
-
var import_eslint_bulk_suppressions = require("@rushstack/eslint-patch/eslint-bulk-suppressions");
|
491
490
|
|
492
491
|
// src/factory/index.ts
|
493
492
|
init_cjs_shims();
|
@@ -954,11 +953,17 @@ function jsdoc(opt) {
|
|
954
953
|
// 禁止有空行
|
955
954
|
"jsdoc/no-blank-block-descriptions": "error",
|
956
955
|
"jsdoc/no-blank-blocks": "error",
|
956
|
+
// 每行注释都有星号
|
957
|
+
"jsdoc/require-asterisk-prefix": "error",
|
958
|
+
"jsdoc/check-tag-names": [
|
959
|
+
"error",
|
960
|
+
{
|
961
|
+
typed: opt.ts
|
962
|
+
}
|
963
|
+
],
|
957
964
|
"jsdoc/require-returns": "off",
|
958
965
|
// @return注释不是很有必要
|
959
|
-
"jsdoc/require-returns-type": "off"
|
960
|
-
// 每行注释都有星号
|
961
|
-
"jsdoc/require-asterisk-prefix": "error"
|
966
|
+
"jsdoc/require-returns-type": "off"
|
962
967
|
}
|
963
968
|
};
|
964
969
|
}
|
@@ -1089,6 +1094,10 @@ function prettier() {
|
|
1089
1094
|
init_cjs_shims();
|
1090
1095
|
function godaddy() {
|
1091
1096
|
return {
|
1097
|
+
parserOptions: {
|
1098
|
+
ecmaVersion: 2022,
|
1099
|
+
sourceType: "module"
|
1100
|
+
},
|
1092
1101
|
extends: ["godaddy"],
|
1093
1102
|
rules: {
|
1094
1103
|
"quote-props": "off",
|
@@ -1106,6 +1115,7 @@ function godaddy() {
|
|
1106
1115
|
"no-sync": "off",
|
1107
1116
|
"no-continue": "off",
|
1108
1117
|
"no-case-declarations": "off",
|
1118
|
+
"callback-return": "off",
|
1109
1119
|
"unicorn/prefer-string-slice": "off",
|
1110
1120
|
"unicorn/prefer-string-replace-all": "off"
|
1111
1121
|
}
|
@@ -1165,7 +1175,13 @@ function factory(root, options) {
|
|
1165
1175
|
if (options == null ? void 0 : options.godaddy) {
|
1166
1176
|
return (0, import_eslint_utils3.mergeESLintConfig)(
|
1167
1177
|
godaddy(),
|
1178
|
+
(options == null ? void 0 : options.jsdoc) ? jsdoc({
|
1179
|
+
ts: false
|
1180
|
+
}) : {},
|
1168
1181
|
...commonConfigs,
|
1182
|
+
(options == null ? void 0 : options.jsdoc) ? jsdoc({
|
1183
|
+
ts: false
|
1184
|
+
}) : {},
|
1169
1185
|
(_b = options == null ? void 0 : options.config) != null ? _b : {}
|
1170
1186
|
);
|
1171
1187
|
}
|
@@ -1183,6 +1199,7 @@ function factory(root, options) {
|
|
1183
1199
|
ecmaFeatures: {
|
1184
1200
|
jsx: true
|
1185
1201
|
},
|
1202
|
+
sourceType: options.module ? "module" : void 0,
|
1186
1203
|
extraFileExtensions: !(options == null ? void 0 : options.vue) ? void 0 : [".vue"]
|
1187
1204
|
}
|
1188
1205
|
}, (0, import_eslint_utils3.mergeESLintConfig)(
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@agilebot/eslint-config",
|
3
|
-
"version": "0.3.
|
3
|
+
"version": "0.3.6",
|
4
4
|
"description": "Agilebot's ESLint config",
|
5
5
|
"bin": {
|
6
6
|
"eslint-agilebot": "bin/eslint-agilebot"
|
@@ -18,41 +18,40 @@
|
|
18
18
|
},
|
19
19
|
"homepage": "https://github.com/sh-agilebot/frontend-toolkit/tree/master/packages/eslint-config#readme",
|
20
20
|
"dependencies": {
|
21
|
-
"@cspell/eslint-plugin": "^8.
|
22
|
-
"@eslint-react/eslint-plugin": "^1.5.
|
23
|
-
"@
|
24
|
-
"@
|
25
|
-
"@typescript-eslint/
|
26
|
-
"@typescript-eslint/parser": "~7.7.0",
|
21
|
+
"@cspell/eslint-plugin": "^8.8.1",
|
22
|
+
"@eslint-react/eslint-plugin": "^1.5.11",
|
23
|
+
"@stylistic/eslint-plugin": "^2.1.0",
|
24
|
+
"@typescript-eslint/eslint-plugin": "~7.9.0",
|
25
|
+
"@typescript-eslint/parser": "~7.9.0",
|
27
26
|
"eslint-config-godaddy": "^6.0.0",
|
28
27
|
"eslint-config-prettier": "^9.1.0",
|
29
28
|
"eslint-import-resolver-typescript": "^3.6.1",
|
30
29
|
"eslint-plugin-deprecation": "^2.0.0",
|
31
30
|
"eslint-plugin-eslint-comments": "^3.2.0",
|
32
|
-
"eslint-plugin-file-progress": "^1.
|
31
|
+
"eslint-plugin-file-progress": "^1.4.0",
|
33
32
|
"eslint-plugin-import-x": "^0.5.0",
|
34
|
-
"eslint-plugin-jsdoc": "^48.2.
|
33
|
+
"eslint-plugin-jsdoc": "^48.2.4",
|
35
34
|
"eslint-plugin-jsx-a11y": "^6.8.0",
|
36
|
-
"eslint-plugin-n": "^17.
|
35
|
+
"eslint-plugin-n": "^17.7.0",
|
37
36
|
"eslint-plugin-no-relative-import-paths": "^1.5.4",
|
38
37
|
"eslint-plugin-prefer-arrow-functions": "^3.3.2",
|
39
38
|
"eslint-plugin-prettier": "^5.1.3",
|
40
39
|
"eslint-plugin-promise": "^6.0.0",
|
41
40
|
"eslint-plugin-react": "^7.34.1",
|
42
|
-
"eslint-plugin-react-hooks": "^4.6.
|
43
|
-
"eslint-plugin-unicorn": "^
|
41
|
+
"eslint-plugin-react-hooks": "^4.6.2",
|
42
|
+
"eslint-plugin-unicorn": "^53.0.0",
|
44
43
|
"eslint-plugin-unused-imports": "^3.2.0",
|
45
|
-
"eslint-plugin-vue": "^9.
|
44
|
+
"eslint-plugin-vue": "^9.26.0",
|
46
45
|
"eslint-plugin-you-dont-need-lodash-underscore": "^6.13.0",
|
47
46
|
"vue-eslint-parser": "^9.4.2",
|
48
|
-
"@agilebot/eslint-utils": "0.3.
|
47
|
+
"@agilebot/eslint-utils": "0.3.6"
|
49
48
|
},
|
50
49
|
"devDependencies": {
|
51
50
|
"eslint-config-love": "^47.0.0"
|
52
51
|
},
|
53
52
|
"peerDependencies": {
|
54
53
|
"eslint": "^7.0.0 || ^8.0.0",
|
55
|
-
"@agilebot/eslint-plugin": "0.3.
|
54
|
+
"@agilebot/eslint-plugin": "0.3.6"
|
56
55
|
},
|
57
56
|
"files": [
|
58
57
|
"bin",
|