StatusValue: Add a getter for MessageSpecifier list
[mediawiki.git] / .svgo.config.js
blob858d00f78953968bf1dd2cbe109a14556d786339
1 /**
2  * SVGO Configuration
3  * Compatible to v3.0.0+
4  * Recommended options from:
5  * https://www.mediawiki.org/wiki/Manual:Coding_conventions/SVG#Exemplified_safe_configuration
6  */
8 'use strict';
10 module.exports = {
11         plugins: [
12                 {
13                         // Set of built-in plugins enabled by default.
14                         name: 'preset-default',
15                         params: {
16                                 overrides: {
17                                         cleanupIds: false,
18                                         removeDesc: false,
19                                         removeTitle: false,
20                                         removeViewBox: false,
21                                         // If the SVG doesn't start with an XML declaration, then its MIME type will
22                                         // be detected as "text/plain" rather than "image/svg+xml" by libmagic and,
23                                         // consequently, MediaWiki's CSSMin CSS minifier. libmagic's default database
24                                         // currently requires that SVGs contain an XML declaration:
25                                         // https://github.com/threatstack/libmagic/blob/master/magic/Magdir/sgml#L5
26                                         removeXMLProcInst: false
27                                 }
28                         }
29                 },
30                 'removeRasterImages',
31                 'sortAttrs'
32         ],
33         // Set whitespace according to Wikimedia Coding Conventions.
34         // @see https://github.com/svg/svgo/blob/main/lib/stringifier.js#L39 for available options.
35         js2svg: {
36                 eol: 'lf',
37                 finalNewline: true,
38                 // Configure the indent to tabs (default 4 spaces) used by `--pretty` here.
39                 indent: '\t',
40                 pretty: true
41         },
42         multipass: true