Files
api/plugin/.prettierrc.mjs
Eli Bosley 4f5c367fdf feat: begin building plugin with node instead of bash (#1120)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **New Features**
- Enhanced automated build and release processes with containerized
builds, improved caching, and refined artifact handling.
- Introduced new configuration options to strengthen versioning,
integrity checks, and pull request tracking.
	- Added a new Dockerfile for building the Node.js application.
- Added new environment variables for API versioning and validation
control.
	- Implemented comprehensive management of PM2 processes and state.
- Introduced a new GitHub Actions workflow for automating staging plugin
deployment upon pull request closure.
	- Updated logic for handling plugin installation and error feedback.
	- Added new asynchronous methods for managing PM2 processes.
	- Updated logging configurations for better control over log outputs.
	- Added Prettier configuration for consistent code formatting.
- Introduced a configuration to prevent the application from watching
for file changes.

- **Bug Fixes**
- Improved error handling and user feedback during the installation of
staging versions.

- **Documentation**
- Removed outdated introductory documentation to streamline project
information.

- **Chores**
- Updated deployment routines and validation steps to improve release
consistency and error handling.
- Simplified packaging and build scripts for smoother staging and
production workflows.
	- Excluded sensitive files from the Docker build context.
- Updated the `.gitignore` file to prevent unnecessary files from being
tracked.
- Adjusted the test timeout configuration for improved test reliability.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2025-02-06 12:32:41 -05:00

39 lines
1.1 KiB
JavaScript

/**
* @see https://prettier.io/docs/en/configuration.html
* @type {import("prettier").Config}
*/
module.exports = {
trailingComma: "es5",
tabWidth: 4,
semi: true,
singleQuote: true,
printWidth: 105,
plugins: ["@ianvs/prettier-plugin-sort-imports"],
// decorators-legacy lets the import sorter transform files with decorators
importOrderParserPlugins: ["typescript", "decorators-legacy"],
importOrder: [
/**----------------------
* Nest.js & node.js imports
*------------------------**/
"<TYPES>^@nestjs(/.*)?$",
"^@nestjs(/.*)?$", // matches imports starting with @nestjs
"<TYPES>^(node:)",
"<BUILTIN_MODULES>", // Node.js built-in modules
"",
/**----------------------
* Third party packages
*------------------------**/
"<TYPES>",
"<THIRD_PARTY_MODULES>", // Imports not matched by other special words or groups.
"",
/**----------------------
* Application Code
*------------------------**/
"<TYPES>^@app(/.*)?$", // matches type imports starting with @app
"^@app(/.*)?$",
"",
"<TYPES>^[.]",
"^[.]", // relative imports
],
};