@@ -5,56 +5,12 @@ import { styleText } from 'node:util';
55
66import specData from 'web-specs' with { type : 'json' } ;
77
8+ import { getSpecURLsExceptions } from '../common/spec-urls-exceptions.js' ;
9+
810/** @import {Linter, LinterData} from '../types.js' */
911/** @import {Logger} from '../utils.js' */
1012/** @import {CompatStatement} from '../../types/types.js' */
1113
12- /*
13- * Before adding an exception, open an issue with https://github.com/w3c/browser-specs to
14- * see if a spec should be added there instead.
15- * When adding an exception here, provide a reason and indicate how the exception can be removed.
16- */
17- const specsExceptions = [
18- // Remove once https://github.com/whatwg/html/pull/6715 is resolved
19- 'https://wicg.github.io/controls-list/' ,
20-
21- // Unfortunately this doesn't produce a rendered spec, so it isn't in browser-specs
22- // Remove if it is in the main ECMA spec
23- 'https://github.com/tc39/proposal-regexp-legacy-features/' ,
24-
25- // See https://github.com/w3c/browser-specs/issues/305
26- // Features with this URL need to be checked after some time
27- // if they have been integrated into a real spec
28- 'https://w3c.github.io/webrtc-extensions/' ,
29-
30- // This is being used to develop Error.captureStackTrace() standard
31- // Need to be checked after some time to see if integrated into a real spec
32- 'https://github.com/tc39/proposal-error-capturestacktrace' ,
33-
34- // Proposals for WebAssembly
35- 'https://github.com/WebAssembly/spec/blob/main/proposals' ,
36- 'https://github.com/WebAssembly/exception-handling/blob/main/proposals' ,
37- 'https://github.com/WebAssembly/extended-const/blob/main/proposals' ,
38- 'https://github.com/WebAssembly/tail-call/blob/main/proposals' ,
39- 'https://github.com/WebAssembly/threads/blob/main/proposal' ,
40- 'https://github.com/WebAssembly/relaxed-simd/blob/main/proposals' ,
41- 'https://github.com/WebAssembly/multi-memory/blob/main/proposals' ,
42- 'https://github.com/WebAssembly/memory64/blob/main/proposals/memory64/Overview.md' ,
43- 'https://github.com/WebAssembly/js-string-builtins/blob/main/proposals/js-string-builtins/Overview.md' ,
44- 'https://github.com/WebAssembly/function-references/blob/main/proposals/function-references/Overview.md' ,
45- 'https://github.com/WebAssembly/js-promise-integration' ,
46- 'https://github.com/WebAssembly/branch-hinting/blob/main/proposals/branch-hinting/Overview.md' ,
47-
48- // Media types
49- 'https://developers.google.com/speed/webp/docs/riff_container' ,
50- 'https://developers.google.com/speed/webp/docs/webp_lossless_bitstream_specification' ,
51- 'https://jpeg.org/jpeg/' ,
52- 'https://www.adobe.com/devnet-apps/photoshop/fileformatashtml/' ,
53- 'https://www.iso.org/standard/89035.html' ,
54- 'https://www.rfc-editor.org/rfc/rfc7903' ,
55- 'https://www.w3.org/Graphics/GIF/spec-gif87.txt' ,
56- ] ;
57-
5814const allowedSpecURLs = [
5915 .../** @type {string[] } */ (
6016 specData
@@ -68,7 +24,7 @@ const allowedSpecURLs = [
6824 . flat ( )
6925 . filter ( ( url ) => ! ! url )
7026 ) ,
71- ...specsExceptions ,
27+ ...( await getSpecURLsExceptions ( ) ) ,
7228] ;
7329
7430/**
0 commit comments