From 7c2900653ef59979b519e486badedbd9e5fed527 Mon Sep 17 00:00:00 2001 From: Pitchaya Boonsarngsuk <2285135b@student.gla.ac.uk> Date: Thu, 22 Mar 2018 16:47:10 +0000 Subject: [PATCH] =?UTF-8?q?=E0=B9=81=E0=B8=81=E0=B9=89=20coding=20style=20?= =?UTF-8?q?=E0=B8=A0=E0=B8=B2=E0=B8=84=2012?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .eslintrc | 26 +------------------------- examples/js/example-papaparsing.js | 4 ++-- 2 files changed, 3 insertions(+), 27 deletions(-) diff --git a/.eslintrc b/.eslintrc index b60e867..d68db59 100644 --- a/.eslintrc +++ b/.eslintrc @@ -11,33 +11,9 @@ rules: - always no-return-assign: 0 one-var: 0 -/* - no-extra-parens: 1 - curly: 0 - block-scoped-var: 1 - no-tabs: 1 - no-negated-condition: 1 - block-spacing: 1 - brace-style: 1 - comma-spacing: 1 - comma-style: 1 - eol-last: 1 - func-call-spacing: 1 - indent: - - error - - 2 - key-spacing: 1 - linebreak-style: 1 - no-lonely-if: 1 -*/ env: es6: true globals: console: false -/* -plugins: - - import - - node - - promise -*/ + performance: false diff --git a/examples/js/example-papaparsing.js b/examples/js/example-papaparsing.js index 0ed0b8f..40c72db 100644 --- a/examples/js/example-papaparsing.js +++ b/examples/js/example-papaparsing.js @@ -74,7 +74,6 @@ $(document).ready(function () { /** * Parse the data from the provided csv file using Papa Parse library * @param {file} evt - csv file. - */ function parseFile (evt) { // Clear the previous nodes d3.selectAll('.nodes').remove(); @@ -90,6 +89,7 @@ function parseFile (evt) { } }); } +*/ /** * Process the data and pass it into D3 force simulation. @@ -194,7 +194,7 @@ function ticked () { // if (springForce) { // intercom.emit("passedData", simulation.force(forceName).distributionData()); // } - if (manualStop && alreadyRanIterations == ITERATIONS) { + if (manualStop && alreadyRanIterations === ITERATIONS) { ended(); } }