@debbl/eslint-config 1.0.0-beta.7 → 1.0.0-beta.8

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.d.ts CHANGED
@@ -16,7 +16,7 @@ interface OptionsConfig {
16
16
  *
17
17
  * Passing an object to enable TypeScript Language Server support.
18
18
  *
19
- * @default auto-detect based on the dependencies
19
+ * @default false
20
20
  */
21
21
  ts?: boolean | OptionsTypeScriptWithLanguageServer;
22
22
  /**
@@ -28,27 +28,33 @@ interface OptionsConfig {
28
28
  /**
29
29
  * Enable Vue support.
30
30
  *
31
- * @default auto-detect based on the dependencies
31
+ * @default false
32
32
  */
33
33
  vue?: boolean;
34
34
  /**
35
35
  * Enable React support.
36
36
  *
37
- * @default auto-detect based on the dependencies
37
+ * @default false
38
38
  */
39
39
  react?: boolean;
40
40
  /**
41
41
  * Enable Solid support.
42
42
  *
43
- * @default auto-detect based on the dependencies
43
+ * @default false
44
44
  */
45
45
  solid?: boolean;
46
46
  /**
47
47
  * Enable TailwindCSS support.
48
48
  *
49
- * @default auto-detect based on the dependencies
49
+ * @default false
50
50
  */
51
51
  tailwindcss?: boolean;
52
+ /**
53
+ * Enable TailwindCSS support.
54
+ *
55
+ * @default true
56
+ */
57
+ prettier?: boolean;
52
58
  /**
53
59
  * Enable JSONC support.
54
60
  *
package/dist/index.js CHANGED
@@ -43,6 +43,7 @@ function config(options = {}, ...userConfigs) {
43
43
  const enableSolid = options.solid;
44
44
  const enableTailwindcss = options.tailwindcss;
45
45
  const enableTypeScript = options.ts;
46
+ const enablePrettier = options.prettier ?? true;
46
47
  const configs = [
47
48
  ignores,
48
49
  js({ isInEditor }),
@@ -73,15 +74,11 @@ function config(options = {}, ...userConfigs) {
73
74
  );
74
75
  }
75
76
  }
76
- if (enableVue)
77
- configs.push(vue({ ts: !!enableTypeScript }));
78
- if (enableReact)
79
- configs.push(react({ ts: !enableTypeScript }));
80
- if (enableSolid)
81
- configs.push(solid());
82
- if (enableTailwindcss)
83
- configs.push(tailwindcss());
84
- configs.push(prettier());
77
+ enableVue && configs.push(vue({ ts: !!enableTypeScript }));
78
+ enableReact && configs.push(react({ ts: !enableTypeScript }));
79
+ enableSolid && configs.push(solid());
80
+ enableTailwindcss && configs.push(tailwindcss());
81
+ enablePrettier && configs.push(prettier());
85
82
  return combine(...configs, ...userConfigs);
86
83
  }
87
84
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@debbl/eslint-config",
3
3
  "type": "module",
4
- "version": "1.0.0-beta.7",
4
+ "version": "1.0.0-beta.8",
5
5
  "description": "",
6
6
  "author": "Debbl <me@aiwan.run> (https://github.com/Debbl/)",
7
7
  "license": "MIT",
@@ -17,13 +17,13 @@
17
17
  "eslint": ">=8.24.0"
18
18
  },
19
19
  "dependencies": {
20
- "@debbl/eslint-config-basic": "1.0.0-beta.7",
21
- "@debbl/eslint-config-tailwindcss": "1.0.0-beta.7",
22
- "@debbl/eslint-config-prettier": "1.0.0-beta.7",
23
- "@debbl/eslint-config-solid": "1.0.0-beta.7",
24
- "@debbl/eslint-config-ts": "1.0.0-beta.7",
25
- "@debbl/eslint-config-react": "1.0.0-beta.7",
26
- "@debbl/eslint-config-vue": "1.0.0-beta.7"
20
+ "@debbl/eslint-config-tailwindcss": "1.0.0-beta.8",
21
+ "@debbl/eslint-config-react": "1.0.0-beta.8",
22
+ "@debbl/eslint-config-prettier": "1.0.0-beta.8",
23
+ "@debbl/eslint-config-solid": "1.0.0-beta.8",
24
+ "@debbl/eslint-config-ts": "1.0.0-beta.8",
25
+ "@debbl/eslint-config-vue": "1.0.0-beta.8",
26
+ "@debbl/eslint-config-basic": "1.0.0-beta.8"
27
27
  },
28
28
  "devDependencies": {
29
29
  "eslint": "^8.50.0"