@peerigon/configs 4.4.0 → 4.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/CHANGELOG.md CHANGED
@@ -1,3 +1,15 @@
1
+ ## [4.4.2](https://github.com/peerigon/configs/compare/v4.4.1...v4.4.2) (2025-03-26)
2
+
3
+ ### Bug Fixes
4
+
5
+ - **eslint:** Ignore noDefaultExport in config files ([ae8c3ea](https://github.com/peerigon/configs/commit/ae8c3ea86066d5cde34eac0edd5415dd617a4e43))
6
+
7
+ ## [4.4.1](https://github.com/peerigon/configs/compare/v4.4.0...v4.4.1) (2025-03-24)
8
+
9
+ ### Bug Fixes
10
+
11
+ - **typescript:** Turn lib configs into config partials ([295e617](https://github.com/peerigon/configs/commit/295e61777b9622ecf887c956c4539d8a027790b6))
12
+
1
13
  # [4.4.0](https://github.com/peerigon/configs/compare/v4.3.0...v4.4.0) (2025-03-24)
2
14
 
3
15
  ### Features
@@ -5,4 +5,5 @@ export namespace globPatterns {
5
5
  let jsx: string[];
6
6
  let typescriptJsx: string[];
7
7
  let tests: string[];
8
+ let configs: string[];
8
9
  }
@@ -8,4 +8,5 @@ export const globPatterns = {
8
8
  "**/*.{test,spec,stories}.{js,mjs,cjs,ts,cts,mts,jsx,tsx}",
9
9
  "**/test{s,}/**/*.{js,mjs,cjs,ts,cts,mts,jsx,tsx}",
10
10
  ],
11
+ configs: ["**/*.config.*", "**/.eslintrc.*", "**/.prettierrc.*"],
11
12
  };
@@ -1,8 +1,9 @@
1
+ import { globPatterns } from "../lib/glob-patterns.js";
1
2
  /** @type {import("eslint").Linter.Config[]} */
2
3
  export const noDefaultExport = [
3
4
  {
4
5
  // Config files often have a single default export
5
- ignores: ["*.config.{js,ts}"],
6
+ ignores: globPatterns.configs,
6
7
  rules: {
7
8
  "no-restricted-syntax": [
8
9
  "error",
@@ -1,5 +1,4 @@
1
1
  {
2
- "extends": "./base.json",
3
2
  "compilerOptions": {
4
3
  "target": "es2022",
5
4
  "lib": ["es2022"],
@@ -1,5 +1,4 @@
1
1
  {
2
- "extends": "./base.json",
3
2
  "compilerOptions": {
4
3
  "target": "es2022",
5
4
  "lib": ["es2022"],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@peerigon/configs",
3
- "version": "4.4.0",
3
+ "version": "4.4.2",
4
4
  "description": "Configs for ESLint, Prettier, TypeScript & friends",
5
5
  "keywords": [
6
6
  "eslint",