Skip to content

Commit

Permalink
Move 'use strict' statements
Browse files Browse the repository at this point in the history
  • Loading branch information
XhmikosR committed Nov 21, 2021
1 parent 306114a commit 18d8dd8
Show file tree
Hide file tree
Showing 18 changed files with 36 additions and 36 deletions.
4 changes: 2 additions & 2 deletions bin/svg-sprite.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#!/usr/bin/env node

'use strict';

/**
* svg-sprite is a Node.js module for creating SVG sprites
*
Expand All @@ -12,6 +10,8 @@
* @license MIT https://github.com/svg-sprite/svg-sprite/blob/main/LICENSE
*/

'use strict';

/**
* Module dependencies.
*/
Expand Down
4 changes: 2 additions & 2 deletions lib/svg-sprite.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict';

/**
* svg-sprite is a Node.js module for creating SVG sprites
*
Expand All @@ -10,6 +8,8 @@
* @license MIT https://github.com/svg-sprite/svg-sprite/blob/main/LICENSE
*/

'use strict';

const { Buffer } = require('buffer');
const path = require('path');
const events = require('events');
Expand Down
4 changes: 2 additions & 2 deletions lib/svg-sprite/config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict';

/**
* svg-sprite is a Node.js module for creating SVG sprites
*
Expand All @@ -10,6 +8,8 @@
* @license MIT https://github.com/svg-sprite/svg-sprite/blob/main/LICENSE
*/

'use strict';

const fs = require('fs');
const path = require('path');
const _ = require('lodash');
Expand Down
4 changes: 2 additions & 2 deletions lib/svg-sprite/layouter.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict';

/**
* svg-sprite is a Node.js module for creating SVG sprites
*
Expand All @@ -10,6 +8,8 @@
* @license MIT https://github.com/svg-sprite/svg-sprite/blob/main/LICENSE
*/

'use strict';

const _ = require('lodash');

const defaultConfig = {
Expand Down
4 changes: 2 additions & 2 deletions lib/svg-sprite/mode/base.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict';

/**
* svg-sprite is a Node.js module for creating SVG sprites
*
Expand All @@ -10,6 +8,8 @@
* @license MIT https://github.com/svg-sprite/svg-sprite/blob/main/LICENSE
*/

'use strict';

const { Buffer } = require('buffer');
const fs = require('fs');
const crypto = require('crypto');
Expand Down
4 changes: 2 additions & 2 deletions lib/svg-sprite/mode/css.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict';

/**
* svg-sprite is a Node.js module for creating SVG sprites
*
Expand All @@ -10,6 +8,8 @@
* @license MIT https://github.com/svg-sprite/svg-sprite/blob/main/LICENSE
*/

'use strict';

const { format } = require('util');
const _ = require('lodash');
const SVGSprite = require('../sprite.js');
Expand Down
4 changes: 2 additions & 2 deletions lib/svg-sprite/mode/css/packer.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict';

/**
* svg-sprite is a Node.js module for creating SVG sprites
*
Expand All @@ -10,6 +8,8 @@
* @license MIT https://github.com/svg-sprite/svg-sprite/blob/main/LICENSE
*/

'use strict';

/**
* CSS sprite packer
*
Expand Down
4 changes: 2 additions & 2 deletions lib/svg-sprite/mode/defs.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict';

/**
* svg-sprite is a Node.js module for creating SVG sprites
*
Expand All @@ -10,6 +8,8 @@
* @license MIT https://github.com/svg-sprite/svg-sprite/blob/main/LICENSE
*/

'use strict';

const SVGSprite = require('../sprite.js');
const SVGSpriteStandalone = require('./standalone.js');

Expand Down
4 changes: 2 additions & 2 deletions lib/svg-sprite/mode/stack.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict';

/**
* svg-sprite is a Node.js module for creating SVG sprites
*
Expand All @@ -10,6 +8,8 @@
* @license MIT https://github.com/svg-sprite/svg-sprite/blob/main/LICENSE
*/

'use strict';

const SVGSprite = require('../sprite.js');
const SVGSpriteStandalone = require('./standalone.js');

Expand Down
4 changes: 2 additions & 2 deletions lib/svg-sprite/mode/standalone.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict';

/**
* svg-sprite is a Node.js module for creating SVG sprites
*
Expand All @@ -10,6 +8,8 @@
* @license MIT https://github.com/svg-sprite/svg-sprite/blob/main/LICENSE
*/

'use strict';

const { format } = require('util');
const _ = require('lodash');
const SVGSpriteBase = require('./base.js');
Expand Down
4 changes: 2 additions & 2 deletions lib/svg-sprite/mode/symbol.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict';

/**
* svg-sprite is a Node.js module for creating SVG sprites
*
Expand All @@ -10,6 +8,8 @@
* @license MIT https://github.com/svg-sprite/svg-sprite/blob/main/LICENSE
*/

'use strict';

const SVGSprite = require('../sprite.js');
const SVGSpriteStandalone = require('./standalone.js');

Expand Down
4 changes: 2 additions & 2 deletions lib/svg-sprite/mode/view.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict';

/**
* svg-sprite is a Node.js module for creating SVG sprites
*
Expand All @@ -10,6 +8,8 @@
* @license MIT https://github.com/svg-sprite/svg-sprite/blob/main/LICENSE
*/

'use strict';

const SVGSprite = require('../sprite.js');
const SVGSpriteStandalone = require('./standalone.js');
const SVGSpriteCss = require('./css.js');
Expand Down
4 changes: 2 additions & 2 deletions lib/svg-sprite/queue.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict';

/**
* svg-sprite is a Node.js module for creating SVG sprites
*
Expand All @@ -10,6 +8,8 @@
* @license MIT https://github.com/svg-sprite/svg-sprite/blob/main/LICENSE
*/

'use strict';

const path = require('path');
const events = require('events');
const async = require('async');
Expand Down
4 changes: 2 additions & 2 deletions lib/svg-sprite/shape.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict';

/**
* svg-sprite is a Node.js module for creating SVG sprites
*
Expand All @@ -10,6 +8,8 @@
* @license MIT https://github.com/svg-sprite/svg-sprite/blob/main/LICENSE
*/

'use strict';

const path = require('path');
const { format } = require('util');
const { execFile } = require('child_process');
Expand Down
4 changes: 2 additions & 2 deletions lib/svg-sprite/shape/dimensions.phantom.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict';

/**
* svg-sprite is a Node.js module for creating SVG sprites
*
Expand All @@ -10,6 +8,8 @@
* @license MIT https://github.com/svg-sprite/svg-sprite/blob/main/LICENSE
*/

'use strict';

/* globals document:false */

var system = require('system');
Expand Down
4 changes: 2 additions & 2 deletions lib/svg-sprite/sprite.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict';

/**
* svg-sprite is a Node.js module for creating SVG sprites
*
Expand All @@ -10,6 +8,8 @@
* @license MIT https://github.com/svg-sprite/svg-sprite/blob/main/LICENSE
*/

'use strict';

const { Buffer } = require('buffer');
const _ = require('lodash');
const File = require('vinyl');
Expand Down
4 changes: 2 additions & 2 deletions lib/svg-sprite/transform/svgo.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict';

/**
* svg-sprite is a Node.js module for creating SVG sprites
*
Expand All @@ -10,6 +8,8 @@
* @license MIT https://github.com/svg-sprite/svg-sprite/blob/main/LICENSE
*/

'use strict';

const svgo = require('svgo');
const _ = require('lodash');
const pretty = require('prettysize');
Expand Down
4 changes: 2 additions & 2 deletions test/svg-sprite.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict';

/**
* svg-sprite is a Node.js module for creating SVG sprites
*
Expand All @@ -10,6 +8,8 @@
* @license MIT https://github.com/svg-sprite/svg-sprite/blob/main/LICENSE
*/

'use strict';

// TODO fix/work around these
/* eslint-disable no-unused-expressions, max-nested-callbacks */

Expand Down

0 comments on commit 18d8dd8

Please sign in to comment.