shinkansen-transmission 2.5.13 → 2.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.
@@ -0,0 +1,112 @@
|
|
1
|
+
import globals from 'globals'
|
2
|
+
import jsdoc from 'eslint-plugin-jsdoc'
|
3
|
+
import merge from '@sequencemedia/eslint-merge'
|
4
|
+
import standard from '@sequencemedia/eslint-config-standard/configs/recommended/merge'
|
5
|
+
import typescript from '@sequencemedia/eslint-config-typescript/configs/recommended/merge'
|
6
|
+
|
7
|
+
export default [
|
8
|
+
{
|
9
|
+
ignores: [
|
10
|
+
'coverage'
|
11
|
+
]
|
12
|
+
},
|
13
|
+
merge(
|
14
|
+
jsdoc.configs['flat/recommended'],
|
15
|
+
{
|
16
|
+
languageOptions: {
|
17
|
+
globals: {
|
18
|
+
TransmissionTypes: 'readonly',
|
19
|
+
PropertyKey: 'readonly'
|
20
|
+
}
|
21
|
+
},
|
22
|
+
rules: {
|
23
|
+
'jsdoc/require-param-description': 'off',
|
24
|
+
'jsdoc/require-returns-description': 'off',
|
25
|
+
'jsdoc/check-tag-names': ['error', { definedTags: ['link'] }],
|
26
|
+
'jsdoc/tag-lines': [
|
27
|
+
'error',
|
28
|
+
'never',
|
29
|
+
{
|
30
|
+
tags: {
|
31
|
+
description: {
|
32
|
+
lines: 'always'
|
33
|
+
},
|
34
|
+
link: {
|
35
|
+
lines: 'always'
|
36
|
+
}
|
37
|
+
},
|
38
|
+
applyToEndTag: false,
|
39
|
+
startLines: 1
|
40
|
+
}
|
41
|
+
],
|
42
|
+
'jsdoc/lines-before-block': ['error', { lines: 1 }]
|
43
|
+
}
|
44
|
+
}
|
45
|
+
),
|
46
|
+
/**
|
47
|
+
* Standard config
|
48
|
+
*/
|
49
|
+
standard({
|
50
|
+
files: [
|
51
|
+
'**/*.{mjs,cjs,mts,cts}'
|
52
|
+
],
|
53
|
+
languageOptions: {
|
54
|
+
globals: {
|
55
|
+
...globals.node
|
56
|
+
}
|
57
|
+
},
|
58
|
+
rules: {
|
59
|
+
'@stylistic/object-curly-newline': [
|
60
|
+
'error',
|
61
|
+
{
|
62
|
+
ImportDeclaration: 'always',
|
63
|
+
ExportDeclaration: {
|
64
|
+
multiline: true,
|
65
|
+
minProperties: 2
|
66
|
+
}
|
67
|
+
}
|
68
|
+
]
|
69
|
+
}
|
70
|
+
}),
|
71
|
+
standard({
|
72
|
+
files: [
|
73
|
+
'test/**/*.{mjs,cjs,mts,cts}'
|
74
|
+
],
|
75
|
+
languageOptions: {
|
76
|
+
globals: {
|
77
|
+
...globals.mocha
|
78
|
+
}
|
79
|
+
}
|
80
|
+
}),
|
81
|
+
|
82
|
+
/**
|
83
|
+
* TypeScript config
|
84
|
+
*/
|
85
|
+
typescript({
|
86
|
+
files: [
|
87
|
+
'**/*.{mts,cts}'
|
88
|
+
],
|
89
|
+
languageOptions: {
|
90
|
+
globals: {
|
91
|
+
...globals.node,
|
92
|
+
TransmissionTypes: 'readonly'
|
93
|
+
}
|
94
|
+
},
|
95
|
+
rules: {
|
96
|
+
'@typescript-eslint/max-params': [
|
97
|
+
'error',
|
98
|
+
{
|
99
|
+
max: 5
|
100
|
+
}
|
101
|
+
]
|
102
|
+
}
|
103
|
+
}),
|
104
|
+
{
|
105
|
+
files: [
|
106
|
+
'src/**/*.d.{mts,cts}'
|
107
|
+
],
|
108
|
+
rules: {
|
109
|
+
'no-redeclare': 'off'
|
110
|
+
}
|
111
|
+
}
|
112
|
+
]
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "shinkansen-transmission",
|
3
|
-
"version": "2.5.
|
3
|
+
"version": "2.5.15",
|
4
4
|
"description": "Shinkansen Transmission",
|
5
5
|
"keywords": [
|
6
6
|
"Shinkansen",
|
@@ -43,8 +43,8 @@
|
|
43
43
|
"@babel/core": "^7.26.10",
|
44
44
|
"@babel/preset-env": "^7.26.9",
|
45
45
|
"@babel/register": "^7.25.9",
|
46
|
-
"@sequencemedia/eslint-config-standard": "^0.2.
|
47
|
-
"@sequencemedia/eslint-config-typescript": "^0.1.
|
46
|
+
"@sequencemedia/eslint-config-standard": "^0.2.48",
|
47
|
+
"@sequencemedia/eslint-config-typescript": "^0.1.71",
|
48
48
|
"@types/babel__register": "^7.17.3",
|
49
49
|
"@types/chai": "^5.2.1",
|
50
50
|
"@types/debug": "^4.1.12",
|
@@ -53,7 +53,7 @@
|
|
53
53
|
"chai": "^5.2.0",
|
54
54
|
"core-js": "^3.41.0",
|
55
55
|
"cross-env": "^7.0.3",
|
56
|
-
"eslint": "^9.
|
56
|
+
"eslint": "^9.24.0",
|
57
57
|
"globals": "^16.0.0",
|
58
58
|
"husky": "^9.1.7",
|
59
59
|
"mocha": "^11.1.0"
|
@@ -345,9 +345,9 @@ export function renderNullElementsFieldForOneOf (field, params, uri) {
|
|
345
345
|
|
346
346
|
/**
|
347
347
|
* @param {ObjectLiteralType | ObjectType} field
|
348
|
-
* @param {ParamsType} params
|
349
348
|
* @param {SchemaType} schema
|
350
349
|
* @param {ValuesType} values
|
350
|
+
* @param {ParamsType} params
|
351
351
|
* @param {string} uri
|
352
352
|
* @returns {ObjectLiteralType | ObjectType}
|
353
353
|
*/
|
@@ -370,9 +370,9 @@ export function getNullElementsFieldForAllOf (field, schema, values, params, uri
|
|
370
370
|
|
371
371
|
/**
|
372
372
|
* @param {ObjectLiteralType | ObjectType} field
|
373
|
-
* @param {ParamsType} params
|
374
373
|
* @param {SchemaType} schema
|
375
374
|
* @param {ValuesType} values
|
375
|
+
* @param {ParamsType} params
|
376
376
|
* @param {string} uri
|
377
377
|
* @returns {FieldType}
|
378
378
|
*/
|
@@ -413,9 +413,9 @@ export function renderNullElementsFieldForAllOf (field, schema, values, params,
|
|
413
413
|
|
414
414
|
/**
|
415
415
|
* @param {ObjectLiteralType | ObjectType} field
|
416
|
-
* @param {ParamsType} params
|
417
416
|
* @param {SchemaType} schema
|
418
417
|
* @param {ValuesType} values
|
418
|
+
* @param {ParamsType} params
|
419
419
|
* @param {string} uri
|
420
420
|
* @returns {ObjectLiteralType | ObjectType}
|
421
421
|
*/
|
@@ -438,9 +438,9 @@ export function getNullElementsField (field, schema, values, params, uri) {
|
|
438
438
|
|
439
439
|
/**
|
440
440
|
* @param {ObjectLiteralType | ObjectType} field
|
441
|
-
* @param {ParamsType} params
|
442
441
|
* @param {SchemaType} schema
|
443
442
|
* @param {ValuesType} values
|
443
|
+
* @param {ParamsType} params
|
444
444
|
* @param {string} uri
|
445
445
|
* @returns {FieldType}
|
446
446
|
*/
|
package/.publish/README.md
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
# Publish to NPM
|
2
|
-
|
3
|
-
For CircleCI or the shell
|
4
|
-
|
5
|
-
If you need an _authentication token_ to publish then you should resolve that before executing this script
|
6
|
-
|
7
|
-
```bash
|
8
|
-
echo ".publish/publish.sh" >> .npmignore
|
9
|
-
git clone https://github.com/modernpoacher/publish.git .publish
|
10
|
-
.publish/publish.sh
|
11
|
-
```
|
12
|
-
|
13
|
-
A Gist with the same content as `publish.sh` may need an additional step
|
14
|
-
|
15
|
-
```bash
|
16
|
-
echo ".publish/publish.sh" >> .npmignore
|
17
|
-
git clone https://gist.github.com/efd85e2b8da1ee830dd637f134994a9d.git .publish
|
18
|
-
chmod +x .publish/publish.sh
|
19
|
-
.publish/publish.sh
|
20
|
-
```
|