@qualcomm-ui/oxfmt-config 1.0.0 → 1.0.1

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.
Files changed (2) hide show
  1. package/index.js +10 -18
  2. package/package.json +12 -9
package/index.js CHANGED
@@ -9,21 +9,10 @@ export default defineConfig({
9
9
  bracketSpacing: false,
10
10
  embeddedLanguageFormatting: "auto",
11
11
  endOfLine: "lf",
12
- htmlWhitespaceSensitivity: "css",
12
+ htmlWhitespaceSensitivity: "ignore",
13
13
  insertFinalNewline: true,
14
- jsdoc: {
15
- addDefaultToDescription: false,
16
- bracketSpacing: false,
17
- capitalizeDescriptions: false,
18
- commentLineStrategy: "keep",
19
- descriptionTag: false,
20
- descriptionWithDot: false,
21
- keepUnparsableExampleIndent: true,
22
- lineWrappingStyle: "balance",
23
- preferCodeFences: true,
24
- separateReturnsFromParam: false,
25
- separateTagGroups: false,
26
- },
14
+ // TODO: enable when https://github.com/oxc-project/oxc/issues/21549 is fixed
15
+ jsdoc: false,
27
16
  jsxSingleQuote: false,
28
17
  objectWrap: "preserve",
29
18
  printWidth: 80,
@@ -44,6 +33,11 @@ export default defineConfig({
44
33
  groupName: "qualcomm-ui",
45
34
  selector: "external",
46
35
  },
36
+ {
37
+ elementNamePattern: ["~*/**"],
38
+ groupName: "internal",
39
+ selector: "internal",
40
+ },
47
41
  ],
48
42
  groups: [
49
43
  "react",
@@ -58,15 +52,13 @@ export default defineConfig({
58
52
  "style",
59
53
  "side_effect_style",
60
54
  ],
61
- ignoreCase: true,
55
+ ignoreCase: false,
62
56
  internalPattern: ["~"],
63
57
  newlinesBetween: true,
64
58
  order: "asc",
65
59
  sortSideEffects: false,
66
60
  },
67
- sortPackageJson: {
68
- sortScripts: false,
69
- },
61
+ sortPackageJson: true,
70
62
  sortTailwindcss: true,
71
63
  tabWidth: 2,
72
64
  trailingComma: "all",
package/package.json CHANGED
@@ -1,24 +1,24 @@
1
1
  {
2
2
  "name": "@qualcomm-ui/oxfmt-config",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "QUI Oxfmt config for consistent code formatting",
5
- "author": "Ryan Bower",
6
- "license": "BSD-3-Clause-Clear",
7
- "repository": "https://github.com/qualcomm/qualcomm-ui",
8
- "publishConfig": {
9
- "access": "public"
10
- },
11
5
  "keywords": [
12
6
  "config",
13
7
  "formatter",
14
8
  "oxfmt"
15
9
  ],
16
- "type": "module",
17
- "sideEffects": false,
10
+ "license": "BSD-3-Clause-Clear",
11
+ "author": "Ryan Bower",
12
+ "repository": {
13
+ "type": "git",
14
+ "url": "https://github.com/qualcomm/qualcomm-ui"
15
+ },
18
16
  "files": [
19
17
  "index.d.ts",
20
18
  "index.js"
21
19
  ],
20
+ "type": "module",
21
+ "sideEffects": false,
22
22
  "types": "index.d.ts",
23
23
  "exports": {
24
24
  ".": {
@@ -27,6 +27,9 @@
27
27
  "default": "./index.js"
28
28
  }
29
29
  },
30
+ "publishConfig": {
31
+ "access": "public"
32
+ },
30
33
  "peerDependencies": {
31
34
  "oxfmt": ">=0.51.0"
32
35
  }