Skip to content

Commit bde5b7b

Browse files
committed
Build: Enable the strict ESLint rule
1 parent dabf788 commit bde5b7b

File tree

236 files changed

+516
-14
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

236 files changed

+516
-14
lines changed

build/release-test.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
"use strict";
2+
13
var shell = require( "shelljs" );
24
var Release = {
35
define: function( props ) {

build/release.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
"use strict";
2+
13
module.exports = function( Release ) {
24

35
var crypto = require( "crypto" );

build/tasks/build.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
module.exports = function( grunt ) {
2-
31
"use strict";
42

3+
module.exports = function( grunt ) {
4+
55
grunt.registerTask( "clean", function() {
66
require( "rimraf" ).sync( "dist" );
77
} );

build/tasks/testswarm.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
module.exports = function( grunt ) {
2-
31
"use strict";
42

3+
module.exports = function( grunt ) {
4+
55
var versions = {
66
"git": "git",
77
"3.x-git": "3.x-git",

external/qunit-assert-classes/qunit-assert-classes.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
( function( factory ) {
2+
"use strict";
3+
24
if ( typeof define === "function" && define.amd ) {
35

46
// AMD. Register as an anonymous module.

tests/.eslintrc.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,13 @@
1010
},
1111

1212
"rules": {
13-
// "strict": [ "error", "function" ]
13+
"strict": [ "error", "function" ],
1414

1515
// The following rule is relaxed due to too many violations:
1616
"no-unused-vars": [ "error", { "vars": "all", "args": "after-used" } ],
1717

1818
// Too many violations:
19-
"max-len": "off",
20-
"strict": "off"
19+
"max-len": "off"
2120
},
2221

2322
"globals": {

tests/lib/bootstrap.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
( function() {
2+
"use strict";
23

34
var DEFAULT_JQUERY_VERSION = "1.12.4";
45

tests/lib/common.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ define( [
33
"jquery",
44
"lib/helper"
55
], function( QUnit, $, helper ) {
6+
"use strict";
67

78
var exports = {};
89

tests/lib/css.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
( function() {
2+
"use strict";
23

34
function includeStyle( url ) {
45
document.write( "<link rel='stylesheet' href='../../../" + url + "'>" );

tests/lib/qunit-assert-domequal.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ define( [
88
"qunit",
99
"jquery"
1010
], function( QUnit, $ ) {
11+
"use strict";
1112

1213
var domEqual = QUnit.assert.domEqual = function( selector, modifier, message ) {
1314

0 commit comments

Comments
 (0)