@qlik/oxfmt-config 0.1.0

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.
package/CHANGELOG.md ADDED
@@ -0,0 +1,7 @@
1
+ # @qlik/oxfmt-config
2
+
3
+ ## 0.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 15d6fd1: Adds a config for [oxfmt](https://oxc.rs/docs/guide/usage/formatter.html), same code formatting as our prettier configuration with the addition of the native package json sorting which differs slightly.
package/LICENSE ADDED
@@ -0,0 +1,17 @@
1
+ ISC License
2
+
3
+ Copyright (c) 2026 Qlik
4
+
5
+ Permission to use, copy, modify, and/or distribute this software
6
+ for any purpose with or without fee is hereby granted, provided
7
+ that the above copyright notice and this permission notice appear
8
+ in all copies.
9
+
10
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
11
+ WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
12
+ WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
13
+ AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR
14
+ CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
15
+ OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
16
+ NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
17
+ CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,19 @@
1
+ # @qlik/oxfmt-config
2
+
3
+ Oxfmt config to share among projects for consistent formatting. The config is based on oxfmt's default values except for `printWidth` which is set to 120 (default is 100), and enables package json sorting.
4
+
5
+ ## usage
6
+
7
+ Install `@qlik/oxfmt-config` as a devDependency in package.json.
8
+
9
+ Create an `oxfmt.config.ts`
10
+
11
+ ```ts
12
+ import config from "@qlik/oxfmt-config";
13
+ import { defineConfig } from "oxfmt";
14
+
15
+ export default defineConfig({
16
+ ...config,
17
+ ignorePatterns: ["pnpm-lock.yaml"],
18
+ });
19
+ ```
@@ -0,0 +1,7 @@
1
+ // @ts-check
2
+ import { defineConfig } from "oxfmt";
3
+
4
+ export default defineConfig({
5
+ printWidth: 120,
6
+ sortPackageJson: true,
7
+ });
package/package.json ADDED
@@ -0,0 +1,26 @@
1
+ {
2
+ "name": "@qlik/oxfmt-config",
3
+ "version": "0.1.0",
4
+ "description": "Qlik's shared oxfmt config",
5
+ "license": "ISC",
6
+ "repository": "git@github.com:qlik-oss/dev-tools-js.git",
7
+ "type": "module",
8
+ "main": "./oxfmt.config.js",
9
+ "publishConfig": {
10
+ "access": "public",
11
+ "registry": "https://registry.npmjs.org/"
12
+ },
13
+ "dependencies": {
14
+ "oxfmt": "^0.38.0"
15
+ },
16
+ "peerDependencies": {
17
+ "oxfmt": ">=0.38.0"
18
+ },
19
+ "engines": {
20
+ "node": ">=22.18.0"
21
+ },
22
+ "scripts": {
23
+ "format:check": "cd ../.. && oxfmt --check 'packages/oxfmt-config'",
24
+ "format:write": "cd ../.. && oxfmt 'packages/oxfmt-config'"
25
+ }
26
+ }