@enormora/eslint-config-base-with-prettier 0.0.28 → 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 +1 -1
- package/readme.md +5 -5
- package/sbom.cdx.json +5 -5
package/package.json
CHANGED
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": [
|
|
@@ -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",
|