@enormora/eslint-config-base-with-prettier 0.0.27 → 0.0.29
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 +2 -2
- package/readme.md +5 -5
- package/sbom.cdx.json +10 -10
package/package.json
CHANGED
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"eslint-plugin-package-json": "1.7.1",
|
|
25
25
|
"eslint-plugin-prettier": "5.5.6",
|
|
26
26
|
"eslint-plugin-promise": "7.3.0",
|
|
27
|
-
"eslint-plugin-regexp": "3.
|
|
27
|
+
"eslint-plugin-regexp": "3.2.0",
|
|
28
28
|
"eslint-plugin-sonarjs": "4.2.0",
|
|
29
29
|
"eslint-plugin-unicorn": "73.0.0",
|
|
30
30
|
"jsonc-eslint-parser": "3.3.0"
|
|
@@ -54,5 +54,5 @@
|
|
|
54
54
|
"./rule-sets/restricted-syntax.js"
|
|
55
55
|
],
|
|
56
56
|
"type": "module",
|
|
57
|
-
"version": "0.0.
|
|
57
|
+
"version": "0.0.29"
|
|
58
58
|
}
|
package/readme.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
Drop-in alternative to [`@enormora/eslint-config-base`](../base/base.md) that formats with
|
|
6
6
|
[prettier](https://prettier.io/) instead of dprint.
|
|
7
7
|
|
|
8
|
-
This preset is itself a base preset
|
|
8
|
+
This preset is itself a base preset. Pick this one **or** `@enormora/eslint-config-base`, never both. It contains the
|
|
9
9
|
same set of lint rules as the regular base preset, including the semantic markdown linting stack
|
|
10
10
|
(`@eslint/markdown`, `eslint-plugin-markdown-links`, `eslint-plugin-markdown-preferences`) and the dedicated
|
|
11
11
|
`package.json` linting stack (`eslint-plugin-package-json`, `eslint-plugin-json-schema-validator`). The only
|
|
@@ -75,7 +75,7 @@ ESLint explicitly. The recommended lint script is therefore:
|
|
|
75
75
|
|
|
76
76
|
### Customizing or disabling the formatter on a file family
|
|
77
77
|
|
|
78
|
-
Because the blocks are plain flat config, override them the same way as any other ESLint config
|
|
78
|
+
Because the blocks are plain flat config, override them the same way as any other ESLint config. Add a later block
|
|
79
79
|
whose `files` glob overlaps the one you want to change. Later blocks win.
|
|
80
80
|
|
|
81
81
|
Disable prettier formatting for JSON entirely:
|
|
@@ -99,7 +99,7 @@ export default [
|
|
|
99
99
|
### Tweaking markdown lint rules
|
|
100
100
|
|
|
101
101
|
To override any markdown rule (from `@eslint/markdown`, `markdown-links`, or `markdown-preferences`), add a later
|
|
102
|
-
block
|
|
102
|
+
block with the same pattern as for any other ESLint rule:
|
|
103
103
|
|
|
104
104
|
```javascript
|
|
105
105
|
export default [
|
|
@@ -119,5 +119,5 @@ export default [
|
|
|
119
119
|
## Limitations
|
|
120
120
|
|
|
121
121
|
- **No TOML coverage.** Prettier does not natively format `.toml` files. If you need TOML formatting, either use
|
|
122
|
-
|
|
123
|
-
|
|
122
|
+
[`@enormora/eslint-config-base`](../base/base.md) (which formats TOML via dprint) or wire your own prettier plugin
|
|
123
|
+
for TOML.
|
package/sbom.cdx.json
CHANGED
|
@@ -9,16 +9,16 @@
|
|
|
9
9
|
{
|
|
10
10
|
"type": "application",
|
|
11
11
|
"name": "packtory",
|
|
12
|
-
"version": "0.0.
|
|
12
|
+
"version": "0.0.97"
|
|
13
13
|
}
|
|
14
14
|
]
|
|
15
15
|
},
|
|
16
16
|
"component": {
|
|
17
17
|
"type": "library",
|
|
18
18
|
"name": "@enormora/eslint-config-base-with-prettier",
|
|
19
|
-
"version": "0.0.
|
|
20
|
-
"bom-ref": "pkg:npm/@enormora/eslint-config-base-with-prettier@0.0.
|
|
21
|
-
"purl": "pkg:npm/@enormora/eslint-config-base-with-prettier@0.0.
|
|
19
|
+
"version": "0.0.29",
|
|
20
|
+
"bom-ref": "pkg:npm/@enormora/eslint-config-base-with-prettier@0.0.29",
|
|
21
|
+
"purl": "pkg:npm/@enormora/eslint-config-base-with-prettier@0.0.29"
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
24
|
"components": [
|
|
@@ -246,15 +246,15 @@
|
|
|
246
246
|
{
|
|
247
247
|
"type": "library",
|
|
248
248
|
"name": "eslint-plugin-regexp",
|
|
249
|
-
"version": "3.
|
|
250
|
-
"bom-ref": "pkg:npm/eslint-plugin-regexp@3.
|
|
249
|
+
"version": "3.2.0",
|
|
250
|
+
"bom-ref": "pkg:npm/eslint-plugin-regexp@3.2.0",
|
|
251
251
|
"scope": "required",
|
|
252
252
|
"licenses": [
|
|
253
253
|
{
|
|
254
254
|
"expression": "MIT"
|
|
255
255
|
}
|
|
256
256
|
],
|
|
257
|
-
"purl": "pkg:npm/eslint-plugin-regexp@3.
|
|
257
|
+
"purl": "pkg:npm/eslint-plugin-regexp@3.2.0"
|
|
258
258
|
},
|
|
259
259
|
{
|
|
260
260
|
"type": "library",
|
|
@@ -314,7 +314,7 @@
|
|
|
314
314
|
"ref": "pkg:npm/@cspell/eslint-plugin@10.0.1"
|
|
315
315
|
},
|
|
316
316
|
{
|
|
317
|
-
"ref": "pkg:npm/@enormora/eslint-config-base-with-prettier@0.0.
|
|
317
|
+
"ref": "pkg:npm/@enormora/eslint-config-base-with-prettier@0.0.29",
|
|
318
318
|
"dependsOn": [
|
|
319
319
|
"pkg:npm/@cspell/eslint-plugin@10.0.1",
|
|
320
320
|
"pkg:npm/@eslint-community/eslint-plugin-eslint-comments@4.7.2",
|
|
@@ -333,7 +333,7 @@
|
|
|
333
333
|
"pkg:npm/eslint-plugin-package-json@1.7.1",
|
|
334
334
|
"pkg:npm/eslint-plugin-prettier@5.5.6",
|
|
335
335
|
"pkg:npm/eslint-plugin-promise@7.3.0",
|
|
336
|
-
"pkg:npm/eslint-plugin-regexp@3.
|
|
336
|
+
"pkg:npm/eslint-plugin-regexp@3.2.0",
|
|
337
337
|
"pkg:npm/eslint-plugin-sonarjs@4.2.0",
|
|
338
338
|
"pkg:npm/eslint-plugin-unicorn@73.0.0",
|
|
339
339
|
"pkg:npm/eslint@%5E10.0.0",
|
|
@@ -389,7 +389,7 @@
|
|
|
389
389
|
"ref": "pkg:npm/eslint-plugin-promise@7.3.0"
|
|
390
390
|
},
|
|
391
391
|
{
|
|
392
|
-
"ref": "pkg:npm/eslint-plugin-regexp@3.
|
|
392
|
+
"ref": "pkg:npm/eslint-plugin-regexp@3.2.0"
|
|
393
393
|
},
|
|
394
394
|
{
|
|
395
395
|
"ref": "pkg:npm/eslint-plugin-sonarjs@4.2.0"
|