1
0
mirror of https://github.com/svg/svgo.git synced 2025-07-29 20:21:14 +03:00

Setup recommended eslint preset (#1345)

This is usually enough to prevent silly mistakes.
Formatting will be done by prettier after merging pull requests.
This commit is contained in:
Bogdan Chadkin
2021-02-19 15:26:07 +03:00
committed by GitHub
parent feefdc0b84
commit a7cc20bb43
24 changed files with 657 additions and 84 deletions

View File

@ -23,7 +23,7 @@ exports.description = 'remove or cleanup enable-background attribute when possib
*/
exports.fn = function(data) {
var regEnableBackground = /^new\s0\s0\s([\-+]?\d*\.?\d+([eE][\-+]?\d+)?)\s([\-+]?\d*\.?\d+([eE][\-+]?\d+)?)$/,
var regEnableBackground = /^new\s0\s0\s([-+]?\d*\.?\d+([eE][-+]?\d+)?)\s([-+]?\d*\.?\d+([eE][-+]?\d+)?)$/,
hasFilter = false,
elems = ['svg', 'mask', 'pattern'];