@alextheman/configs 1.0.1 → 1.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/oxfmt/index.cjs +46 -0
- package/dist/{index.d.cts → oxfmt/index.d.cts} +1 -3
- package/dist/{index.d.ts → oxfmt/index.d.ts} +1 -3
- package/dist/oxfmt/index.js +44 -0
- package/dist/{index.cjs → oxlint/index.cjs} +0 -45
- package/dist/oxlint/index.d.cts +3 -0
- package/dist/oxlint/index.d.ts +3 -0
- package/dist/{index.js → oxlint/index.js} +1 -44
- package/package.json +10 -5
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
// src/oxfmt/sortImports.ts
|
|
3
|
+
const sortImports = {
|
|
4
|
+
customGroups: [
|
|
5
|
+
{
|
|
6
|
+
elementNamePattern: ["**/*.json"],
|
|
7
|
+
groupName: "json"
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
elementNamePattern: ["tests/**"],
|
|
11
|
+
groupName: "type-tests",
|
|
12
|
+
selector: "type"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
elementNamePattern: ["tests/**"],
|
|
16
|
+
groupName: "value-tests"
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
groups: [
|
|
20
|
+
"type-builtin",
|
|
21
|
+
"type-external",
|
|
22
|
+
"type-tests",
|
|
23
|
+
"type-internal",
|
|
24
|
+
"value-external",
|
|
25
|
+
"value-builtin",
|
|
26
|
+
"value-tests",
|
|
27
|
+
"value-internal",
|
|
28
|
+
"json"
|
|
29
|
+
],
|
|
30
|
+
ignoreCase: true,
|
|
31
|
+
internalPattern: ["src/"],
|
|
32
|
+
newlinesBetween: true,
|
|
33
|
+
order: "asc",
|
|
34
|
+
partitionByComment: false,
|
|
35
|
+
partitionByNewLine: false,
|
|
36
|
+
specialCharacters: "keep",
|
|
37
|
+
type: "alphabetical"
|
|
38
|
+
};
|
|
39
|
+
// src/oxfmt/configBase.ts
|
|
40
|
+
const oxfmtConfigBase = {
|
|
41
|
+
ignorePatterns: ["dist/**", "pnpm-lock.yaml"],
|
|
42
|
+
sortImports,
|
|
43
|
+
sortPackageJson: { sortScripts: true }
|
|
44
|
+
};
|
|
45
|
+
exports.oxfmtConfigBase = oxfmtConfigBase;
|
|
46
|
+
exports.sortImports = sortImports;
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import { OxlintConfig } from "oxlint";
|
|
2
1
|
import { OxfmtConfig, SortImportsUserConfig } from "oxfmt";
|
|
3
|
-
declare const oxlintConfigBase: OxlintConfig;
|
|
4
2
|
declare const oxfmtConfigBase: OxfmtConfig;
|
|
5
3
|
declare const sortImports: SortImportsUserConfig;
|
|
6
|
-
export { oxfmtConfigBase,
|
|
4
|
+
export { oxfmtConfigBase, sortImports };
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import { OxlintConfig } from "oxlint";
|
|
2
1
|
import { OxfmtConfig, SortImportsUserConfig } from "oxfmt";
|
|
3
|
-
declare const oxlintConfigBase: OxlintConfig;
|
|
4
2
|
declare const oxfmtConfigBase: OxfmtConfig;
|
|
5
3
|
declare const sortImports: SortImportsUserConfig;
|
|
6
|
-
export { oxfmtConfigBase,
|
|
4
|
+
export { oxfmtConfigBase, sortImports };
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
// src/oxfmt/sortImports.ts
|
|
2
|
+
const sortImports = {
|
|
3
|
+
customGroups: [
|
|
4
|
+
{
|
|
5
|
+
elementNamePattern: ["**/*.json"],
|
|
6
|
+
groupName: "json"
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
elementNamePattern: ["tests/**"],
|
|
10
|
+
groupName: "type-tests",
|
|
11
|
+
selector: "type"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
elementNamePattern: ["tests/**"],
|
|
15
|
+
groupName: "value-tests"
|
|
16
|
+
}
|
|
17
|
+
],
|
|
18
|
+
groups: [
|
|
19
|
+
"type-builtin",
|
|
20
|
+
"type-external",
|
|
21
|
+
"type-tests",
|
|
22
|
+
"type-internal",
|
|
23
|
+
"value-external",
|
|
24
|
+
"value-builtin",
|
|
25
|
+
"value-tests",
|
|
26
|
+
"value-internal",
|
|
27
|
+
"json"
|
|
28
|
+
],
|
|
29
|
+
ignoreCase: true,
|
|
30
|
+
internalPattern: ["src/"],
|
|
31
|
+
newlinesBetween: true,
|
|
32
|
+
order: "asc",
|
|
33
|
+
partitionByComment: false,
|
|
34
|
+
partitionByNewLine: false,
|
|
35
|
+
specialCharacters: "keep",
|
|
36
|
+
type: "alphabetical"
|
|
37
|
+
};
|
|
38
|
+
// src/oxfmt/configBase.ts
|
|
39
|
+
const oxfmtConfigBase = {
|
|
40
|
+
ignorePatterns: ["dist/**", "pnpm-lock.yaml"],
|
|
41
|
+
sortImports,
|
|
42
|
+
sortPackageJson: { sortScripts: true }
|
|
43
|
+
};
|
|
44
|
+
export { oxfmtConfigBase, sortImports };
|
|
@@ -108,49 +108,4 @@ const oxlintConfigBase = {
|
|
|
108
108
|
"vitest/require-mock-type-parameters": "off"
|
|
109
109
|
}
|
|
110
110
|
};
|
|
111
|
-
// src/oxfmt/sortImports.ts
|
|
112
|
-
const sortImports = {
|
|
113
|
-
customGroups: [
|
|
114
|
-
{
|
|
115
|
-
elementNamePattern: ["**/*.json"],
|
|
116
|
-
groupName: "json"
|
|
117
|
-
},
|
|
118
|
-
{
|
|
119
|
-
elementNamePattern: ["tests/**"],
|
|
120
|
-
groupName: "type-tests",
|
|
121
|
-
selector: "type"
|
|
122
|
-
},
|
|
123
|
-
{
|
|
124
|
-
elementNamePattern: ["tests/**"],
|
|
125
|
-
groupName: "value-tests"
|
|
126
|
-
}
|
|
127
|
-
],
|
|
128
|
-
groups: [
|
|
129
|
-
"type-builtin",
|
|
130
|
-
"type-external",
|
|
131
|
-
"type-tests",
|
|
132
|
-
"type-internal",
|
|
133
|
-
"value-external",
|
|
134
|
-
"value-builtin",
|
|
135
|
-
"value-tests",
|
|
136
|
-
"value-internal",
|
|
137
|
-
"json"
|
|
138
|
-
],
|
|
139
|
-
ignoreCase: true,
|
|
140
|
-
internalPattern: ["src/"],
|
|
141
|
-
newlinesBetween: true,
|
|
142
|
-
order: "asc",
|
|
143
|
-
partitionByComment: false,
|
|
144
|
-
partitionByNewLine: false,
|
|
145
|
-
specialCharacters: "keep",
|
|
146
|
-
type: "alphabetical"
|
|
147
|
-
};
|
|
148
|
-
// src/oxfmt/configBase.ts
|
|
149
|
-
const oxfmtConfigBase = {
|
|
150
|
-
ignorePatterns: ["dist/**", "pnpm-lock.yaml"],
|
|
151
|
-
sortImports,
|
|
152
|
-
sortPackageJson: { sortScripts: true }
|
|
153
|
-
};
|
|
154
|
-
exports.oxfmtConfigBase = oxfmtConfigBase;
|
|
155
111
|
exports.oxlintConfigBase = oxlintConfigBase;
|
|
156
|
-
exports.sortImports = sortImports;
|
|
@@ -107,47 +107,4 @@ const oxlintConfigBase = {
|
|
|
107
107
|
"vitest/require-mock-type-parameters": "off"
|
|
108
108
|
}
|
|
109
109
|
};
|
|
110
|
-
|
|
111
|
-
const sortImports = {
|
|
112
|
-
customGroups: [
|
|
113
|
-
{
|
|
114
|
-
elementNamePattern: ["**/*.json"],
|
|
115
|
-
groupName: "json"
|
|
116
|
-
},
|
|
117
|
-
{
|
|
118
|
-
elementNamePattern: ["tests/**"],
|
|
119
|
-
groupName: "type-tests",
|
|
120
|
-
selector: "type"
|
|
121
|
-
},
|
|
122
|
-
{
|
|
123
|
-
elementNamePattern: ["tests/**"],
|
|
124
|
-
groupName: "value-tests"
|
|
125
|
-
}
|
|
126
|
-
],
|
|
127
|
-
groups: [
|
|
128
|
-
"type-builtin",
|
|
129
|
-
"type-external",
|
|
130
|
-
"type-tests",
|
|
131
|
-
"type-internal",
|
|
132
|
-
"value-external",
|
|
133
|
-
"value-builtin",
|
|
134
|
-
"value-tests",
|
|
135
|
-
"value-internal",
|
|
136
|
-
"json"
|
|
137
|
-
],
|
|
138
|
-
ignoreCase: true,
|
|
139
|
-
internalPattern: ["src/"],
|
|
140
|
-
newlinesBetween: true,
|
|
141
|
-
order: "asc",
|
|
142
|
-
partitionByComment: false,
|
|
143
|
-
partitionByNewLine: false,
|
|
144
|
-
specialCharacters: "keep",
|
|
145
|
-
type: "alphabetical"
|
|
146
|
-
};
|
|
147
|
-
// src/oxfmt/configBase.ts
|
|
148
|
-
const oxfmtConfigBase = {
|
|
149
|
-
ignorePatterns: ["dist/**", "pnpm-lock.yaml"],
|
|
150
|
-
sortImports,
|
|
151
|
-
sortPackageJson: { sortScripts: true }
|
|
152
|
-
};
|
|
153
|
-
export { oxfmtConfigBase, oxlintConfigBase, sortImports };
|
|
110
|
+
export { oxlintConfigBase };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alextheman/configs",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"repository": {
|
|
@@ -8,10 +8,15 @@
|
|
|
8
8
|
"url": "git+https://github.com/alextheman231/configs.git"
|
|
9
9
|
},
|
|
10
10
|
"exports": {
|
|
11
|
-
"
|
|
12
|
-
"import": "./dist/index.js",
|
|
13
|
-
"types": "./dist/index.d.ts",
|
|
14
|
-
"require": "./dist/index.cjs"
|
|
11
|
+
"./oxfmt": {
|
|
12
|
+
"import": "./dist/oxfmt/index.js",
|
|
13
|
+
"types": "./dist/oxfmt/index.d.ts",
|
|
14
|
+
"require": "./dist/oxfmt/index.cjs"
|
|
15
|
+
},
|
|
16
|
+
"./oxlint": {
|
|
17
|
+
"import": "./dist/oxlint/index.js",
|
|
18
|
+
"types": "./dist/oxlint/index.d.ts",
|
|
19
|
+
"require": "./dist/ixlint/index.cjs"
|
|
15
20
|
}
|
|
16
21
|
},
|
|
17
22
|
"files": [
|