@cluerise/tools 4.0.2 → 4.0.4

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.
@@ -50,7 +50,7 @@ export default defineConfig([
50
50
  },
51
51
  {
52
52
  name: 'cluerise: typescript-eslint/disable-type-checked',
53
- files: ['**/*.js', '**/*.json', '**/*.yaml'],
53
+ files: ['**/*.js', '**/*.json', '**/*.jsonc', '**/*.yaml'],
54
54
  extends: [typescriptEslint.configs.disableTypeChecked]
55
55
  },
56
56
  {
@@ -147,12 +147,13 @@ export default defineConfig([
147
147
  'import/no-duplicates': 'error',
148
148
  'import/no-mutable-exports': 'error',
149
149
  'import/no-unassigned-import': ['error', { allow: ['reset-css'] }],
150
+ 'import/no-unresolved': ['error', { ignore: ['cloudflare:test'] }],
150
151
  'import/order': 'off'
151
152
  }
152
153
  },
153
154
  {
154
155
  name: 'cluerise: eslint/import/rules/config.js',
155
- files: ['*.config.js'],
156
+ files: ['**/*.config.js'],
156
157
  rules: {
157
158
  '@typescript-eslint/no-require-imports': 'off',
158
159
  'import/no-commonjs': 'off'
@@ -160,14 +161,21 @@ export default defineConfig([
160
161
  },
161
162
  {
162
163
  name: 'cluerise: eslint/import/rules/config.js,ts',
163
- files: ['*.config.{js,ts}'],
164
+ files: ['**/*.config.{js,ts}'],
164
165
  rules: {
165
166
  'import/no-default-export': 'off'
166
167
  }
167
168
  },
168
169
  {
169
170
  name: 'cluerise: eslint/import/rules/routes',
170
- files: ['*-route.tsx'],
171
+ files: ['**/*-route.tsx'],
172
+ rules: {
173
+ 'import/no-default-export': 'off'
174
+ }
175
+ },
176
+ {
177
+ name: 'cluerise: eslint/import/rules/workers',
178
+ files: ['**/src/index.{ts,tsx}'],
171
179
  rules: {
172
180
  'import/no-default-export': 'off'
173
181
  }
@@ -209,6 +217,8 @@ export default defineConfig([
209
217
  arg: false,
210
218
  args: false,
211
219
  dist: false,
220
+ env: false,
221
+ envs: false,
212
222
  params: false,
213
223
  utils: false
214
224
  }
@@ -6,7 +6,7 @@
6
6
  "experimentalDecorators": true,
7
7
  "isolatedModules": true,
8
8
  "jsx": "preserve",
9
- "lib": ["dom", "esnext"],
9
+ "lib": ["esnext"],
10
10
  "module": "esnext",
11
11
  "moduleResolution": "bundler",
12
12
  "noEmit": true,
@@ -398,6 +398,7 @@ initPrettier_fn = async function() {
398
398
  const configContent = `export { default } from '${__privateGet(this, _configPackage)}/${configPath}';
399
399
  `;
400
400
  await FileUtils.createFile(configPath, configContent);
401
+ await FileUtils.copyFile(__privateGet(this, _configDirectory), ".prettierignore");
401
402
  };
402
403
  getReleaseConfigParams_fn = async function() {
403
404
  const defaultConfigParams = {
@@ -440,7 +441,7 @@ initTypeScript_fn = async function() {
440
441
  };
441
442
  initVSCode_fn = async function() {
442
443
  const settingsPath = Path.join(".vscode", "settings.json");
443
- const settingsContent = '{\n "editor.codeActionsOnSave": {\n "source.fixAll.eslint": "explicit"\n },\n "prettier.ignorePath": "node_modules/@cluerise/tools/dist/configs/.prettierignore",\n "typescript.tsdk": "node_modules/typescript/lib"\n}\n';
444
+ const settingsContent = '{\n "editor.codeActionsOnSave": {\n "source.fixAll.eslint": "explicit"\n },\n "typescript.tsdk": "node_modules/typescript/lib"\n}\n';
444
445
  await FileUtils.createFile(settingsPath, settingsContent);
445
446
  };
446
447
  const _FileLinter = class _FileLinter {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cluerise/tools",
3
- "version": "4.0.2",
3
+ "version": "4.0.4",
4
4
  "description": "Tools for maintaining TypeScript projects.",
5
5
  "author": "Branislav Holý <brano@holy.am>",
6
6
  "repository": "github:cluerise/tools",
@@ -24,14 +24,14 @@
24
24
  "@commitlint/types": "19.8.1",
25
25
  "@eslint/js": "9.28.0",
26
26
  "@eslint/json": "0.12.0",
27
- "@eslint/markdown": "6.4.0",
27
+ "@eslint/markdown": "6.5.0",
28
28
  "@html-eslint/eslint-plugin": "0.41.0",
29
29
  "@html-eslint/parser": "0.41.0",
30
30
  "@typescript-eslint/parser": "8.33.1",
31
31
  "conventional-changelog-conventionalcommits": "9.0.0",
32
32
  "eslint": "9.28.0",
33
33
  "eslint-config-prettier": "10.1.5",
34
- "eslint-import-resolver-typescript": "4.4.2",
34
+ "eslint-import-resolver-typescript": "4.4.3",
35
35
  "eslint-plugin-import": "2.31.0",
36
36
  "eslint-plugin-prettier": "5.4.1",
37
37
  "eslint-plugin-simple-import-sort": "12.1.1",
@@ -45,6 +45,6 @@
45
45
  "semver": "7.7.2",
46
46
  "smol-toml": "1.3.4",
47
47
  "typescript-eslint": "8.33.1",
48
- "zod": "3.25.51"
48
+ "zod": "3.25.56"
49
49
  }
50
50
  }