-
Notifications
You must be signed in to change notification settings - Fork 12
Oxfmt #438
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Oxfmt #438
Changes from 2 commits
c00eb46
9a36e8f
9468fc6
fce92fd
a162104
7eea0c3
a994959
2006a72
de0e960
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -136,3 +136,5 @@ dist | |
| test/msg-box | ||
| test/bookshop/gen | ||
| test/bookshop/.cdsrc.json | ||
|
|
||
| .claude/ | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| { | ||
| "$schema": "./node_modules/oxfmt/configuration_schema.json", | ||
| "arrowParens": "avoid", | ||
| "bracketSpacing": true, | ||
| "embeddedLanguageFormatting": "auto", | ||
| "htmlWhitespaceSensitivity": "css", | ||
| "insertPragma": false, | ||
| "jsxSingleQuote": false, | ||
| "printWidth": 120, | ||
| "proseWrap": "preserve", | ||
| "quoteProps": "as-needed", | ||
| "requirePragma": false, | ||
| "semi": false, | ||
| "singleQuote": true, | ||
| "tabWidth": 2, | ||
| "trailingComma": "none", | ||
| "useTabs": false, | ||
| "vueIndentScriptAndStyle": false, | ||
| "sortPackageJson": false, | ||
| "ignorePatterns": [ | ||
| "*.md" | ||
| ] | ||
| } | ||
| Original file line number | Diff line number | Diff line change | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -8,7 +8,9 @@ if (process.env.CI && process.env.HANA_DRIVER) { | |||||||||||||||
| config.testMatch = ['**/tracing-attributes.test.js', '**/passport.test.js'] | ||||||||||||||||
|
|
||||||||||||||||
| if (process.env.HANA_PROM) | ||||||||||||||||
| process.env.cds_requires_telemetry_tracing = JSON.stringify({ _hana_prom: process.env.HANA_PROM === 'true' }) | ||||||||||||||||
| process.env.cds_requires_telemetry_tracing = JSON.stringify({ | ||||||||||||||||
| _hana_prom: process.env.HANA_PROM === 'true' | ||||||||||||||||
| }) | ||||||||||||||||
|
Comment on lines
+11
to
+13
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Formatting: The object key
Suggested change
Double-check suggestion before committing. Edit this comment for amendments. Please provide feedback on the review comment by checking the appropriate box:
|
||||||||||||||||
| } | ||||||||||||||||
|
|
||||||||||||||||
| module.exports = config | ||||||||||||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,21 +2,26 @@ | |
| "name": "@cap-js/telemetry", | ||
| "version": "1.6.0", | ||
| "description": "CDS plugin providing observability features, incl. automatic OpenTelemetry instrumentation.", | ||
| "homepage": "https://cap.cloud.sap/", | ||
| "license": "Apache-2.0", | ||
| "author": "SAP SE (https://www.sap.com)", | ||
| "repository": { | ||
| "type": "git", | ||
| "url": "git+https://github.com/cap-js/telemetry.git" | ||
| }, | ||
| "author": "SAP SE (https://www.sap.com)", | ||
| "homepage": "https://cap.cloud.sap/", | ||
| "license": "Apache-2.0", | ||
| "main": "cds-plugin.js", | ||
| "files": [ | ||
| "lib" | ||
| ], | ||
| "main": "cds-plugin.js", | ||
| "scripts": { | ||
| "lint": "npx eslint .", | ||
| "fmt": "oxfmt", | ||
| "fmt:check": "oxfmt --check", | ||
| "test": "npx jest --silent" | ||
| }, | ||
| "lint-staged": { | ||
| "*": "oxfmt --no-error-on-unmatched-pattern" | ||
| }, | ||
| "dependencies": { | ||
| "@opentelemetry/api": "^1.9", | ||
| "@opentelemetry/core": "^1.30", | ||
|
|
@@ -28,9 +33,6 @@ | |
| "@opentelemetry/sdk-trace-node": "^1.30", | ||
| "@opentelemetry/semantic-conventions": "^1.36" | ||
| }, | ||
| "peerDependencies": { | ||
| "@sap/cds": "^8 || ^9" | ||
| }, | ||
| "devDependencies": { | ||
| "@cap-js/cds-test": "^0", | ||
| "@cap-js/sqlite": "^1 || ^2", | ||
|
|
@@ -48,7 +50,12 @@ | |
| "chai-as-promised": "^7.1.1", | ||
| "chai-subset": "^1.6.0", | ||
| "eslint": "^10", | ||
| "jest": "^29.7.0" | ||
| "jest": "^29.7.0", | ||
| "lint-staged": "^17.0.8", | ||
| "oxfmt": "^0.56.0" | ||
| }, | ||
| "peerDependencies": { | ||
| "@sap/cds": "^8 || ^9" | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Bug: Please provide feedback on the review comment by checking the appropriate box:
|
||
| }, | ||
| "cds": { | ||
| "requires": { | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Best Practice: File is missing a trailing newline (
\ No newline at end of file) - most linters and editors expect a newline at end of file, and it's inconsistent with the formatter's own intent.Please provide feedback on the review comment by checking the appropriate box: