@2digits/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/dist/index.cjs +1 -0
- package/dist/index.d.cts +16 -0
- package/dist/index.d.mts +17 -0
- package/dist/index.mjs +1 -0
- package/package.json +55 -0
package/dist/index.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
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
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
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;
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
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
|
+
//#endregion
|
|
17
|
+
export { _default as default };
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{defineConfig as e}from"oxfmt";import{tailwindFunctions as t}from"@2digits/constants";var n=e({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}});export{n as default};
|
package/package.json
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@2digits/oxfmt-config",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Opinionated Oxfmt config for 2digits projects.",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "git+https://github.com/2digits-agency/configs.git",
|
|
8
|
+
"directory": "packages/oxfmt-config"
|
|
9
|
+
},
|
|
10
|
+
"type": "module",
|
|
11
|
+
"main": "./dist/index.cjs",
|
|
12
|
+
"module": "./dist/index.mjs",
|
|
13
|
+
"types": "./dist/index.d.cts",
|
|
14
|
+
"files": [
|
|
15
|
+
"dist"
|
|
16
|
+
],
|
|
17
|
+
"exports": {
|
|
18
|
+
".": {
|
|
19
|
+
"import": "./dist/index.mjs",
|
|
20
|
+
"require": "./dist/index.cjs"
|
|
21
|
+
},
|
|
22
|
+
"./package.json": "./package.json"
|
|
23
|
+
},
|
|
24
|
+
"sideEffects": false,
|
|
25
|
+
"keywords": [
|
|
26
|
+
"oxfmt-config"
|
|
27
|
+
],
|
|
28
|
+
"license": "MIT",
|
|
29
|
+
"public": true,
|
|
30
|
+
"dependencies": {
|
|
31
|
+
"@2digits/constants": "1.1.17"
|
|
32
|
+
},
|
|
33
|
+
"devDependencies": {
|
|
34
|
+
"@arethetypeswrong/core": "0.18.2",
|
|
35
|
+
"@types/node": "24.12.0",
|
|
36
|
+
"@typescript/native-preview": "7.0.0-dev.20260328.1",
|
|
37
|
+
"oxfmt": "0.42.0",
|
|
38
|
+
"prettier": "3.8.1",
|
|
39
|
+
"publint": "0.3.18",
|
|
40
|
+
"tsdown": "0.21.6",
|
|
41
|
+
"typescript": "6.0.2",
|
|
42
|
+
"vitest": "4.1.2",
|
|
43
|
+
"@2digits/tsconfig": "0.8.7"
|
|
44
|
+
},
|
|
45
|
+
"peerDependencies": {
|
|
46
|
+
"oxfmt": "0.42.0"
|
|
47
|
+
},
|
|
48
|
+
"scripts": {
|
|
49
|
+
"build": "tsdown --minify --config-loader unconfig",
|
|
50
|
+
"dev": "tsdown --watch --config-loader unconfig",
|
|
51
|
+
"test": "vitest run",
|
|
52
|
+
"test:watch": "vitest",
|
|
53
|
+
"types": "tsgo --noEmit"
|
|
54
|
+
}
|
|
55
|
+
}
|