@cluerise/tools 5.3.5 → 5.3.7

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.
@@ -72,6 +72,9 @@ etc/
72
72
  # Tests coverage
73
73
  coverage/
74
74
 
75
+ # Text
76
+ *.txt
77
+
75
78
  # Xcode
76
79
  *.entitlements
77
80
  *.pbxproj
@@ -81,3 +84,6 @@ coverage/
81
84
  *.swift
82
85
  *.xcscheme
83
86
  *.xcstrings
87
+
88
+ # XML
89
+ *.xml
@@ -58,7 +58,9 @@ export default defineConfig([
58
58
  rules: {
59
59
  '@typescript-eslint/ban-ts-comment': 'off',
60
60
  '@typescript-eslint/explicit-module-boundary-types': 'off',
61
+ '@typescript-eslint/no-empty-object-type': 'off',
61
62
  '@typescript-eslint/no-import-type-side-effects': 'error',
63
+ '@typescript-eslint/no-namespace': 'off',
62
64
  '@typescript-eslint/no-unused-vars': [
63
65
  'error',
64
66
  {
@@ -81,11 +83,19 @@ export default defineConfig([
81
83
  '@typescript-eslint/consistent-type-imports': ['error', { fixStyle: 'inline-type-imports' }],
82
84
  },
83
85
  },
86
+ {
87
+ name: 'cluerise: typescript-eslint/rules/d.ts',
88
+ files: ['**/*.d.ts'],
89
+ rules: {
90
+ 'import/no-default-export': 'off',
91
+ },
92
+ },
84
93
  {
85
94
  name: 'cluerise: typescript-eslint/rules/tests',
86
95
  files: ['**/*.test.{ts,tsx}'],
87
96
  rules: {
88
97
  '@typescript-eslint/no-unsafe-assignment': 'off',
98
+ 'no-restricted-globals': 'off',
89
99
  },
90
100
  },
91
101
  // JSON
@@ -313,9 +313,8 @@ class ToolInitializer {
313
313
  return toolNameSchema.options.map((option) => option.value);
314
314
  }
315
315
  async #initCommitlint() {
316
- const configName = "commitlint.config";
317
- const configPath = `${configName}.ts`;
318
- const configContent = `export { default } from '${this.#configPackage}/${configName}.js';
316
+ const configPath = "commitlint.config.ts";
317
+ const configContent = `export { default } from '${this.#configPackage}/${configPath}';
319
318
  `;
320
319
  await FileUtils.createFile(configPath, configContent);
321
320
  }
@@ -358,7 +357,7 @@ class ToolInitializer {
358
357
  }
359
358
  async #initPnpm() {
360
359
  const workspacePath = "pnpm-workspace.yaml";
361
- const workspaceContent = "engineStrict: true\ngitChecks: false\n\npublicHoistPattern:\n - '@commitlint/cli'\n - eslint\n - lint-staged\n - prettier\n - prettier-plugin-sh\n";
360
+ const workspaceContent = "engineStrict: true\ngitChecks: false\nincludeWorkspaceRoot: true\n\npublicHoistPattern:\n - '@commitlint/cli'\n - eslint\n - lint-staged\n - prettier\n - prettier-plugin-sh\n";
362
361
  await FileUtils.createFile(workspacePath, workspaceContent);
363
362
  }
364
363
  async #initPrettier() {
@@ -409,7 +408,7 @@ export default createReleaseConfig(${JsonUtils.prettify(configParams)});
409
408
  }
410
409
  async #initVSCode() {
411
410
  const settingsPath = Path.join(".vscode", "settings.json");
412
- const settingsContent = '{\n "editor.codeActionsOnSave": {\n "source.fixAll.eslint": "explicit"\n },\n "typescript.tsdk": "node_modules/typescript/lib"\n}\n';
411
+ const settingsContent = '{\n "editor.codeActionsOnSave": {\n "source.fixAll.eslint": "explicit"\n },\n "typescript.tsdk": "node_modules/typescript/lib",\n "javascript.preferences.importModuleSpecifier": "relative",\n "javascript.preferences.importModuleSpecifierEnding": "js",\n "typescript.preferences.importModuleSpecifier": "relative",\n "typescript.preferences.importModuleSpecifierEnding": "js",\n "typescript.preferences.preferTypeOnlyAutoImports": true\n}\n';
413
412
  await FileUtils.createFile(settingsPath, settingsContent);
414
413
  }
415
414
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cluerise/tools",
3
- "version": "5.3.5",
3
+ "version": "5.3.7",
4
4
  "description": "Tools for maintaining TypeScript projects.",
5
5
  "author": "Branislav Holý <brano@holy.am>",
6
6
  "repository": "github:cluerise/tools",