Skip to content

Commit

Permalink
Enabled strict errors in eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
Marketionist committed Dec 5, 2017
1 parent 444dcf4 commit 50a0793
Show file tree
Hide file tree
Showing 8 changed files with 1 addition and 15 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@
"yoda": [2, "never", { "exceptRange": true }],

// Strict Mode
"strict": [0, "global"],
"strict": [2, "global"],

// Variables
"init-declarations": 0,
Expand Down
2 changes: 0 additions & 2 deletions src/helpers/objects.processor.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict';

/* eslint no-param-reassign: 0*/
/* eslint no-undef: 0 */

Expand Down
2 changes: 0 additions & 2 deletions src/helpers/utils.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict';

const escapeRegExp = function (str) {
return str.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, '\$&');
};
Expand Down
2 changes: 0 additions & 2 deletions src/steps/given.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict';

/* eslint new-cap: 0 */

const { defineSupportCode } = require('cucumber');
Expand Down
2 changes: 0 additions & 2 deletions src/steps/then.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict';

/* eslint new-cap: 0 */

const { defineSupportCode } = require('cucumber');
Expand Down
2 changes: 0 additions & 2 deletions test/features/page_objects/main.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict';

let e = {};

e.txtHeader = '//*[@id="header"]';
Expand Down
2 changes: 0 additions & 2 deletions test/mocha/objects.processor.spec.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict';

const { expect } = require('chai');

const {
Expand Down
2 changes: 0 additions & 2 deletions test/wdio.conf.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict';

/* eslint max-len: 0 */
/* eslint no-unused-vars: 0 */
/* eslint no-multi-spaces: 0 */
Expand Down

0 comments on commit 50a0793

Please sign in to comment.