@huangjunsen/eslint-plugin 1.0.1 → 1.0.2
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.js +3 -1
- package/package.json +10 -8
package/dist/index.js
CHANGED
|
@@ -5,6 +5,8 @@ const no_http_url_1 = require("./rules/no-http-url");
|
|
|
5
5
|
const no_secret_info_1 = require("./rules/no-secret-info");
|
|
6
6
|
const no_broad_semantic_versioning_1 = require("./rules/no-broad-semantic-versioning");
|
|
7
7
|
const no_js_in_ts_project_1 = require("./rules/no-js-in-ts-project");
|
|
8
|
+
// 版本号由构建时注入,避免与 package.json 脱节
|
|
9
|
+
const { version } = require('../package.json');
|
|
8
10
|
exports.rules = {
|
|
9
11
|
'no-http-url': no_http_url_1.noHttpUrl,
|
|
10
12
|
'no-secret-info': no_secret_info_1.noSecretInfo,
|
|
@@ -15,7 +17,7 @@ exports.rules = {
|
|
|
15
17
|
const plugin = {
|
|
16
18
|
meta: {
|
|
17
19
|
name: '@huangjunsen/eslint-plugin',
|
|
18
|
-
version
|
|
20
|
+
version,
|
|
19
21
|
},
|
|
20
22
|
rules: exports.rules,
|
|
21
23
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@huangjunsen/eslint-plugin",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "自定义eslint插件",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist/",
|
|
@@ -13,6 +13,9 @@
|
|
|
13
13
|
],
|
|
14
14
|
"main": "dist/index.js",
|
|
15
15
|
"types": "dist/index.d.ts",
|
|
16
|
+
"peerDependencies": {
|
|
17
|
+
"eslint": "^8.57.0 || ^9.0.0 || ^10.0.0"
|
|
18
|
+
},
|
|
16
19
|
"author": "Huangjunsen <951434130@qq.com>",
|
|
17
20
|
"homepage": "https://github.com/Huang-junsen/js-encode-fe-spec#readme",
|
|
18
21
|
"license": "ISC",
|
|
@@ -23,16 +26,15 @@
|
|
|
23
26
|
"bugs": {
|
|
24
27
|
"url": "https://github.com/Huang-junsen/js-encode-fe-spec/issues"
|
|
25
28
|
},
|
|
26
|
-
"dependencies": {
|
|
27
|
-
"fs-extra": "^9.0.1",
|
|
28
|
-
"require-all": "^3.0.0"
|
|
29
|
-
},
|
|
29
|
+
"dependencies": {},
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"eslint": "^8.
|
|
32
|
-
"jest": "^
|
|
31
|
+
"eslint": "^8.57.0",
|
|
32
|
+
"jest": "^30.5.1",
|
|
33
|
+
"typescript": "^5.0.4",
|
|
34
|
+
"@types/node": "^20.12.7"
|
|
33
35
|
},
|
|
34
36
|
"scripts": {
|
|
35
37
|
"build": "rm -rf dist && tsc",
|
|
36
|
-
"test": "jest"
|
|
38
|
+
"test": "npm run build && jest"
|
|
37
39
|
}
|
|
38
40
|
}
|