@vp-tw/eslint-config 0.0.12 → 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.
@@ -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
- // We use `prettier`.
16
- stylistic: false,
17
- ...options
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/vdustr.js CHANGED
@@ -21,7 +21,7 @@ const vdustr = (options, ...userConfigs) => {
21
21
  // We use `prettier`.
22
22
  stylistic: false,
23
23
  ...options
24
- }, ...userConfigs);
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vp-tw/eslint-config",
3
- "version": "0.0.12",
3
+ "version": "0.0.13",
4
4
  "description": "ViPro's ESLint configuration",
5
5
  "homepage": "https://github.com/vdustr/eslint-config",
6
6
  "author": {