mirror of
https://github.com/svg/svgo.git
synced 2025-07-29 20:21:14 +03:00
Linter fixes
This commit is contained in:
55
.jshintrc
55
.jshintrc
@ -1,27 +1,28 @@
|
|||||||
{
|
{
|
||||||
"globals": {
|
"globals": {
|
||||||
"phantom": false,
|
"phantom": false,
|
||||||
"describe": false,
|
"describe": false,
|
||||||
"before": false,
|
"before": false,
|
||||||
"it": false
|
"it": false
|
||||||
},
|
},
|
||||||
"node": true,
|
"node": true,
|
||||||
"strict": "global",
|
"strict": "global",
|
||||||
"expr": true,
|
"expr": true,
|
||||||
"curly": false,
|
"curly": false,
|
||||||
"camelcase": true,
|
"camelcase": true,
|
||||||
"eqeqeq": false,
|
"eqeqeq": false,
|
||||||
"-W041": false,
|
"-W041": false,
|
||||||
"-W008": false,
|
"-W008": false,
|
||||||
"forin": false,
|
"forin": false,
|
||||||
"immed": true,
|
"immed": true,
|
||||||
"multistr": true,
|
"multistr": true,
|
||||||
"newcap": true,
|
"newcap": true,
|
||||||
"nonew": true,
|
"nonew": true,
|
||||||
"quotmark": "single",
|
"quotmark": "single",
|
||||||
"undef": true,
|
"undef": true,
|
||||||
"unused": true,
|
"unused": true,
|
||||||
"loopfunc": true,
|
"loopfunc": true,
|
||||||
"trailing": true,
|
"trailing": true,
|
||||||
"lastsemic": true
|
"lastsemic": true,
|
||||||
}
|
"esversion": 6
|
||||||
|
}
|
||||||
|
@ -38,7 +38,6 @@ exports.fn = function(data, params) {
|
|||||||
currentIDstring,
|
currentIDstring,
|
||||||
IDs = new Map(),
|
IDs = new Map(),
|
||||||
referencesIDs = new Map(),
|
referencesIDs = new Map(),
|
||||||
idPrefix = 'id-', // prefix IDs so that values like '__proto__' don't break the work
|
|
||||||
hasStyleOrScript = false;
|
hasStyleOrScript = false;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user