@brybrant/eslint-config 1.1.0 → 1.2.0

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.
@@ -1,5 +1,5 @@
1
1
  import { ConfigObject, ConfigWithExtends } from "@eslint/config-helpers";
2
- //#region eslint.config.d.ts
2
+ //#region eslint.d.ts
3
3
  /**
4
4
  * ## ESLint Config Function
5
5
  *
@@ -11,8 +11,8 @@ import { ConfigObject, ConfigWithExtends } from "@eslint/config-helpers";
11
11
  * 3. **ESLint config object(s)** *(rest parameter)*
12
12
  * 4. [my Prettier config](https://www.npmjs.com/@brybrant/prettier-config)
13
13
  * 5. {@link jsdocConfigs JSDoc ESLint config}
14
- *
15
14
  * @param configs - [ESLint config object(s)](https://eslint.org/docs/latest/use/configure/configuration-files#configuration-objects)
15
+ * @returns ESLint config array
16
16
  */
17
17
  declare const eslintConfig: (...configs: ConfigWithExtends[]) => ConfigObject[];
18
18
  //#endregion
@@ -5,7 +5,7 @@ import eslintPluginJSDoc from "eslint-plugin-jsdoc";
5
5
  import eslintPluginPrettier from "eslint-plugin-prettier/recommended";
6
6
  import tseslint from "typescript-eslint";
7
7
  import prettierConfig from "@brybrant/prettier-config";
8
- //#region eslint.config.ts
8
+ //#region eslint.ts
9
9
  /** https://typescript-eslint.io/rules/ */
10
10
  const tseslintConfig = {
11
11
  extends: tseslint.configs.strictTypeChecked,
@@ -69,12 +69,12 @@ const jsdocConfigs = [(
69
69
  * 3. **ESLint config object(s)** *(rest parameter)*
70
70
  * 4. [my Prettier config](https://www.npmjs.com/@brybrant/prettier-config)
71
71
  * 5. {@link jsdocConfigs JSDoc ESLint config}
72
- *
73
72
  * @param configs - [ESLint config object(s)](https://eslint.org/docs/latest/use/configure/configuration-files#configuration-objects)
73
+ * @returns ESLint config array
74
74
  */
75
75
  const eslintConfig = (...configs) => {
76
76
  return defineConfig([
77
- globalIgnores(["./dist/**/*"]),
77
+ globalIgnores(["**/dist/**/*"]),
78
78
  js.configs.recommended,
79
79
  tseslintConfig,
80
80
  ...configs,
package/package.json CHANGED
@@ -2,11 +2,11 @@
2
2
  "name": "@brybrant/eslint-config",
3
3
  "author": "brybrant",
4
4
  "license": "GPL-3.0-only",
5
- "version": "1.1.0",
5
+ "version": "1.2.0",
6
6
  "type": "module",
7
- "module": "./dist/eslint.config.js",
8
- "types": "./dist/eslint.config.d.ts",
9
- "exports": "./dist/eslint.config.js",
7
+ "module": "./dist/eslint.js",
8
+ "types": "./dist/eslint.d.ts",
9
+ "exports": "./dist/eslint.js",
10
10
  "files": [
11
11
  "dist"
12
12
  ],