@@ -5,62 +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- // Exception for April Fools' joke for "418 I'm a teapot"
22- 'https://www.rfc-editor.org/rfc/rfc2324' ,
23-
24- // Unfortunately this doesn't produce a rendered spec, so it isn't in browser-specs
25- // Remove if it is in the main ECMA spec
26- 'https://github.com/tc39/proposal-regexp-legacy-features/' ,
27-
28- // Remove once tc39/ecma262#3221 is merged
29- 'https://github.com/tc39/proposal-regexp-modifiers' ,
30-
31- // See https://github.com/w3c/browser-specs/issues/305
32- // Features with this URL need to be checked after some time
33- // if they have been integrated into a real spec
34- 'https://w3c.github.io/webrtc-extensions/' ,
35-
36- // This is being used to develop Error.captureStackTrace() standard
37- // Need to be checked after some time to see if integrated into a real spec
38- 'https://github.com/tc39/proposal-error-capturestacktrace' ,
39-
40- // Proposals for WebAssembly
41- 'https://github.com/WebAssembly/spec/blob/main/proposals' ,
42- 'https://github.com/WebAssembly/exception-handling/blob/main/proposals' ,
43- 'https://github.com/WebAssembly/extended-const/blob/main/proposals' ,
44- 'https://github.com/WebAssembly/tail-call/blob/main/proposals' ,
45- 'https://github.com/WebAssembly/threads/blob/main/proposal' ,
46- 'https://github.com/WebAssembly/relaxed-simd/blob/main/proposals' ,
47- 'https://github.com/WebAssembly/multi-memory/blob/main/proposals' ,
48- 'https://github.com/WebAssembly/memory64/blob/main/proposals/memory64/Overview.md' ,
49- 'https://github.com/WebAssembly/js-string-builtins/blob/main/proposals/js-string-builtins/Overview.md' ,
50- 'https://github.com/WebAssembly/function-references/blob/main/proposals/function-references/Overview.md' ,
51- 'https://github.com/WebAssembly/js-promise-integration' ,
52- 'https://github.com/WebAssembly/branch-hinting/blob/main/proposals/branch-hinting/Overview.md' ,
53-
54- // Media types
55- 'https://developers.google.com/speed/webp/docs/riff_container' ,
56- 'https://developers.google.com/speed/webp/docs/webp_lossless_bitstream_specification' ,
57- 'https://jpeg.org/jpeg/' ,
58- 'https://www.adobe.com/devnet-apps/photoshop/fileformatashtml/' ,
59- 'https://www.iso.org/standard/89035.html' ,
60- 'https://www.rfc-editor.org/rfc/rfc7903' ,
61- 'https://www.w3.org/Graphics/GIF/spec-gif87.txt' ,
62- ] ;
63-
6414const allowedSpecURLs = [
6515 .../** @type {string[] } */ (
6616 specData
@@ -74,7 +24,7 @@ const allowedSpecURLs = [
7424 . flat ( )
7525 . filter ( ( url ) => ! ! url )
7626 ) ,
77- ...specsExceptions ,
27+ ...( await getSpecURLsExceptions ( ) ) ,
7828] ;
7929
8030/**
0 commit comments