@2digits/oxfmt-config 0.1.0 → 0.3.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/dist/index.d.mts +36 -6
- package/dist/index.mjs +1 -1
- package/package.json +19 -23
- package/dist/index.cjs +0 -1
- package/dist/index.d.cts +0 -16
package/dist/index.d.mts
CHANGED
|
@@ -1,17 +1,47 @@
|
|
|
1
|
-
import { SortImportsConfig } from "oxfmt";
|
|
1
|
+
import { OxfmtConfig, SortImportsConfig } from "oxfmt";
|
|
2
2
|
|
|
3
|
-
//#region src/
|
|
4
|
-
declare const
|
|
3
|
+
//#region src/config.d.ts
|
|
4
|
+
declare const twoDigits: {
|
|
5
5
|
printWidth: number;
|
|
6
6
|
trailingComma: "all";
|
|
7
7
|
bracketSameLine: true;
|
|
8
8
|
singleQuote: true;
|
|
9
|
-
embeddedLanguageFormatting: "
|
|
10
|
-
sortPackageJson:
|
|
9
|
+
embeddedLanguageFormatting: "auto";
|
|
10
|
+
sortPackageJson: {
|
|
11
|
+
sortScripts: true;
|
|
12
|
+
};
|
|
11
13
|
sortImports: SortImportsConfig;
|
|
12
14
|
sortTailwindcss: {
|
|
13
15
|
functions: string[];
|
|
14
16
|
};
|
|
17
|
+
arrowParens: "always";
|
|
18
|
+
bracketSpacing: true;
|
|
19
|
+
endOfLine: "lf";
|
|
20
|
+
htmlWhitespaceSensitivity: "css";
|
|
21
|
+
insertFinalNewline: true;
|
|
22
|
+
jsdoc: {
|
|
23
|
+
addDefaultToDescription: true;
|
|
24
|
+
bracketSpacing: false;
|
|
25
|
+
capitalizeDescriptions: true;
|
|
26
|
+
commentLineStrategy: string;
|
|
27
|
+
descriptionTag: false;
|
|
28
|
+
descriptionWithDot: true;
|
|
29
|
+
keepUnparsableExampleIndent: false;
|
|
30
|
+
lineWrappingStyle: string;
|
|
31
|
+
preferCodeFences: true;
|
|
32
|
+
separateReturnsFromParam: true;
|
|
33
|
+
separateTagGroups: false;
|
|
34
|
+
};
|
|
35
|
+
jsxSingleQuote: false;
|
|
36
|
+
objectWrap: "preserve";
|
|
37
|
+
proseWrap: "preserve";
|
|
38
|
+
quoteProps: "as-needed";
|
|
39
|
+
semi: true;
|
|
40
|
+
singleAttributePerLine: false;
|
|
41
|
+
tabWidth: number;
|
|
42
|
+
useTabs: false;
|
|
43
|
+
ignorePatterns: string[];
|
|
15
44
|
};
|
|
45
|
+
declare function withTwoDigits(...configs: Array<OxfmtConfig>): OxfmtConfig;
|
|
16
46
|
//#endregion
|
|
17
|
-
export {
|
|
47
|
+
export { withTwoDigits as default, withTwoDigits, twoDigits };
|
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{defu as e}from"defu";import{defineConfig as t}from"oxfmt";import{ignorePatterns as n,tailwindFunctions as r}from"@2digits/constants";const i=t({printWidth:120,trailingComma:`all`,bracketSameLine:!0,singleQuote:!0,embeddedLanguageFormatting:`auto`,sortPackageJson:{sortScripts:!0},sortImports:{ignoreCase:!1,partitionByComment:!0,sortSideEffects:!1,internalPattern:[`@/`,`~/`,`#/`],newlinesBetween:!0,order:`asc`,customGroups:[{groupName:`react`,elementNamePattern:[`react`,`react/**`]},{groupName:`react-native`,elementNamePattern:[`react-native`,`react-native/**`]},{groupName:`next`,elementNamePattern:[`next`,`next/**`]},{groupName:`expo`,elementNamePattern:[`expo`,`expo-*`,`@expo/**`]},{groupName:`two-digits`,elementNamePattern:[`@2digits/**`]},{groupName:`mod`,elementNamePattern:[`@mod/**`]},{groupName:`internal-alias`,elementNamePattern:[`@/**`]},{groupName:`scoped-alias`,elementNamePattern:[`@[A-Z]*`,`@[A-Z]*/**`]},{groupName:`json`,elementNamePattern:[`*.json`,`**/*.json`]}],groups:[[`type-builtin`,`builtin`],`react`,`react-native`,`next`,`expo`,[`type-external`,`external`,`unknown`],[`two-digits`,`mod`],`internal-alias`,`scoped-alias`,`json`,[`type-parent`,`type-sibling`,`type-index`,`parent`,`sibling`,`index`]]},sortTailwindcss:{functions:r},arrowParens:`always`,bracketSpacing:!0,endOfLine:`lf`,htmlWhitespaceSensitivity:`css`,insertFinalNewline:!0,jsdoc:{addDefaultToDescription:!0,bracketSpacing:!1,capitalizeDescriptions:!0,commentLineStrategy:`multiline`,descriptionTag:!1,descriptionWithDot:!0,keepUnparsableExampleIndent:!1,lineWrappingStyle:`greedy`,preferCodeFences:!0,separateReturnsFromParam:!0,separateTagGroups:!1},jsxSingleQuote:!1,objectWrap:`preserve`,proseWrap:`preserve`,quoteProps:`as-needed`,semi:!0,singleAttributePerLine:!1,tabWidth:2,useTabs:!1,ignorePatterns:n});function a(...t){let[n,...r]=t;return e(n,...r,i)}export{a as default,a as withTwoDigits,i as twoDigits};
|
package/package.json
CHANGED
|
@@ -1,55 +1,51 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@2digits/oxfmt-config",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "Opinionated Oxfmt config for 2digits projects.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"oxfmt-config"
|
|
7
|
+
],
|
|
8
|
+
"license": "MIT",
|
|
5
9
|
"repository": {
|
|
6
10
|
"type": "git",
|
|
7
11
|
"url": "git+https://github.com/2digits-agency/configs.git",
|
|
8
12
|
"directory": "packages/oxfmt-config"
|
|
9
13
|
},
|
|
10
|
-
"type": "module",
|
|
11
|
-
"main": "./dist/index.cjs",
|
|
12
|
-
"module": "./dist/index.mjs",
|
|
13
|
-
"types": "./dist/index.d.cts",
|
|
14
14
|
"files": [
|
|
15
15
|
"dist"
|
|
16
16
|
],
|
|
17
|
+
"type": "module",
|
|
18
|
+
"sideEffects": false,
|
|
17
19
|
"exports": {
|
|
18
|
-
".":
|
|
19
|
-
"import": "./dist/index.mjs",
|
|
20
|
-
"require": "./dist/index.cjs"
|
|
21
|
-
},
|
|
20
|
+
".": "./dist/index.mjs",
|
|
22
21
|
"./package.json": "./package.json"
|
|
23
22
|
},
|
|
24
|
-
"sideEffects": false,
|
|
25
|
-
"keywords": [
|
|
26
|
-
"oxfmt-config"
|
|
27
|
-
],
|
|
28
|
-
"license": "MIT",
|
|
29
|
-
"public": true,
|
|
30
23
|
"dependencies": {
|
|
31
|
-
"
|
|
24
|
+
"defu": "6.1.4",
|
|
25
|
+
"@2digits/constants": "1.1.18"
|
|
32
26
|
},
|
|
33
27
|
"devDependencies": {
|
|
34
28
|
"@arethetypeswrong/core": "0.18.2",
|
|
35
29
|
"@types/node": "24.12.0",
|
|
36
|
-
"@typescript/native-preview": "7.0.0-dev.
|
|
30
|
+
"@typescript/native-preview": "7.0.0-dev.20260330.1",
|
|
37
31
|
"oxfmt": "0.42.0",
|
|
38
32
|
"prettier": "3.8.1",
|
|
39
33
|
"publint": "0.3.18",
|
|
40
|
-
"tsdown": "0.21.6",
|
|
41
34
|
"typescript": "6.0.2",
|
|
42
|
-
"
|
|
35
|
+
"vite-plus": "0.1.14",
|
|
36
|
+
"vitest": "npm:@voidzero-dev/vite-plus-test@0.1.14",
|
|
37
|
+
"@2digits/prettier-config": "4.0.34",
|
|
43
38
|
"@2digits/tsconfig": "0.8.7"
|
|
44
39
|
},
|
|
45
40
|
"peerDependencies": {
|
|
46
41
|
"oxfmt": "0.42.0"
|
|
47
42
|
},
|
|
43
|
+
"public": true,
|
|
48
44
|
"scripts": {
|
|
49
|
-
"build": "
|
|
50
|
-
"dev": "
|
|
51
|
-
"test": "
|
|
52
|
-
"test:watch": "
|
|
45
|
+
"build": "vp pack --minify --config-loader unconfig",
|
|
46
|
+
"dev": "vp pack --watch --config-loader unconfig",
|
|
47
|
+
"test": "vp test run",
|
|
48
|
+
"test:watch": "vp test",
|
|
53
49
|
"types": "tsgo --noEmit"
|
|
54
50
|
}
|
|
55
51
|
}
|
package/dist/index.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
let e=require(`oxfmt`),t=require(`@2digits/constants`);var n=(0,e.defineConfig)({printWidth:120,trailingComma:`all`,bracketSameLine:!0,singleQuote:!0,embeddedLanguageFormatting:`off`,sortPackageJson:!1,sortImports:{ignoreCase:!1,partitionByComment:!0,sortSideEffects:!1,internalPattern:[`@/`,`~/`],customGroups:[{groupName:`react`,elementNamePattern:[`react`,`react/**`]},{groupName:`react-native`,elementNamePattern:[`react-native`,`react-native/**`]},{groupName:`next`,elementNamePattern:[`next`,`next/**`]},{groupName:`expo`,elementNamePattern:[`expo`,`expo-*`,`@expo/**`]},{groupName:`two-digits`,elementNamePattern:[`@2digits/**`]},{groupName:`mod`,elementNamePattern:[`@mod/**`]},{groupName:`internal-alias`,elementNamePattern:[`@/**`]},{groupName:`scoped-alias`,elementNamePattern:[`@[A-Z]*`,`@[A-Z]*/**`]},{groupName:`json`,elementNamePattern:[`*.json`,`**/*.json`]}],groups:[[`type-builtin`,`builtin`],`react`,`react-native`,`next`,`expo`,[`type-external`,`external`,`unknown`],[`two-digits`,`mod`],`internal-alias`,`scoped-alias`,`json`,[`type-parent`,`type-sibling`,`type-index`,`parent`,`sibling`,`index`]]},sortTailwindcss:{functions:t.tailwindFunctions}});module.exports=n;
|
package/dist/index.d.cts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { SortImportsConfig } from "oxfmt";
|
|
2
|
-
|
|
3
|
-
//#region src/index.d.ts
|
|
4
|
-
declare const _default: {
|
|
5
|
-
printWidth: number;
|
|
6
|
-
trailingComma: "all";
|
|
7
|
-
bracketSameLine: true;
|
|
8
|
-
singleQuote: true;
|
|
9
|
-
embeddedLanguageFormatting: "off";
|
|
10
|
-
sortPackageJson: false;
|
|
11
|
-
sortImports: SortImportsConfig;
|
|
12
|
-
sortTailwindcss: {
|
|
13
|
-
functions: string[];
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
export = _default;
|