@modernpoacher/cogs 0.1.199 → 0.1.201

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 +70 -1
  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
  */
@@ -134,7 +173,8 @@ export default [
134
173
  '**/*.{mts,cts}'
135
174
  ],
136
175
  ignores: [
137
- 'src'
176
+ 'src',
177
+ 'stories'
138
178
  ],
139
179
  languageOptions: {
140
180
  globals: {
@@ -160,6 +200,9 @@ export default [
160
200
  files: [
161
201
  'src/**/*.tsx'
162
202
  ],
203
+ ignores: [
204
+ 'src/**/__tests__/**/*.tsx'
205
+ ],
163
206
  languageOptions: {
164
207
  parser: typescriptParser,
165
208
  parserOptions: {
@@ -180,5 +223,31 @@ export default [
180
223
  settings: {
181
224
  ...reactSettings
182
225
  }
226
+ }),
227
+ typescript({
228
+ files: [
229
+ 'src/**/__tests__/**/*.tsx'
230
+ ],
231
+ languageOptions: {
232
+ parser: typescriptParser,
233
+ parserOptions: {
234
+ ...reactParserOptions,
235
+ projectService: true,
236
+ project: 'tsconfig.json'
237
+ },
238
+ globals: {
239
+ ...globals.browser,
240
+ ...globals.jest
241
+ }
242
+ },
243
+ plugins: {
244
+ ...reactPlugins
245
+ },
246
+ rules: {
247
+ ...reactRules
248
+ },
249
+ settings: {
250
+ ...reactSettings
251
+ }
183
252
  })
184
253
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@modernpoacher/cogs",
3
- "version": "0.1.199",
3
+ "version": "0.1.201",
4
4
  "description": "Cogs",
5
5
  "keywords": [
6
6
  "Cogs",
@@ -44,7 +44,7 @@
44
44
  },
45
45
  "devDependencies": {
46
46
  "@babel/core": "^7.26.0",
47
- "@babel/eslint-parser": "^7.25.9",
47
+ "@babel/eslint-parser": "^7.26.5",
48
48
  "@babel/preset-env": "^7.26.0",
49
49
  "@babel/preset-react": "^7.26.3",
50
50
  "@babel/register": "^7.25.9",
@@ -56,14 +56,14 @@
56
56
  "@storybook/addon-links": "7.6.20",
57
57
  "@storybook/react": "7.6.20",
58
58
  "@storybook/react-webpack5": "7.6.20",
59
- "@types/react": "^18.3.13",
59
+ "@types/react": "18.3.13",
60
60
  "@typescript-eslint/eslint-plugin": "^8.19.1",
61
61
  "@typescript-eslint/parser": "^8.19.1",
62
62
  "autoprefixer": "^10.4.20",
63
63
  "clean-webpack-plugin": "^4.0.0",
64
- "core-js": "^3.39.0",
64
+ "core-js": "^3.40.0",
65
65
  "cross-env": "^7.0.3",
66
- "eslint": "^9.17.0",
66
+ "eslint": "^9.18.0",
67
67
  "eslint-import-resolver-babel-module": "^5.3.2",
68
68
  "eslint-plugin-react": "^7.37.3",
69
69
  "eslint-plugin-storybook": "^0.11.2",
@@ -79,15 +79,15 @@
79
79
  "postcss-loader": "^8.1.1",
80
80
  "postcss-map": "^0.11.0",
81
81
  "prop-types": "^15.8.1",
82
- "react": "^18.3.1",
83
- "react-dom": "^18.3.1",
84
- "react-test-renderer": "^18.3.1",
82
+ "react": "18.3.1",
83
+ "react-dom": "18.3.1",
84
+ "react-test-renderer": "18.3.1",
85
85
  "remove-files-webpack-plugin": "^1.5.0",
86
- "sass": "^1.82.0",
86
+ "sass": "^1.83.1",
87
87
  "sass-loader": "^16.0.4",
88
88
  "storybook": "7.6.20",
89
- "webpack": "^5.97.0",
90
- "webpack-cli": "^5.1.4"
89
+ "webpack": "^5.97.1",
90
+ "webpack-cli": "^6.0.1"
91
91
  },
92
92
  "imports": {
93
93
  "#build/paths": "./build/paths.mjs",