@vp-tw/eslint-config 0.0.11 → 0.0.13
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/esm/globs.mjs +1 -1
- package/dist/esm/vdustr.mjs +6 -8
- package/dist/globs.js +1 -1
- package/dist/vdustr.js +2 -1
- package/package.json +1 -1
package/dist/esm/globs.mjs
CHANGED
|
@@ -2,7 +2,7 @@ const GLOB_CODE_WORKSPACE = "**/*.code-workspace";
|
|
|
2
2
|
const GLOB_PACKAGE_JSON = "**/package.json";
|
|
3
3
|
const GLOB_PNPM_WORKSPACE_YAML = "**/pnpm-workspace.y?(a)ml";
|
|
4
4
|
const GLOB_CSPELL_JSON = "**/cspell.json";
|
|
5
|
-
const GLOB_CONFIG_JS = "**/*.config.?([cm])
|
|
5
|
+
const GLOB_CONFIG_JS = "**/*.config.?([cm])[jt]s";
|
|
6
6
|
export {
|
|
7
7
|
GLOB_CODE_WORKSPACE,
|
|
8
8
|
GLOB_CONFIG_JS,
|
package/dist/esm/vdustr.mjs
CHANGED
|
@@ -10,14 +10,11 @@ import { typescript } from "./extends/typescript.mjs";
|
|
|
10
10
|
import { yaml } from "./extends/yaml.mjs";
|
|
11
11
|
import "./eslint-typegen.mjs";
|
|
12
12
|
const vdustr = (options, ...userConfigs) => {
|
|
13
|
-
let config = antfu(
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
},
|
|
19
|
-
...userConfigs
|
|
20
|
-
);
|
|
13
|
+
let config = antfu({
|
|
14
|
+
// We use `prettier`.
|
|
15
|
+
stylistic: false,
|
|
16
|
+
...options
|
|
17
|
+
});
|
|
21
18
|
javascript(config, options?.javascriptExtends);
|
|
22
19
|
imports(config, options?.importsExtends);
|
|
23
20
|
typescript(config, options?.typescriptExtends);
|
|
@@ -62,6 +59,7 @@ const vdustr = (options, ...userConfigs) => {
|
|
|
62
59
|
prettier(...!prettierOptions ? [] : [prettierOptions])
|
|
63
60
|
);
|
|
64
61
|
}
|
|
62
|
+
config.append(...userConfigs);
|
|
65
63
|
return config;
|
|
66
64
|
};
|
|
67
65
|
export { vdustr };
|
package/dist/globs.js
CHANGED
|
@@ -8,4 +8,4 @@ const GLOB_CODE_WORKSPACE = exports.GLOB_CODE_WORKSPACE = "**/*.code-workspace";
|
|
|
8
8
|
const GLOB_PACKAGE_JSON = exports.GLOB_PACKAGE_JSON = "**/package.json";
|
|
9
9
|
const GLOB_PNPM_WORKSPACE_YAML = exports.GLOB_PNPM_WORKSPACE_YAML = "**/pnpm-workspace.y?(a)ml";
|
|
10
10
|
const GLOB_CSPELL_JSON = exports.GLOB_CSPELL_JSON = "**/cspell.json";
|
|
11
|
-
const GLOB_CONFIG_JS = exports.GLOB_CONFIG_JS = "**/*.config.?([cm])
|
|
11
|
+
const GLOB_CONFIG_JS = exports.GLOB_CONFIG_JS = "**/*.config.?([cm])[jt]s";
|
package/dist/vdustr.js
CHANGED
|
@@ -21,7 +21,7 @@ const vdustr = (options, ...userConfigs) => {
|
|
|
21
21
|
// We use `prettier`.
|
|
22
22
|
stylistic: false,
|
|
23
23
|
...options
|
|
24
|
-
}
|
|
24
|
+
});
|
|
25
25
|
(0, _javascript.javascript)(config, options?.javascriptExtends);
|
|
26
26
|
(0, _imports.imports)(config, options?.importsExtends);
|
|
27
27
|
(0, _typescript.typescript)(config, options?.typescriptExtends);
|
|
@@ -58,6 +58,7 @@ const vdustr = (options, ...userConfigs) => {
|
|
|
58
58
|
const prettierOptions = typeof options?.prettier !== "object" ? void 0 : options.prettier;
|
|
59
59
|
config = config.append((0, _prettier.prettier)(...(!prettierOptions ? [] : [prettierOptions])));
|
|
60
60
|
}
|
|
61
|
+
config.append(...userConfigs);
|
|
61
62
|
return config;
|
|
62
63
|
};
|
|
63
64
|
exports.vdustr = vdustr;
|