@agilebot/eslint-config 0.3.5 → 0.3.7
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 -6
- package/package.json +14 -14
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.7
|
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");
|
@@ -953,11 +953,17 @@ function jsdoc(opt) {
|
|
953
953
|
// 禁止有空行
|
954
954
|
"jsdoc/no-blank-block-descriptions": "error",
|
955
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
|
+
],
|
956
964
|
"jsdoc/require-returns": "off",
|
957
965
|
// @return注释不是很有必要
|
958
|
-
"jsdoc/require-returns-type": "off"
|
959
|
-
// 每行注释都有星号
|
960
|
-
"jsdoc/require-asterisk-prefix": "error"
|
966
|
+
"jsdoc/require-returns-type": "off"
|
961
967
|
}
|
962
968
|
};
|
963
969
|
}
|
@@ -1088,6 +1094,10 @@ function prettier() {
|
|
1088
1094
|
init_cjs_shims();
|
1089
1095
|
function godaddy() {
|
1090
1096
|
return {
|
1097
|
+
parserOptions: {
|
1098
|
+
ecmaVersion: 2022,
|
1099
|
+
sourceType: "module"
|
1100
|
+
},
|
1091
1101
|
extends: ["godaddy"],
|
1092
1102
|
rules: {
|
1093
1103
|
"quote-props": "off",
|
@@ -1105,6 +1115,7 @@ function godaddy() {
|
|
1105
1115
|
"no-sync": "off",
|
1106
1116
|
"no-continue": "off",
|
1107
1117
|
"no-case-declarations": "off",
|
1118
|
+
"callback-return": "off",
|
1108
1119
|
"unicorn/prefer-string-slice": "off",
|
1109
1120
|
"unicorn/prefer-string-replace-all": "off"
|
1110
1121
|
}
|
@@ -1164,7 +1175,13 @@ function factory(root, options) {
|
|
1164
1175
|
if (options == null ? void 0 : options.godaddy) {
|
1165
1176
|
return (0, import_eslint_utils3.mergeESLintConfig)(
|
1166
1177
|
godaddy(),
|
1178
|
+
(options == null ? void 0 : options.jsdoc) ? jsdoc({
|
1179
|
+
ts: false
|
1180
|
+
}) : {},
|
1167
1181
|
...commonConfigs,
|
1182
|
+
(options == null ? void 0 : options.jsdoc) ? jsdoc({
|
1183
|
+
ts: false
|
1184
|
+
}) : {},
|
1168
1185
|
(_b = options == null ? void 0 : options.config) != null ? _b : {}
|
1169
1186
|
);
|
1170
1187
|
}
|
@@ -1182,6 +1199,7 @@ function factory(root, options) {
|
|
1182
1199
|
ecmaFeatures: {
|
1183
1200
|
jsx: true
|
1184
1201
|
},
|
1202
|
+
sourceType: options.module ? "module" : void 0,
|
1185
1203
|
extraFileExtensions: !(options == null ? void 0 : options.vue) ? void 0 : [".vue"]
|
1186
1204
|
}
|
1187
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.7",
|
4
4
|
"description": "Agilebot's ESLint config",
|
5
5
|
"bin": {
|
6
6
|
"eslint-agilebot": "bin/eslint-agilebot"
|
@@ -18,40 +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
|
-
"@stylistic/eslint-plugin": "^1.
|
24
|
-
"@typescript-eslint/eslint-plugin": "~7.
|
25
|
-
"@typescript-eslint/parser": "~7.
|
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",
|
26
26
|
"eslint-config-godaddy": "^6.0.0",
|
27
27
|
"eslint-config-prettier": "^9.1.0",
|
28
28
|
"eslint-import-resolver-typescript": "^3.6.1",
|
29
29
|
"eslint-plugin-deprecation": "^2.0.0",
|
30
30
|
"eslint-plugin-eslint-comments": "^3.2.0",
|
31
|
-
"eslint-plugin-file-progress": "^1.
|
31
|
+
"eslint-plugin-file-progress": "^1.4.0",
|
32
32
|
"eslint-plugin-import-x": "^0.5.0",
|
33
|
-
"eslint-plugin-jsdoc": "^48.2.
|
33
|
+
"eslint-plugin-jsdoc": "^48.2.4",
|
34
34
|
"eslint-plugin-jsx-a11y": "^6.8.0",
|
35
|
-
"eslint-plugin-n": "^17.
|
35
|
+
"eslint-plugin-n": "^17.7.0",
|
36
36
|
"eslint-plugin-no-relative-import-paths": "^1.5.4",
|
37
37
|
"eslint-plugin-prefer-arrow-functions": "^3.3.2",
|
38
38
|
"eslint-plugin-prettier": "^5.1.3",
|
39
39
|
"eslint-plugin-promise": "^6.0.0",
|
40
40
|
"eslint-plugin-react": "^7.34.1",
|
41
|
-
"eslint-plugin-react-hooks": "^4.6.
|
42
|
-
"eslint-plugin-unicorn": "^
|
41
|
+
"eslint-plugin-react-hooks": "^4.6.2",
|
42
|
+
"eslint-plugin-unicorn": "^53.0.0",
|
43
43
|
"eslint-plugin-unused-imports": "^3.2.0",
|
44
|
-
"eslint-plugin-vue": "^9.
|
44
|
+
"eslint-plugin-vue": "^9.26.0",
|
45
45
|
"eslint-plugin-you-dont-need-lodash-underscore": "^6.13.0",
|
46
46
|
"vue-eslint-parser": "^9.4.2",
|
47
|
-
"@agilebot/eslint-utils": "0.3.
|
47
|
+
"@agilebot/eslint-utils": "0.3.7"
|
48
48
|
},
|
49
49
|
"devDependencies": {
|
50
50
|
"eslint-config-love": "^47.0.0"
|
51
51
|
},
|
52
52
|
"peerDependencies": {
|
53
53
|
"eslint": "^7.0.0 || ^8.0.0",
|
54
|
-
"@agilebot/eslint-plugin": "0.3.
|
54
|
+
"@agilebot/eslint-plugin": "0.3.7"
|
55
55
|
},
|
56
56
|
"files": [
|
57
57
|
"bin",
|