eslint-plugin-baseline-js 0.4.1 → 0.4.2

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 CHANGED
@@ -141,7 +141,7 @@ and shows which ones are currently mapped by this plugin.
141
141
  | Option | Type | Default | Description |
142
142
  | ---------------------- | ------------------------- | ---------- | ----------- |
143
143
  | `baseline` | `widely`, `newly`, `number`, `widely` | Baseline level or year (alias: `available`). |
144
- | `ignoreFeatures` | `string[]` | — | Skip specific web‑features by ID (supports regex `/.../`). |
144
+ | `ignoreFeatures` | `string[]` | — | Skip specific web‑features by ID (supports regex `/.../`) across syntax delegates and Web API/JS builtin detection. |
145
145
  | `ignoreNodeTypes` | `string[]` | — | Suppress reports by ESTree `node.type` (supports regex `/.../`). |
146
146
 
147
147
  ## Baseline for HTML and CSS
@@ -169,4 +169,4 @@ MIT
169
169
  [jsdocs-src]: https://img.shields.io/badge/jsdocs-reference-080f12?style=flat&colorA=080f12&colorB=1ea446
170
170
  [jsdocs-href]: https://www.jsdocs.io/package/eslint-plugin-baseline-js
171
171
  [license-src]: https://img.shields.io/github/license/3ru/eslint-plugin-baseline-js.svg?style=flat&colorA=080f12&colorB=1ea446
172
- [license-href]: https://github.com/3ru/eslint-plugin-baseline-js/blob/main/LICENSE
172
+ [license-href]: https://github.com/3ru/eslint-plugin-baseline-js/blob/main/LICENSE
package/dist/index.cjs CHANGED
@@ -57029,6 +57029,7 @@ const rule = {
57029
57029
  webApis: includeWebApis,
57030
57030
  jsBuiltins: includeJsBuiltins
57031
57031
  });
57032
+ if (matchIgnoreFeature) descriptors$2 = descriptors$2.filter((d) => !matchIgnoreFeature(d.featureId));
57032
57033
  descriptors$2 = descriptors$2.filter((d) => isBeyondBaseline(d.featureId, baseline)).filter((d) => !mappedFeatureIds.has(d.featureId));
57033
57034
  function resolveUseTypes(opt$1) {
57034
57035
  if (!opt$1) return "off";
package/dist/index.mjs CHANGED
@@ -57002,6 +57002,7 @@ const rule = {
57002
57002
  webApis: includeWebApis,
57003
57003
  jsBuiltins: includeJsBuiltins
57004
57004
  });
57005
+ if (matchIgnoreFeature) descriptors$2 = descriptors$2.filter((d) => !matchIgnoreFeature(d.featureId));
57005
57006
  descriptors$2 = descriptors$2.filter((d) => isBeyondBaseline(d.featureId, baseline)).filter((d) => !mappedFeatureIds.has(d.featureId));
57006
57007
  function resolveUseTypes(opt$1) {
57007
57008
  if (!opt$1) return "off";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-baseline-js",
3
- "version": "0.4.1",
3
+ "version": "0.4.2",
4
4
  "description": "Enforce JavaScript Baseline (widely/newly/year) browser compatibility with a single ESLint rule. Prevent runtime errors by catching unsupported JavaScript features during development.",
5
5
  "license": "MIT",
6
6
  "type": "module",