shinkansen-gears 2.1.121 → 2.1.123
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 +8 -4
- package/husky.mjs +16 -0
- package/jest.config.mjs +1 -1
- package/package.json +57 -50
package/eslint.config.mjs
CHANGED
|
@@ -185,13 +185,15 @@ export default [
|
|
|
185
185
|
languageOptions: {
|
|
186
186
|
parser: typescriptParser,
|
|
187
187
|
parserOptions: {
|
|
188
|
-
projectService: true
|
|
189
|
-
project: 'tsconfig.json'
|
|
188
|
+
projectService: true
|
|
190
189
|
},
|
|
191
190
|
globals: {
|
|
192
191
|
...globals.node,
|
|
193
192
|
GearsTypes: 'readonly'
|
|
194
193
|
}
|
|
194
|
+
},
|
|
195
|
+
rules: {
|
|
196
|
+
'@typescript-eslint/no-redundant-type-constituents': 'off'
|
|
195
197
|
}
|
|
196
198
|
}),
|
|
197
199
|
typescript({
|
|
@@ -202,13 +204,15 @@ export default [
|
|
|
202
204
|
languageOptions: {
|
|
203
205
|
parser: typescriptParser,
|
|
204
206
|
parserOptions: {
|
|
205
|
-
projectService: true
|
|
206
|
-
project: 'tsconfig.json'
|
|
207
|
+
projectService: true
|
|
207
208
|
},
|
|
208
209
|
globals: {
|
|
209
210
|
...globals.browser,
|
|
210
211
|
GearsTypes: 'readonly'
|
|
211
212
|
}
|
|
213
|
+
},
|
|
214
|
+
rules: {
|
|
215
|
+
'@typescript-eslint/no-redundant-type-constituents': 'off'
|
|
212
216
|
}
|
|
213
217
|
})
|
|
214
218
|
]
|
package/husky.mjs
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
// @ts-ignore
|
|
4
|
+
Promise.resolve(import('husky'))
|
|
5
|
+
.then(({ default: husky }) => { husky() })
|
|
6
|
+
.catch((e) => {
|
|
7
|
+
if (e instanceof Error) {
|
|
8
|
+
if ('code' in e) {
|
|
9
|
+
const { code } = e
|
|
10
|
+
if (code === 'ERR_MODULE_NOT_FOUND') return
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
const { message } = e
|
|
14
|
+
if (message) console.error(`💥 ${message}`)
|
|
15
|
+
}
|
|
16
|
+
})
|
package/jest.config.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "shinkansen-gears",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.123",
|
|
4
4
|
"description": "Shinkansen Gears",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Shinkansen",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"nvm": "bash nvm.sh",
|
|
41
41
|
"prebuild": "npm run nvm",
|
|
42
42
|
"prelint": "npm run nvm",
|
|
43
|
-
"prepare": "husky",
|
|
43
|
+
"prepare": "node husky.mjs",
|
|
44
44
|
"prestorybook": "npm run build && npm run prettier && npm run transform",
|
|
45
45
|
"pretest": "npm run nvm",
|
|
46
46
|
"prettier": "prettier src/sass/**/*.scss .storybook --write",
|
|
@@ -56,67 +56,68 @@
|
|
|
56
56
|
"fast-deep-equal": "^3.1.3"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
|
-
"@babel/core": "
|
|
60
|
-
"@babel/eslint-parser": "
|
|
61
|
-
"@babel/
|
|
62
|
-
"@babel/preset-
|
|
63
|
-
"@babel/
|
|
64
|
-
"@
|
|
65
|
-
"@
|
|
66
|
-
"@sequencemedia/eslint-config-
|
|
67
|
-
"@
|
|
68
|
-
"@storybook/addon-
|
|
69
|
-
"@storybook/addon-
|
|
70
|
-
"@storybook/
|
|
71
|
-
"@
|
|
72
|
-
"@testing-library/
|
|
59
|
+
"@babel/core": "7.29.7",
|
|
60
|
+
"@babel/eslint-parser": "7.29.7",
|
|
61
|
+
"@babel/plugin-syntax-jsx": "7.29.7",
|
|
62
|
+
"@babel/preset-env": "7.29.7",
|
|
63
|
+
"@babel/preset-react": "7.29.7",
|
|
64
|
+
"@babel/register": "7.29.7",
|
|
65
|
+
"@modernpoacher/design-system": "2.0.38",
|
|
66
|
+
"@sequencemedia/eslint-config-standard": "^0.2.125",
|
|
67
|
+
"@sequencemedia/eslint-config-typescript": "^0.1.217",
|
|
68
|
+
"@storybook/addon-docs": "^10.6.0",
|
|
69
|
+
"@storybook/addon-links": "^10.6.0",
|
|
70
|
+
"@storybook/addon-webpack5-compiler-babel": "^4.0.1",
|
|
71
|
+
"@storybook/react-webpack5": "^10.6.0",
|
|
72
|
+
"@testing-library/jest-dom": "^7.0.1",
|
|
73
|
+
"@testing-library/react": "^16.3.3",
|
|
73
74
|
"@types/babel__register": "^7.17.3",
|
|
74
75
|
"@types/chai": "^5.2.3",
|
|
75
|
-
"@types/debug": "^4.1.
|
|
76
|
+
"@types/debug": "^4.1.13",
|
|
76
77
|
"@types/jest": "^30.0.0",
|
|
77
78
|
"@types/mocha": "^10.0.10",
|
|
78
79
|
"@types/prop-types": "^15.7.15",
|
|
79
|
-
"@types/react": "^19.2.
|
|
80
|
-
"@types/react-dom": "^19.2.
|
|
81
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
82
|
-
"@typescript-eslint/parser": "^8.
|
|
83
|
-
"autoprefixer": "^10.
|
|
84
|
-
"chai": "^6.2.
|
|
85
|
-
"core-js": "^3.
|
|
80
|
+
"@types/react": "^19.2.18",
|
|
81
|
+
"@types/react-dom": "^19.2.7",
|
|
82
|
+
"@typescript-eslint/eslint-plugin": "^8.69.0",
|
|
83
|
+
"@typescript-eslint/parser": "^8.69.0",
|
|
84
|
+
"autoprefixer": "^10.5.5",
|
|
85
|
+
"chai": "^6.2.2",
|
|
86
|
+
"core-js": "^3.50.0",
|
|
86
87
|
"cross-env": "^10.1.0",
|
|
87
88
|
"eslint": "9.38.0",
|
|
88
89
|
"eslint-plugin-react": "^7.37.5",
|
|
89
|
-
"eslint-plugin-storybook": "^10.0
|
|
90
|
-
"globals": "^
|
|
90
|
+
"eslint-plugin-storybook": "^10.6.0",
|
|
91
|
+
"globals": "^17.12.0",
|
|
91
92
|
"husky": "^9.1.7",
|
|
92
|
-
"jest": "^30.
|
|
93
|
-
"jest-environment-jsdom": "^30.
|
|
94
|
-
"mini-css-extract-plugin": "^2.
|
|
95
|
-
"mocha": "^
|
|
93
|
+
"jest": "^30.5.1",
|
|
94
|
+
"jest-environment-jsdom": "^30.5.1",
|
|
95
|
+
"mini-css-extract-plugin": "^2.10.2",
|
|
96
|
+
"mocha": "^12.0.0",
|
|
96
97
|
"perfectionist": "^2.4.0",
|
|
97
|
-
"postcss": "^8.5.
|
|
98
|
-
"postcss-discard-comments": "^
|
|
99
|
-
"postcss-discard-empty": "^
|
|
100
|
-
"postcss-import": "^
|
|
101
|
-
"postcss-loader": "^8.2.
|
|
98
|
+
"postcss": "^8.5.28",
|
|
99
|
+
"postcss-discard-comments": "^9.0.2",
|
|
100
|
+
"postcss-discard-empty": "^9.0.2",
|
|
101
|
+
"postcss-import": "^17.0.0",
|
|
102
|
+
"postcss-loader": "^8.2.1",
|
|
102
103
|
"postcss-map": "^0.11.0",
|
|
103
|
-
"prettier": "^3.6
|
|
104
|
+
"prettier": "^3.9.6",
|
|
104
105
|
"prop-types": "^15.8.1",
|
|
105
|
-
"react": "^19.2.
|
|
106
|
-
"react-component-instance": "^0.0.
|
|
107
|
-
"react-component-snapshot": "^0.0.
|
|
108
|
-
"react-dom": "^19.2.
|
|
109
|
-
"react-router": "^
|
|
106
|
+
"react": "^19.2.8",
|
|
107
|
+
"react-component-instance": "^0.0.158",
|
|
108
|
+
"react-component-snapshot": "^0.0.215",
|
|
109
|
+
"react-dom": "^19.2.8",
|
|
110
|
+
"react-router": "^8.3.1",
|
|
110
111
|
"remove-files-webpack-plugin": "^1.5.0",
|
|
111
|
-
"sass": "^1.
|
|
112
|
-
"sass-loader": "^
|
|
113
|
-
"shinkansen-rails": "1.1.
|
|
114
|
-
"storybook": "^10.0
|
|
115
|
-
"stylelint": "^
|
|
116
|
-
"stylelint-config-recommended-scss": "^
|
|
117
|
-
"stylelint-scss": "^
|
|
118
|
-
"webpack": "^5.
|
|
119
|
-
"webpack-cli": "^
|
|
112
|
+
"sass": "^1.104.0",
|
|
113
|
+
"sass-loader": "^17.0.1",
|
|
114
|
+
"shinkansen-rails": "1.1.173",
|
|
115
|
+
"storybook": "^10.6.0",
|
|
116
|
+
"stylelint": "^17.15.0",
|
|
117
|
+
"stylelint-config-recommended-scss": "^17.0.1",
|
|
118
|
+
"stylelint-scss": "^7.2.0",
|
|
119
|
+
"webpack": "^5.110.3",
|
|
120
|
+
"webpack-cli": "^7.2.3"
|
|
120
121
|
},
|
|
121
122
|
"peerDependencies": {
|
|
122
123
|
"shinkansen-rails": "1.1.x"
|
|
@@ -124,6 +125,12 @@
|
|
|
124
125
|
"overrides": {
|
|
125
126
|
"storybook": "$storybook"
|
|
126
127
|
},
|
|
128
|
+
"allowScripts": {
|
|
129
|
+
"@parcel/watcher@2.6.0": true,
|
|
130
|
+
"core-js@3.50.0": true,
|
|
131
|
+
"esbuild@0.28.2": true,
|
|
132
|
+
"unrs-resolver@1.12.2": true
|
|
133
|
+
},
|
|
127
134
|
"imports": {
|
|
128
135
|
"#gears": {
|
|
129
136
|
"require": "./src/js/index.cjs",
|