Skip to content

Commit e1f84e8

Browse files
committed
added // @ts-check
1 parent c05109f commit e1f84e8

17 files changed

+25
-0
lines changed

examples/chapter01/03-Operators.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// @ts-check
2+
/* eslint-disable */
23

34
/* Arithmetic operators */
45
var num = 0; // {1}

examples/chapter01/04-TruthyFalsy.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// @ts-check
2+
/* eslint-disable */
23

34
function testTruthy(val) {
45
return val ? console.log('truthy') : console.log('falsy');

examples/chapter01/05-EqualsOperators.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// @ts-check
2+
/* eslint-disable */
23

34
// Packt == true
45

examples/chapter01/06-ConditionalStatements.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// @ts-check
2+
/* eslint-disable */
23

34
/* Example 01 - if */
45
var num = 1;

examples/chapter01/07-Loops.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// @ts-check
2+
/* eslint-disable */
3+
14
console.log('**** for example ****');
25
/* for - example */
36
for (var i = 0; i < 10; i++) {

examples/chapter01/08-Functions.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// @ts-check
2+
/* eslint-disable */
23

34
function sayHello() {
45
console.log('Hello!');

examples/chapter01/10-ObjectOrientedJS.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// @ts-check
2+
/* eslint-disable */
23

34
/* Object example 1 */
45
var obj = new Object();

examples/chapter01/11-ES2015-ES6-letconst.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// @ts-check
2+
/* eslint-disable */
23

34
//* ****** EcmaScript 2015 (ES6): let and const keywords
45

examples/chapter01/12-ES2015-ES6-StringTemplates.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// @ts-check
2+
/* eslint-disable */
23

34
//* ****** EcmaScript 2015 (ES6): Template literals (https://goo.gl/4N36CS)
45
const book = {

examples/chapter01/13-ES2015-ES6-ArrowFunctions.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// @ts-check
2+
/* eslint-disable */
23

34
//* ****** EcmaScript 2015 (ES6): arrow functions (https://goo.gl/nM414v)
45
var circleAreaES5 = function circleArea(r) {

0 commit comments

Comments
 (0)