@vida0905/eslint-config 2.4.1 → 2.4.2

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/cli/index.js CHANGED
@@ -6,7 +6,7 @@ import path from "node:path";
6
6
  import { green } from "ansis";
7
7
 
8
8
  //#region package.json
9
- var version = "2.4.1";
9
+ var version = "2.4.2";
10
10
 
11
11
  //#endregion
12
12
  //#region src/cli/constants.ts
package/dist/index.js CHANGED
@@ -76,8 +76,10 @@ function deepMerge(target, source) {
76
76
  //#endregion
77
77
  //#region src/index.ts
78
78
  function defineConfig(options = {}, ...userConfigs) {
79
- const configs = [deMorgan()];
80
- if (isPackageExists("nuxt")) configs.push(nuxt());
79
+ const { deMorgan: enableDeMorgan, nuxt: enableNuxt = isPackageExists("nuxt") } = options;
80
+ const configs = [];
81
+ if (enableDeMorgan) configs.push(deMorgan());
82
+ if (enableNuxt) configs.push(nuxt());
81
83
  const antfuConfig = {
82
84
  stylistic: {
83
85
  indent: 2,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vida0905/eslint-config",
3
3
  "type": "module",
4
- "version": "2.4.1",
4
+ "version": "2.4.2",
5
5
  "description": "Vida Xie's ESLint Config",
6
6
  "author": "Vida Xie <vida_2020@163.com> (https://github.com/9romise/)",
7
7
  "license": "MIT",