Commit ff17ba4
authored
deno lint -> oxlint (#1561)
* chore: update package scripts and dependencies
- Replaced `deno lint` with `oxlint` for linting.
- Adjusted script commands for consistency and clarity.
- Updated `bun.lockb` to reflect changes in dependencies.
- Refactored header merging logic in various components for improved readability.
- Enhanced regex patterns in multiple files for consistency in path matching.
These changes streamline the development process and improve code maintainability.
* chore(lint): add .oxlintrc.json configuration and update error handling
- Introduced a new `.oxlintrc.json` file to configure linting rules, specifically turning off the `no-unused-expressions` rule and ignoring certain patterns.
- Refactored error handling in various components to remove unused error parameters, improving code clarity and consistency.
- Updated `bun.lockb` to reflect dependency changes.
These updates enhance the linting process and improve the overall readability of the codebase.
* refactor(package): clean up package.json and improve error handling
- Removed unused compiler options and lint configuration from package.json, streamlining the file for better clarity.
- Updated error handling in the getAppUUID function to log the error object instead of a generic variable, enhancing debugging capabilities.
These changes improve the maintainability and readability of the codebase.
* fix(ai): improve metadata handling in AIAgent class
- Updated the metadata assignment in the AIAgent class to ensure proper handling of timings. This change enhances the clarity and maintainability of the code by explicitly spreading the existing metadata before adding new properties.
No functionality is broken; this update improves the robustness of the agent's context management.
* chore(lint): update linting rules and ignore patterns
- Added `no-explicit-any` and `ban-types` rules to `.oxlintrc.json` with warnings to improve type safety.
- Updated ignore patterns to include `docs/*` for better linting coverage.
- Replaced `deno-lint-ignore-file` comments with `oxlint-disable` for consistency across the codebase.
These changes enhance the linting process and promote better coding practices throughout the project.
* chore(lint): update lint ignore comments for consistency
- Replaced `deno-lint-ignore` comments with `oxlint-disable-next-line` across multiple files to standardize linting practices.
- This change improves code consistency and aligns with the updated linting rules established in previous commits.
* chore(lint): introduce kebab-case filename enforcement plugin
- Added a new linting rule to enforce kebab-case naming for filenames in the project, improving consistency in file naming conventions.
- Updated `.oxlintrc.json` to include the new rule and associated plugin, enhancing the linting configuration.
- Removed the old TypeScript implementation of the kebab-case rule in favor of the new JavaScript version for better compatibility with the current linting setup.
These changes promote better coding practices and maintainability across the codebase.
* chore(lint): reorganize linting rules in .oxlintrc.json
- Moved the linting rules section within `.oxlintrc.json` to improve clarity and organization.
- Retained existing rules such as `no-unused-expressions`, `no-explicit-any`, `enforce-kebab-case-file-names/kebab-case`, and `ban-types` to maintain code quality and consistency.
These adjustments enhance the readability of the linting configuration while preserving the established linting practices.
* chore(lint): remove Deno lint setup from CI workflow
- Eliminated the Deno setup step from the GitHub Actions workflow as linting has been fully migrated to Biome.
- Updated package.json to remove the deprecated Deno lint command, streamlining the linting process.
These changes enhance the CI configuration by removing unnecessary steps and aligning with the current linting practices.
* chore(lint): simplify handleLiteral function and update .oxlintrc.json
- Refactored the `handleLiteral` function in `ensure-tailwind-design-system-tokens.js` to use a more concise parameter destructuring syntax, improving code readability.
- Updated `.oxlintrc.json` to streamline the configuration by consolidating the `jsPlugins` array into a single line.
These changes enhance the clarity of the code and maintain consistency in the linting configuration.
* chore(lint): remove no-explicit-any rule from do-storage.ts
- Eliminated the `no-explicit-any` linting directive from `do-storage.ts` to align with updated linting practices.
- This change enhances code clarity by removing unnecessary linting comments and maintaining consistency across the codebase.
* chore(release): bump versions for cli and workers-runtime packages
- Updated the version of `deco-cli` from `0.22.4` to `0.22.5` to reflect recent changes.
- Incremented the version of `@deco/workers-runtime` from `0.23.1` to `0.23.2` for consistency with the latest updates.
These version bumps ensure that the packages are aligned with the latest developments in the codebase.
* chore(package): rename package from @deco/chat to @decocms/admin
- Updated the package name in package.json to reflect the new branding for the admin interface.
- This change aligns the package with the overall project structure and naming conventions.
* fix(spread): restore nullish coalescing in spread operations
- Reintroduced nullish coalescing in multiple spread operations across various files to ensure safe handling of potentially undefined values.
- Updated components and utility functions in `apps/web`, `packages/ai`, `packages/cli`, `packages/runtime`, and `packages/sdk` to maintain consistency and prevent runtime errors.
These changes enhance the robustness of the code by ensuring that undefined values do not lead to unintended behavior.
* refactor(spread): remove NULLISH_COALESCING_REMOVALS.md file
- Deleted the `NULLISH_COALESCING_REMOVALS.md` file, which documented the nullish coalescing removals from spread operations.
- This cleanup reflects the completion of the related refactoring work and helps maintain a tidy documentation structure.
No further action is required as the relevant changes have been implemented in the codebase.
* chore(lint): disable unicorn/no-useless-fallback-in-spread rule in .oxlintrc.json
- Turned off the `unicorn/no-useless-fallback-in-spread` rule in the linting configuration to prevent unnecessary warnings during development.
- This adjustment aligns the linting rules with current project needs and enhances the developer experience.
No further action is required as this change is purely a configuration update.1 parent 9abdd98 commit ff17ba4
127 files changed
Lines changed: 268 additions & 338 deletions
File tree
- .github/workflows
- apps
- api
- src
- auth
- durable-objects
- middlewares
- outbound
- web
- src
- components
- apps
- chat
- documents
- integrations
- tabs
- json-schema
- components
- layout
- prompts/rich-text
- rich-text-editor
- components
- extensions
- settings
- tools
- views
- workflows
- hooks
- stores/workflows
- test
- docs
- server
- view/src/components/ui
- packages
- ai/src
- agent
- triggers
- utils
- cli
- src
- commands
- completion
- gen
- hosting
- lib
- create-deco
- runtime
- src
- bindings
- deconfig
- resources
- sdk
- src
- actors
- auth
- common
- crud
- hooks
- mcp
- api-keys
- bindings
- databases
- deconfig-v2
- deconfig
- hosting
- members
- resources-v2
- triggers
- views-v2
- wallet/stripe
- workflows
- observability/otel
- instrumentation
- vendor/ts-checked-fsm
- storage
- workflows/file-processor
- test
- ui/src/components
- plugins
- scripts
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | 22 | | |
29 | 23 | | |
30 | 24 | | |
| |||
| 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 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
153 | | - | |
| 153 | + | |
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
| |||
472 | 472 | | |
473 | 473 | | |
474 | 474 | | |
475 | | - | |
476 | | - | |
477 | | - | |
| 475 | + | |
478 | 476 | | |
479 | 477 | | |
480 | 478 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
123 | | - | |
| 123 | + | |
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
| |||
202 | 202 | | |
203 | 203 | | |
204 | 204 | | |
205 | | - | |
| 205 | + | |
206 | 206 | | |
207 | 207 | | |
208 | 208 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
96 | | - | |
| 96 | + | |
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
| |||
0 commit comments