@enormora/eslint-config-typescript 0.0.40 → 0.0.42

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/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "@typescript-eslint/eslint-plugin": "8.60.1",
8
8
  "@typescript-eslint/parser": "8.60.1",
9
9
  "eslint-import-resolver-typescript": "4.4.5",
10
- "eslint-plugin-functional": "9.0.5",
10
+ "eslint-plugin-functional": "10.0.0",
11
11
  "eslint-plugin-import-x": "4.16.2",
12
12
  "eslint-plugin-perfectionist": "5.9.0"
13
13
  },
@@ -20,12 +20,12 @@
20
20
  "license": "MIT",
21
21
  "name": "@enormora/eslint-config-typescript",
22
22
  "peerDependencies": {
23
- "@enormora/eslint-config-base": "0.0.35"
23
+ "@enormora/eslint-config-base": "0.0.36"
24
24
  },
25
25
  "repository": {
26
26
  "type": "git",
27
27
  "url": "git://github.com/enormora/eslint-config.git"
28
28
  },
29
29
  "type": "module",
30
- "version": "0.0.40"
30
+ "version": "0.0.42"
31
31
  }
@@ -13,9 +13,12 @@ export const noTsEnumDeclarationRestriction = {
13
13
  message: 'Use a string union type instead'
14
14
  };
15
15
 
16
- const namedReferenceIgnorePattern =
17
- String.raw`^(?!(?:Array|ReadonlyArray|Map|ReadonlyMap|Set|ReadonlySet|Record|Readonly)\b)` +
18
- String.raw`[A-Z][\w$]*(?:\.[A-Z][\w$]*)*(?:<.*>)?$`;
16
+ const namedReferenceTypePrefix = String.raw`(?:(?:keyof)?typeof)?`;
17
+ const mutableContainerLookahead = String
18
+ .raw`(?!(?:Array|ReadonlyArray|Map|ReadonlyMap|Set|ReadonlySet|Record|Readonly)\b)`;
19
+ const namedReferenceBody = String.raw`[A-Z][\w$]*(?:\.[A-Z][\w$]*)*(?:<.*>)?`;
20
+ const namedReferenceAtom = `${namedReferenceTypePrefix}${mutableContainerLookahead}${namedReferenceBody}`;
21
+ const namedReferenceIgnorePattern = String.raw`^${namedReferenceAtom}(?:[|&]${namedReferenceAtom})*$`;
19
22
 
20
23
  const functionLikeNodes = [
21
24
  'FunctionDeclaration',
@@ -481,6 +484,7 @@ export const typescriptConfig = {
481
484
  ]
482
485
  }
483
486
  ],
487
+ ignoreTypePattern: [ namedReferenceIgnorePattern ],
484
488
  ignoreInterfaces: false
485
489
  }
486
490
  ],
package/sbom.cdx.json CHANGED
@@ -16,24 +16,24 @@
16
16
  "component": {
17
17
  "type": "library",
18
18
  "name": "@enormora/eslint-config-typescript",
19
- "version": "0.0.40",
20
- "bom-ref": "pkg:npm/@enormora/eslint-config-typescript@0.0.40",
21
- "purl": "pkg:npm/@enormora/eslint-config-typescript@0.0.40"
19
+ "version": "0.0.42",
20
+ "bom-ref": "pkg:npm/@enormora/eslint-config-typescript@0.0.42",
21
+ "purl": "pkg:npm/@enormora/eslint-config-typescript@0.0.42"
22
22
  }
23
23
  },
24
24
  "components": [
25
25
  {
26
26
  "type": "library",
27
27
  "name": "@enormora/eslint-config-base",
28
- "version": "0.0.35",
29
- "bom-ref": "pkg:npm/@enormora/eslint-config-base@0.0.35",
28
+ "version": "0.0.36",
29
+ "bom-ref": "pkg:npm/@enormora/eslint-config-base@0.0.36",
30
30
  "scope": "optional",
31
31
  "licenses": [
32
32
  {
33
33
  "expression": "MIT"
34
34
  }
35
35
  ],
36
- "purl": "pkg:npm/@enormora/eslint-config-base@0.0.35"
36
+ "purl": "pkg:npm/@enormora/eslint-config-base@0.0.36"
37
37
  },
38
38
  {
39
39
  "type": "library",
@@ -77,15 +77,15 @@
77
77
  {
78
78
  "type": "library",
79
79
  "name": "eslint-plugin-functional",
80
- "version": "9.0.5",
81
- "bom-ref": "pkg:npm/eslint-plugin-functional@9.0.5",
80
+ "version": "10.0.0",
81
+ "bom-ref": "pkg:npm/eslint-plugin-functional@10.0.0",
82
82
  "scope": "required",
83
83
  "licenses": [
84
84
  {
85
85
  "expression": "MIT"
86
86
  }
87
87
  ],
88
- "purl": "pkg:npm/eslint-plugin-functional@9.0.5"
88
+ "purl": "pkg:npm/eslint-plugin-functional@10.0.0"
89
89
  },
90
90
  {
91
91
  "type": "library",
@@ -116,16 +116,16 @@
116
116
  ],
117
117
  "dependencies": [
118
118
  {
119
- "ref": "pkg:npm/@enormora/eslint-config-base@0.0.35"
119
+ "ref": "pkg:npm/@enormora/eslint-config-base@0.0.36"
120
120
  },
121
121
  {
122
- "ref": "pkg:npm/@enormora/eslint-config-typescript@0.0.40",
122
+ "ref": "pkg:npm/@enormora/eslint-config-typescript@0.0.42",
123
123
  "dependsOn": [
124
- "pkg:npm/@enormora/eslint-config-base@0.0.35",
124
+ "pkg:npm/@enormora/eslint-config-base@0.0.36",
125
125
  "pkg:npm/@typescript-eslint/eslint-plugin@8.60.1",
126
126
  "pkg:npm/@typescript-eslint/parser@8.60.1",
127
127
  "pkg:npm/eslint-import-resolver-typescript@4.4.5",
128
- "pkg:npm/eslint-plugin-functional@9.0.5",
128
+ "pkg:npm/eslint-plugin-functional@10.0.0",
129
129
  "pkg:npm/eslint-plugin-import-x@4.16.2",
130
130
  "pkg:npm/eslint-plugin-perfectionist@5.9.0"
131
131
  ]
@@ -140,7 +140,7 @@
140
140
  "ref": "pkg:npm/eslint-import-resolver-typescript@4.4.5"
141
141
  },
142
142
  {
143
- "ref": "pkg:npm/eslint-plugin-functional@9.0.5"
143
+ "ref": "pkg:npm/eslint-plugin-functional@10.0.0"
144
144
  },
145
145
  {
146
146
  "ref": "pkg:npm/eslint-plugin-import-x@4.16.2"