@peerigon/configs 15.0.0 → 15.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.
@@ -81,6 +81,7 @@ globs: **/*.js, **/*.ts, **/*.mjs, **/*.cjs, **/*.mts, **/*.cts
81
81
 
82
82
  - Constructor **must** be at the top of the class
83
83
  - Then properties: public first, then private; order by importance in relation to the class purpose
84
+ - Public class properties should be `readonly` when the value is not reassigned after construction or is only changed within the class. If the value needs internal mutation but should stay stable to consumers, expose it via a getter backed by a private property.
84
85
  - Then methods: public first, then private; order by importance in relation to the class purpose
85
86
 
86
87
  ## Types
@@ -3,8 +3,12 @@ import { globPatterns } from "../lib/glob-patterns.js";
3
3
  /** @type {import("eslint").Linter.Config[]} */
4
4
  export const noDefaultExport = [
5
5
  {
6
- // Config files often have a single default export
7
- ignores: globPatterns.configs,
6
+ ignores: [
7
+ // Config files often have a single default export
8
+ ...globPatterns.configs,
9
+ // d.ts files often contain default exports
10
+ ...globPatterns.typescriptAmbient,
11
+ ],
8
12
  rules: {
9
13
  "no-restricted-syntax": [
10
14
  "error",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@peerigon/configs",
3
- "version": "15.0.0",
3
+ "version": "15.2.0",
4
4
  "description": "Configs for ESLint, Prettier, TypeScript & friends",
5
5
  "keywords": [
6
6
  "eslint",
@@ -61,7 +61,7 @@
61
61
  "prepare": "husky",
62
62
  "prepublishOnly": "npm run build",
63
63
  "release": "semantic-release",
64
- "test": "run-p test:*",
64
+ "test": "run-p test:* test:presets:* test:rules:* test:styles:*",
65
65
  "test:exports": "node package.json.test.js",
66
66
  "test:format": "prettier --check .",
67
67
  "test:lint": "eslint --max-warnings 0 .",