@shayanthenerd/eslint-config 0.27.0 → 0.27.1

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.mts CHANGED
@@ -1,43 +1,42 @@
1
1
  import { Options } from "./types/index.mjs";
2
2
  import { Linter } from "eslint";
3
-
4
3
  //#region src/index.d.ts
5
4
  /** Valid argument combinations for `defineConfig`. */
6
5
  type DefineConfigArguments = [] | [options: Options] | [configs: Linter.Config[]] | [options: Options, configs: Linter.Config[]];
7
6
  /**
8
- * Define your ESLint configuration based on the provided options and/or custom Flat Config Objects.
9
- *
10
- * @param {...DefineConfigArguments} args The configuration options and/or custom Flat Config objects.
11
- * @returns {Linter.Config[]} The merged ESLint configuration array
12
- *
13
- * @example
14
- * defineConfig();
15
- * // or
16
- * defineConfig({ autoDetectDeps: 'verbose' });
17
- * // or
18
- * defineConfig([
19
- * {
20
- * name: 'custom',
21
- * rules: {
22
- * 'no-console': 'error',
23
- * },
24
- * },
25
- * { ... },
26
- * ]);
27
- * // or
28
- * defineConfig(
29
- * { autoDetectDeps: 'verbose' },
30
- * [
31
- * {
32
- * name: 'custom',
33
- * rules: {
34
- * 'no-console': 'error',
35
- * },
36
- * },
37
- * { ... },
38
- * ],
39
- * );
40
- */
7
+ * Define your ESLint configuration based on the provided options and/or custom Flat Config Objects.
8
+ *
9
+ * @param {...DefineConfigArguments} args The configuration options and/or custom Flat Config objects.
10
+ * @returns {Linter.Config[]} The merged ESLint configuration array
11
+ *
12
+ * @example
13
+ * defineConfig();
14
+ * // or
15
+ * defineConfig({ autoDetectDeps: 'verbose' });
16
+ * // or
17
+ * defineConfig([
18
+ * {
19
+ * name: 'custom',
20
+ * rules: {
21
+ * 'no-console': 'error',
22
+ * },
23
+ * },
24
+ * { ... },
25
+ * ]);
26
+ * // or
27
+ * defineConfig(
28
+ * { autoDetectDeps: 'verbose' },
29
+ * [
30
+ * {
31
+ * name: 'custom',
32
+ * rules: {
33
+ * 'no-console': 'error',
34
+ * },
35
+ * },
36
+ * { ... },
37
+ * ],
38
+ * );
39
+ */
41
40
  declare function defineConfig(...args: DefineConfigArguments): Linter.Config[];
42
41
  //#endregion
43
42
  export { defineConfig };
@@ -1,5 +1,4 @@
1
1
  import { Config } from "prettier";
2
-
3
2
  //#region src/prettier.config.d.ts
4
3
  declare const prettierConfig: Config;
5
4
  //#endregion