소스 검색

jsHint complaining

Gaël Métais 10 년 전
부모
커밋
ec08177607
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      phantomas_custom/modules/analyzeStyleYLT/analyzeStyleYLT.js

+ 2 - 1
phantomas_custom/modules/analyzeStyleYLT/analyzeStyleYLT.js

@@ -39,11 +39,12 @@
  * setMetric('cssSelectors') @desc number of selectors (e.g. .foo, .bar { color: red } is counted as two selectors - .foo and .bar) @optional
  * setMetric('cssDeclarations') @desc number of declarations (e.g. .foo, .bar { color: red } is counted as one declaration - color: red) @optional
  */
-'use strict';
 
 exports.version = '0.3.a';
 
 exports.module = function(phantomas) {
+    'use strict';
+
     if (!phantomas.getParam('analyze-css')) {
         phantomas.log('To enable CSS in-depth metrics please run phantomas with --analyze-css option');
         return;