@jobscale/eslint-plugin-standard 0.0.13 → 0.1.0
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/.github/workflows/docker-publish.yml +6 -4
- package/app/index.js +3 -3
- package/index.js +1 -1
- package/package.json +3 -3
|
@@ -5,7 +5,7 @@ name: Docker
|
|
|
5
5
|
# separate terms of service, privacy policy, and support
|
|
6
6
|
# documentation.
|
|
7
7
|
|
|
8
|
-
# The workflow was triggered
|
|
8
|
+
# The workflow was triggered 412 times via automatically.
|
|
9
9
|
|
|
10
10
|
on:
|
|
11
11
|
# schedule:
|
|
@@ -43,13 +43,15 @@ jobs:
|
|
|
43
43
|
run: echo "Build for ${{ matrix.name }}"
|
|
44
44
|
|
|
45
45
|
- name: Checkout repository
|
|
46
|
-
uses: actions/checkout@
|
|
46
|
+
uses: actions/checkout@v4
|
|
47
47
|
|
|
48
48
|
- name: Set up QEMU
|
|
49
|
-
uses: docker/setup-qemu-action@
|
|
49
|
+
uses: docker/setup-qemu-action@v2
|
|
50
|
+
with:
|
|
51
|
+
platforms: ${{ env.PLATFORMS }}
|
|
50
52
|
|
|
51
53
|
- name: Set up Docker Buildx
|
|
52
|
-
uses: docker/setup-buildx-action@
|
|
54
|
+
uses: docker/setup-buildx-action@v2
|
|
53
55
|
|
|
54
56
|
# Login against a Docker registry except on PR
|
|
55
57
|
# https://github.com/docker/login-action
|
package/app/index.js
CHANGED
|
@@ -29,10 +29,10 @@ class App {
|
|
|
29
29
|
}
|
|
30
30
|
const prom = this.promiseGen();
|
|
31
31
|
const fetch = { https, http };
|
|
32
|
-
fetch[protocol].get(url, instanceOptions,
|
|
32
|
+
fetch[protocol].get(url, instanceOptions, res => {
|
|
33
33
|
const { statusCode, statusMessage } = res;
|
|
34
34
|
const chunked = [];
|
|
35
|
-
res.on('data',
|
|
35
|
+
res.on('data', chunk => {
|
|
36
36
|
chunked.push(chunk);
|
|
37
37
|
});
|
|
38
38
|
res.on('end', () => {
|
|
@@ -40,7 +40,7 @@ class App {
|
|
|
40
40
|
statusCode, statusMessage, body: chunked.join(''),
|
|
41
41
|
});
|
|
42
42
|
});
|
|
43
|
-
res.on('error',
|
|
43
|
+
res.on('error', e => {
|
|
44
44
|
prom.reject(e);
|
|
45
45
|
});
|
|
46
46
|
});
|
package/index.js
CHANGED
|
@@ -18,7 +18,7 @@ const rules = {
|
|
|
18
18
|
eqeqeq: ['error', 'always'],
|
|
19
19
|
'class-methods-use-this': 'off',
|
|
20
20
|
'space-in-parens': ['error', 'never'],
|
|
21
|
-
'arrow-parens': ['error', '
|
|
21
|
+
'arrow-parens': ['error', 'as-needed'],
|
|
22
22
|
'comma-dangle': ['error', 'always-multiline'],
|
|
23
23
|
'quote-props': ['error', 'as-needed'],
|
|
24
24
|
'padded-blocks': ['error', 'never'],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jobscale/eslint-plugin-standard",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "0.1.0",
|
|
4
4
|
"description": "eslint plugin standard",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"eslint-plugin-import": "^2.32.0"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"eslint": "^
|
|
29
|
-
"pre-commit": "^
|
|
28
|
+
"eslint": "^10.5.0",
|
|
29
|
+
"pre-commit": "^2.0.0"
|
|
30
30
|
}
|
|
31
31
|
}
|