@alint-js/config 0.0.5 → 0.0.6
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.mjs +4 -6
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -7,16 +7,14 @@ import { mkdir, readFile, writeFile } from "node:fs/promises";
|
|
|
7
7
|
import { parse, stringify } from "smol-toml";
|
|
8
8
|
//#region src/config/load.ts
|
|
9
9
|
async function loadAlintConfig(cwd, configFile) {
|
|
10
|
-
|
|
10
|
+
const result = await loadConfig({
|
|
11
11
|
configFile,
|
|
12
12
|
cwd,
|
|
13
|
-
defaults: {
|
|
14
|
-
plugins: [],
|
|
15
|
-
rules: {}
|
|
16
|
-
},
|
|
17
13
|
dotenv: true,
|
|
18
14
|
name: "alint"
|
|
19
|
-
})
|
|
15
|
+
});
|
|
16
|
+
if (result._configFile === void 0) return [];
|
|
17
|
+
return result.config ?? [];
|
|
20
18
|
}
|
|
21
19
|
//#endregion
|
|
22
20
|
//#region src/paths.ts
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alint-js/config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.6",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
7
7
|
"types": "./dist/index.d.mts",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"pathe": "^2.0.3",
|
|
18
18
|
"smol-toml": "^1.7.0",
|
|
19
19
|
"xdg-basedir": "^5.1.0",
|
|
20
|
-
"@alint-js/core": "0.0.
|
|
20
|
+
"@alint-js/core": "0.0.6"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"@types/node": "^26.0.1",
|