shinkansen-sprockets 1.1.440 → 1.1.442

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.
Files changed (2) hide show
  1. package/eslint.config.mjs +68 -0
  2. package/package.json +11 -11
package/eslint.config.mjs CHANGED
@@ -52,6 +52,11 @@ const reactSettings = {
52
52
  }
53
53
 
54
54
  export default [
55
+ {
56
+ ignores: [
57
+ 'coverage'
58
+ ]
59
+ },
55
60
  /**
56
61
  * React config for all `jsx` and `tsx` files
57
62
  */
@@ -102,6 +107,10 @@ export default [
102
107
  'src/**/*.tsx',
103
108
  'stories/**/*.jsx'
104
109
  ],
110
+ ignores: [
111
+ 'src/**/__tests__/**/*.tsx',
112
+ 'stories/**/__tests__/**/*.jsx'
113
+ ],
105
114
  languageOptions: {
106
115
  parser: babelParser,
107
116
  parserOptions: {
@@ -126,6 +135,36 @@ export default [
126
135
  }
127
136
  }
128
137
  }),
138
+ standard({
139
+ files: [
140
+ 'src/**/__tests__/**/*.tsx',
141
+ 'stories/**/__tests__/**/*.jsx'
142
+ ],
143
+ languageOptions: {
144
+ parser: babelParser,
145
+ parserOptions: {
146
+ ...reactParserOptions,
147
+ project: null
148
+ },
149
+ globals: {
150
+ ...globals.browser,
151
+ ...globals.jest
152
+ }
153
+ },
154
+ plugins: {
155
+ ...reactPlugins,
156
+ ...storybookPlugins
157
+ },
158
+ rules: {
159
+ ...reactRules
160
+ },
161
+ settings: {
162
+ ...reactSettings,
163
+ 'import/resolver': {
164
+ 'babel-module': {}
165
+ }
166
+ }
167
+ }),
129
168
  /**
130
169
  * TypeScript config
131
170
  */
@@ -160,6 +199,9 @@ export default [
160
199
  files: [
161
200
  'src/**/*.tsx'
162
201
  ],
202
+ ignores: [
203
+ 'src/**/__tests__/**/*.tsx'
204
+ ],
163
205
  languageOptions: {
164
206
  parser: typescriptParser,
165
207
  parserOptions: {
@@ -180,5 +222,31 @@ export default [
180
222
  settings: {
181
223
  ...reactSettings
182
224
  }
225
+ }),
226
+ typescript({
227
+ files: [
228
+ 'src/**/__tests__/**/*.tsx'
229
+ ],
230
+ languageOptions: {
231
+ parser: typescriptParser,
232
+ parserOptions: {
233
+ ...reactParserOptions,
234
+ projectService: true,
235
+ project: 'tsconfig.json'
236
+ },
237
+ globals: {
238
+ ...globals.browser,
239
+ ...globals.jest
240
+ }
241
+ },
242
+ plugins: {
243
+ ...reactPlugins
244
+ },
245
+ rules: {
246
+ ...reactRules
247
+ },
248
+ settings: {
249
+ ...reactSettings
250
+ }
183
251
  })
184
252
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shinkansen-sprockets",
3
- "version": "1.1.440",
3
+ "version": "1.1.442",
4
4
  "description": "Shinkansen Sprockets",
5
5
  "keywords": [
6
6
  "Shinkansen",
@@ -49,7 +49,7 @@
49
49
  },
50
50
  "devDependencies": {
51
51
  "@babel/core": "^7.26.0",
52
- "@babel/eslint-parser": "^7.25.9",
52
+ "@babel/eslint-parser": "^7.26.5",
53
53
  "@babel/preset-env": "^7.26.0",
54
54
  "@babel/preset-react": "^7.26.3",
55
55
  "@babel/register": "^7.25.9",
@@ -61,12 +61,12 @@
61
61
  "@storybook/addon-links": "7.6.20",
62
62
  "@storybook/react": "7.6.20",
63
63
  "@storybook/react-webpack5": "7.6.20",
64
- "@types/react": "^18.3.13",
64
+ "@types/react": "18.3.13",
65
65
  "@typescript-eslint/eslint-plugin": "^8.19.1",
66
66
  "@typescript-eslint/parser": "^8.19.1",
67
67
  "autoprefixer": "^10.4.20",
68
68
  "clean-webpack-plugin": "^4.0.0",
69
- "core-js": "^3.39.0",
69
+ "core-js": "^3.40.0",
70
70
  "cross-env": "^7.0.3",
71
71
  "eslint": "^9.17.0",
72
72
  "eslint-import-resolver-babel-module": "^5.3.2",
@@ -84,16 +84,16 @@
84
84
  "postcss-loader": "^8.1.1",
85
85
  "postcss-map": "^0.11.0",
86
86
  "prop-types": "^15.8.1",
87
- "react": "^18.3.1",
88
- "react-dom": "^18.3.1",
89
- "react-router": "^7.0.2",
90
- "react-test-renderer": "^18.3.1",
87
+ "react": "18.3.1",
88
+ "react-dom": "18.3.1",
89
+ "react-router": "^7.1.1",
90
+ "react-test-renderer": "18.3.1",
91
91
  "remove-files-webpack-plugin": "^1.5.0",
92
- "sass": "^1.82.0",
92
+ "sass": "^1.83.1",
93
93
  "sass-loader": "^16.0.4",
94
94
  "storybook": "7.6.20",
95
- "webpack": "^5.97.0",
96
- "webpack-cli": "^5.1.4"
95
+ "webpack": "^5.97.1",
96
+ "webpack-cli": "^6.0.1"
97
97
  },
98
98
  "imports": {
99
99
  "#build/paths": "./build/paths.mjs",