eslint-plugin-baseline-js 0.7.3 → 0.7.5
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/README.md +6 -1
- package/dist/index.mjs +554 -436
- package/package.json +7 -1
package/README.md
CHANGED
|
@@ -26,7 +26,7 @@ This plugin delegates detection to eslint-plugin-es-x and ESLint core (plus a fe
|
|
|
26
26
|
- yarn: `yarn add -D eslint-plugin-baseline-js`
|
|
27
27
|
|
|
28
28
|
Recommended
|
|
29
|
-
- ESLint >=
|
|
29
|
+
- ESLint >= 9.29.0 and < 11 (Flat Config)
|
|
30
30
|
|
|
31
31
|
## Quick Start (Flat Config)
|
|
32
32
|
|
|
@@ -115,6 +115,11 @@ export default [
|
|
|
115
115
|
|
|
116
116
|
|
|
117
117
|
### Demo
|
|
118
|
+
|
|
119
|
+
For type-level checks too, pair it with [`typescript-baseline-lib`](https://github.com/3ru/TypeScript-Baseline-lib-generator), which gives TypeScript a built-in lib selected by Baseline data.
|
|
120
|
+
Try the [demo](https://github.com/3ru/baseline-checks-demo) to check JavaScript APIs with TypeScript and ESLint in your editor and CI.
|
|
121
|
+
Its [example PR](https://github.com/3ru/baseline-checks-demo/pull/1) changes one line to use `Set.prototype.difference()` and intentionally fails both checks.
|
|
122
|
+
|
|
118
123
|
<img width="963" height="192" alt="getYear is deprecated" src="https://github.com/user-attachments/assets/e04e4a5c-c104-4945-96d6-889a47b7bcde" />
|
|
119
124
|
|
|
120
125
|
|