eslint-plugin-baseline-js 0.7.4 → 0.7.6

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.
Files changed (3) hide show
  1. package/README.md +8 -0
  2. package/dist/index.mjs +19873 -553
  3. package/package.json +16 -9
package/README.md CHANGED
@@ -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
 
@@ -126,6 +131,7 @@ export default [
126
131
  - Maps web‑features IDs to underlying rules (prefer `eslint-plugin-es-x` / ESLint core; custom rules only when necessary).
127
132
  3. Resolution → `src/baseline/resolve.ts`
128
133
  - Classifies “beyond baseline” by bucket (`high/low/false → widely/newly/limited`) or year.
134
+ - Web API and JS builtin checks use the matched API member's own Baseline status from web‑features `status.by_compat_key` when it differs from the feature's, so `URL.parse()` is newer than the `url` feature.
129
135
 
130
136
  ## Coverage
131
137
 
@@ -146,6 +152,8 @@ and shows which ones are currently mapped by this plugin.
146
152
 
147
153
  ## Use with [oxlint](https://oxc.rs/)
148
154
 
155
+ See [Linter compatibility](https://baselinejs.vercel.app/docs/compatibility) for versioned Baseline check results under ESLint, Oxlint, and Bun.
156
+
149
157
  Runs as an [oxlint JS plugin](https://oxc.rs/docs/guide/usage/linter/js-plugins). Just drop it into `.oxlintrc.json`:
150
158
 
151
159
  ```jsonc