Commit 30556b2
feat: add comprehensive repository badges and improvements (#37)
* fix: migrate to ESLint v9 flat config format
- Replace .eslintrc.js with eslint.config.js (ESLint v9 requirement)
- Add 'type': 'module' to package.json for ES module support
- Update Jest config to use ES module syntax
- Fix rollup configuration for new @rollup/plugin-typescript version
- Add proper globals configuration for Node.js and browser APIs
- Install globals package for ESLint configuration
- All tests and linting now working with new versions
Resolves ESLint v9 migration issues from Renovate updates
* chore: trigger CI to test ESLint v9 configuration
- Add comment to TypeScript README to trigger CI
- Test if ESLint v9 configuration works in CI environment
* fix: convert prepare.js to ES module syntax
- Convert CommonJS require() to ES module import syntax
- Add __dirname and __filename polyfills for ES modules
- Fixes TypeScript client CI failure due to ES module configuration
* refactor: extract shared TypeScript rules in ESLint config
- Extract duplicated TypeScript rules into sharedTypeScriptRules constant
- Replace inline rule objects in both base and test configs with shared constant
- Maintains all original rules and configurations unchanged
- Improves maintainability by eliminating code duplication
- Follows DRY principle for better code organization
* refactor: convert dev.js to ES module syntax
- Replace CommonJS require() calls with ES module import statements
- Add __dirname and __filename polyfills using fileURLToPath and path.dirname
- Import fileURLToPath from 'url' module for ES module compatibility
- Maintains all original functionality while using modern ES module syntax
- Consistent with prepare.js ES module conversion
* feat: integrate ESLint with Prettier to avoid conflicting rules
- Add eslint-config-prettier to devDependencies in package.json
- Import eslint-config-prettier in ESLint configuration
- Include prettier config in ESLint config array after js.configs.recommended
- Disables Prettier-related ESLint rules to prevent conflicts
- Ensures consistent code formatting between ESLint and Prettier
- Maintains all existing ESLint rules while preventing style conflicts
* refactor: extract shared globals in ESLint config
- Extract duplicated global declarations into sharedGlobals constant
- Include ...globals.node, ...globals.browser and readonly browser APIs
- Replace base config globals with sharedGlobals reference
- Replace test config globals with sharedGlobals + test-specific additions
- Eliminates code duplication while maintaining all original functionality
- Improves maintainability by centralizing global declarations
* fix: update package-lock.json for eslint-config-prettier
- Update package-lock.json to include eslint-config-prettier dependency
- Resolves CI failure where npm ci couldn't install due to lock file mismatch
- Ensures package.json and package-lock.json are in sync
- Fixes TypeScript Client CI/CD workflow dependency installation
* refactor: remove redundant global declarations from ESLint config
- Remove explicit fetch, setTimeout, clearTimeout declarations from sharedGlobals
- These globals are already included in globals.browser
- Eliminates duplication and improves maintainability
---------
Co-authored-by: Ben De Cock <[email protected]>1 parent bff7688 commit 30556b2
File tree
13 files changed
+210
-137
lines changed- clients/typescript
- scripts
- src
- tests
13 files changed
+210
-137
lines changedThis file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
6 | 8 | | |
7 | 9 | | |
8 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
60 | 61 | | |
61 | 62 | | |
62 | 63 | | |
63 | | - | |
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| 72 | + | |
| 73 | + | |
72 | 74 | | |
73 | 75 | | |
74 | 76 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | | - | |
21 | | - | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
22 | 26 | | |
23 | 27 | | |
24 | 28 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
8 | 15 | | |
9 | 16 | | |
10 | 17 | | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | 18 | | |
15 | 19 | | |
16 | 20 | | |
| |||
0 commit comments