shinkansen-pinion 2.1.178 → 2.1.180
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/eslint.config.mjs
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @typedef {import('eslint').Linter.RulesRecord} RulesRecord
|
|
3
|
+
*/
|
|
4
|
+
|
|
1
5
|
import globals from 'globals'
|
|
2
6
|
import standard from '@sequencemedia/eslint-config-standard/configs/recommended/merge'
|
|
3
7
|
import typescript from '@sequencemedia/eslint-config-typescript/configs/recommended/merge'
|
|
4
|
-
import
|
|
5
|
-
import typescriptParser from '@typescript-eslint/parser'
|
|
6
|
-
import reactPlugin from 'eslint-plugin-react'
|
|
8
|
+
import reactPlugin from '@eslint-react/eslint-plugin'
|
|
7
9
|
import storybookPlugin from 'eslint-plugin-storybook'
|
|
8
10
|
|
|
9
11
|
const reactParserOptions = {
|
|
@@ -20,6 +22,9 @@ const storybookPlugins = {
|
|
|
20
22
|
storybook: storybookPlugin
|
|
21
23
|
}
|
|
22
24
|
|
|
25
|
+
/**
|
|
26
|
+
* @type {RulesRecord}
|
|
27
|
+
*/
|
|
23
28
|
const reactRules = {
|
|
24
29
|
'no-unused-vars': [
|
|
25
30
|
'error',
|
|
@@ -27,30 +32,27 @@ const reactRules = {
|
|
|
27
32
|
varsIgnorePattern: 'React'
|
|
28
33
|
}
|
|
29
34
|
],
|
|
30
|
-
quotes: [
|
|
35
|
+
'@stylistic/quotes': [
|
|
31
36
|
'error',
|
|
32
37
|
'single'
|
|
33
38
|
],
|
|
34
|
-
'jsx-quotes': [
|
|
39
|
+
'@stylistic/jsx-quotes': [
|
|
35
40
|
'error',
|
|
36
41
|
'prefer-single'
|
|
37
42
|
],
|
|
38
|
-
'
|
|
43
|
+
'@stylistic/indent': [
|
|
39
44
|
'error',
|
|
40
45
|
2,
|
|
41
46
|
{
|
|
42
|
-
|
|
43
|
-
|
|
47
|
+
SwitchCase: 1,
|
|
48
|
+
ignoredNodes: [
|
|
49
|
+
'TemplateLiteral *'
|
|
50
|
+
],
|
|
51
|
+
offsetTernaryExpressions: true
|
|
44
52
|
}
|
|
45
53
|
]
|
|
46
54
|
}
|
|
47
55
|
|
|
48
|
-
const reactSettings = {
|
|
49
|
-
react: {
|
|
50
|
-
version: 'detect'
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
|
|
54
56
|
export default [
|
|
55
57
|
{
|
|
56
58
|
ignores: [
|
|
@@ -61,10 +63,10 @@ export default [
|
|
|
61
63
|
* React config for all `jsx` files
|
|
62
64
|
*/
|
|
63
65
|
{
|
|
64
|
-
...reactPlugin.configs.
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
66
|
+
...reactPlugin.configs.recommended,
|
|
67
|
+
files: [
|
|
68
|
+
'**/*.jsx'
|
|
69
|
+
]
|
|
68
70
|
},
|
|
69
71
|
/**
|
|
70
72
|
* Storybook config
|
|
@@ -89,6 +91,9 @@ export default [
|
|
|
89
91
|
}
|
|
90
92
|
}
|
|
91
93
|
}),
|
|
94
|
+
/**
|
|
95
|
+
* Standard config for `mjs` and `mts` files
|
|
96
|
+
*/
|
|
92
97
|
standard({
|
|
93
98
|
files: [
|
|
94
99
|
'src/**/*.{mjs,cjs,mts,cts}',
|
|
@@ -123,10 +128,8 @@ export default [
|
|
|
123
128
|
'stories/**/__tests__/**/*.jsx'
|
|
124
129
|
],
|
|
125
130
|
languageOptions: {
|
|
126
|
-
parser: babelParser,
|
|
127
131
|
parserOptions: {
|
|
128
|
-
...reactParserOptions
|
|
129
|
-
project: null
|
|
132
|
+
...reactParserOptions
|
|
130
133
|
},
|
|
131
134
|
globals: {
|
|
132
135
|
...globals.browser
|
|
@@ -135,14 +138,14 @@ export default [
|
|
|
135
138
|
plugins: {
|
|
136
139
|
...reactPlugins,
|
|
137
140
|
...storybookPlugins
|
|
138
|
-
},
|
|
141
|
+
},
|
|
139
142
|
rules: {
|
|
140
143
|
...reactRules
|
|
141
|
-
},
|
|
142
|
-
settings: {
|
|
143
|
-
...reactSettings
|
|
144
144
|
}
|
|
145
145
|
}),
|
|
146
|
+
/**
|
|
147
|
+
* Standard config for `jsx` files
|
|
148
|
+
*/
|
|
146
149
|
standard({
|
|
147
150
|
files: [
|
|
148
151
|
'src/**/__tests__/**/*.jsx',
|
|
@@ -150,10 +153,8 @@ export default [
|
|
|
150
153
|
'jest.*.mjs'
|
|
151
154
|
],
|
|
152
155
|
languageOptions: {
|
|
153
|
-
parser: babelParser,
|
|
154
156
|
parserOptions: {
|
|
155
|
-
...reactParserOptions
|
|
156
|
-
project: null
|
|
157
|
+
...reactParserOptions
|
|
157
158
|
},
|
|
158
159
|
globals: {
|
|
159
160
|
...globals.browser,
|
|
@@ -163,12 +164,9 @@ export default [
|
|
|
163
164
|
plugins: {
|
|
164
165
|
...reactPlugins,
|
|
165
166
|
...storybookPlugins
|
|
166
|
-
},
|
|
167
|
+
},
|
|
167
168
|
rules: {
|
|
168
169
|
...reactRules
|
|
169
|
-
},
|
|
170
|
-
settings: {
|
|
171
|
-
...reactSettings
|
|
172
170
|
}
|
|
173
171
|
}),
|
|
174
172
|
/**
|
|
@@ -183,10 +181,6 @@ export default [
|
|
|
183
181
|
'test'
|
|
184
182
|
],
|
|
185
183
|
languageOptions: {
|
|
186
|
-
parser: typescriptParser,
|
|
187
|
-
parserOptions: {
|
|
188
|
-
projectService: true
|
|
189
|
-
},
|
|
190
184
|
globals: {
|
|
191
185
|
...globals.node,
|
|
192
186
|
PinionTypes: 'readonly'
|
|
@@ -202,16 +196,14 @@ export default [
|
|
|
202
196
|
'test/**/*.{mts,cts}'
|
|
203
197
|
],
|
|
204
198
|
languageOptions: {
|
|
205
|
-
parser: typescriptParser,
|
|
206
|
-
parserOptions: {
|
|
207
|
-
projectService: true
|
|
208
|
-
},
|
|
209
199
|
globals: {
|
|
210
200
|
...globals.browser,
|
|
211
201
|
PinionTypes: 'readonly'
|
|
212
202
|
}
|
|
213
203
|
},
|
|
214
|
-
rules: {
|
|
204
|
+
rules: {
|
|
205
|
+
'@typescript-eslint/no-redundant-type-constituents': 'off'
|
|
206
|
+
}
|
|
215
207
|
}),
|
|
216
208
|
{
|
|
217
209
|
files: [
|
package/husky.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "shinkansen-pinion",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.180",
|
|
4
4
|
"description": "Shinkansen Pinion",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Shinkansen",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
},
|
|
53
53
|
"allowScripts": {
|
|
54
54
|
"@parcel/watcher@2.6.0": true,
|
|
55
|
-
"core-js@3.
|
|
55
|
+
"core-js@3.51.0": true,
|
|
56
56
|
"esbuild@0.28.2": true,
|
|
57
57
|
"unrs-resolver@1.12.2": true
|
|
58
58
|
},
|
|
@@ -61,19 +61,19 @@
|
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
63
|
"@babel/core": "7.29.7",
|
|
64
|
-
"@babel/eslint-parser": "7.29.7",
|
|
65
64
|
"@babel/plugin-syntax-import-attributes": "7.29.7",
|
|
66
65
|
"@babel/plugin-syntax-jsx": "7.29.7",
|
|
67
66
|
"@babel/preset-env": "7.29.7",
|
|
68
67
|
"@babel/preset-react": "7.29.7",
|
|
69
68
|
"@babel/register": "7.29.7",
|
|
69
|
+
"@eslint-react/eslint-plugin": "5.28.8",
|
|
70
70
|
"@modernpoacher/design-system": "2.0.41",
|
|
71
|
-
"@sequencemedia/eslint-config-standard": "0.2
|
|
72
|
-
"@sequencemedia/eslint-config-typescript": "0.
|
|
73
|
-
"@storybook/addon-docs": "^10.6.
|
|
74
|
-
"@storybook/addon-links": "^10.6.
|
|
71
|
+
"@sequencemedia/eslint-config-standard": "0.3.2",
|
|
72
|
+
"@sequencemedia/eslint-config-typescript": "0.2.3",
|
|
73
|
+
"@storybook/addon-docs": "^10.6.6",
|
|
74
|
+
"@storybook/addon-links": "^10.6.6",
|
|
75
75
|
"@storybook/addon-webpack5-compiler-babel": "^4.0.1",
|
|
76
|
-
"@storybook/react-webpack5": "^10.6.
|
|
76
|
+
"@storybook/react-webpack5": "^10.6.6",
|
|
77
77
|
"@testing-library/jest-dom": "^7.0.1",
|
|
78
78
|
"@testing-library/react": "^16.3.3",
|
|
79
79
|
"@types/babel__register": "^7.17.3",
|
|
@@ -84,50 +84,48 @@
|
|
|
84
84
|
"@types/prop-types": "^15.7.15",
|
|
85
85
|
"@types/react": "^19.3.0",
|
|
86
86
|
"@types/react-dom": "^19.3.0",
|
|
87
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
88
|
-
"
|
|
89
|
-
"autoprefixer": "^10.6.1",
|
|
87
|
+
"@typescript-eslint/eslint-plugin": "^8.72.2",
|
|
88
|
+
"autoprefixer": "^10.6.2",
|
|
90
89
|
"chai": "^6.3.0",
|
|
91
|
-
"core-js": "^3.
|
|
90
|
+
"core-js": "^3.51.0",
|
|
92
91
|
"cross-env": "^10.1.0",
|
|
93
|
-
"eslint": "
|
|
94
|
-
"eslint-plugin-
|
|
95
|
-
"
|
|
96
|
-
"globals": "^17.13.0",
|
|
92
|
+
"eslint": "10.14.0",
|
|
93
|
+
"eslint-plugin-storybook": "^10.6.6",
|
|
94
|
+
"globals": "^17.14.0",
|
|
97
95
|
"husky": "^9.1.7",
|
|
98
96
|
"jest": "^30.5.2",
|
|
99
97
|
"jest-environment-jsdom": "^30.5.2",
|
|
100
98
|
"mini-css-extract-plugin": "^2.10.2",
|
|
101
99
|
"mocha": "^12.0.3",
|
|
102
100
|
"perfectionist": "^2.4.0",
|
|
103
|
-
"postcss": "^8.5.
|
|
101
|
+
"postcss": "^8.5.32",
|
|
104
102
|
"postcss-discard-comments": "^9.0.8",
|
|
105
103
|
"postcss-discard-empty": "^9.0.8",
|
|
106
|
-
"postcss-import": "^17.0.
|
|
104
|
+
"postcss-import": "^17.0.1",
|
|
107
105
|
"postcss-loader": "^8.2.1",
|
|
108
106
|
"postcss-map": "^0.11.0",
|
|
109
107
|
"postcss-normalize": "^13.0.1",
|
|
110
108
|
"postcss-scss": "^4.0.9",
|
|
111
109
|
"prettier": "^3.9.10",
|
|
112
110
|
"prop-types": "^15.8.1",
|
|
113
|
-
"react": "^19.3.
|
|
114
|
-
"react-component-snapshot": "^0.0.
|
|
115
|
-
"react-dom": "^19.3.
|
|
116
|
-
"react-router": "^8.
|
|
111
|
+
"react": "^19.3.1",
|
|
112
|
+
"react-component-snapshot": "^0.0.235",
|
|
113
|
+
"react-dom": "^19.3.1",
|
|
114
|
+
"react-router": "^8.5.1",
|
|
117
115
|
"remove-files-webpack-plugin": "^1.5.0",
|
|
118
|
-
"sass": "^1.
|
|
119
|
-
"sass-loader": "^17.0
|
|
120
|
-
"shinkansen-cogs": "2.1.
|
|
121
|
-
"shinkansen-rails": "1.1.
|
|
122
|
-
"shinkansen-signals": "1.2.
|
|
123
|
-
"shinkansen-sprockets": "2.1.
|
|
116
|
+
"sass": "^1.108.1",
|
|
117
|
+
"sass-loader": "^17.1.0",
|
|
118
|
+
"shinkansen-cogs": "2.1.246",
|
|
119
|
+
"shinkansen-rails": "1.1.190",
|
|
120
|
+
"shinkansen-signals": "1.2.185",
|
|
121
|
+
"shinkansen-sprockets": "2.1.249",
|
|
124
122
|
"sinon": "^22.1.0",
|
|
125
|
-
"storybook": "^10.6.
|
|
126
|
-
"stylelint": "
|
|
127
|
-
"stylelint-config-recommended-scss": "
|
|
128
|
-
"stylelint-scss": "
|
|
129
|
-
"webpack": "^5.
|
|
130
|
-
"webpack-cli": "^7.
|
|
123
|
+
"storybook": "^10.6.6",
|
|
124
|
+
"stylelint": "17.16.0",
|
|
125
|
+
"stylelint-config-recommended-scss": "17.0.1",
|
|
126
|
+
"stylelint-scss": "7.3.0",
|
|
127
|
+
"webpack": "^5.112.2",
|
|
128
|
+
"webpack-cli": "^7.3.1"
|
|
131
129
|
},
|
|
132
130
|
"peerDependencies": {
|
|
133
131
|
"shinkansen-cogs": "2.1.x",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export function hasError (errors?: PinionTypes.FieldError[] | PinionTypes.ArrayLiteralType, uri?: string | null): boolean
|
|
2
2
|
export function getError (errors?: PinionTypes.FieldError[] | PinionTypes.ArrayLiteralType, uri?: string | null): PinionTypes.FieldError | undefined
|
|
3
3
|
|
|
4
|
-
export * from '#pinion/transformers/error-message'
|
|
4
|
+
export type * from '#pinion/transformers/error-message'
|