Skip to content
This repository has been archived by the owner on May 11, 2021. It is now read-only.

Commit

Permalink
Add a bunch of eslint-disable comments for legacy code.
Browse files Browse the repository at this point in the history
Summary:
We're introducing a new, stricter js/jsx linter in the khan-linter
repo: eslint.  It has a bunch of rules to enforce our style guide,
that the old jshint did not have.  But most legacy code doesn't follow
our style guide so well.

This change allows us to upgrade to the new linter for new code, while
keeping old code compliant.  I do this by adding 'eslint-disable'
directives everywhere.

Here's the mondo command I ran to do this all automatically.  First, I
applied D22374 in my khan/devtools/khan-linter rule.  Then, in
khan-exercises/, I ran this mondo command:

  ~/khan/devtools/khan-linter/runlint.py > /var/tmp/le
  cat /var/tmp/le | grep -v 'File ignored' | perl -nle '/^([^:]*):\d+:\d+: [EW]([^ ]*)/ and print "$1 $2"' | sort -u | perl -ane '$t{$F[0]} .= " $F[1],"; if (eof) {for $k (keys %t) { chop $t{$k}; open(OLD, $k); open(NEW, ">$k.tmp"); print NEW qq{/* TODO(csilvers): fix these lint errors (http://eslint.org/docs/rules): */\n/* eslint-disable$t{$k} */\n/* To fix, remove an entry above, run ka-lint, and fix errors. */\n\n}; while (<OLD>) {print NEW $_}; close(OLD); close(NEW); rename("$k.tmp", "$k") }}'

It's not as bad as it looks.  Basically it runs the linter, munges the
output to be 'filename violated-rule-name' pairs, and then uses some
perl to collect all the violated-rules for a single filename in one
place, and to prepend the appropriate eslint-disable comment on to the
file.

Test Plan:
In khan-exercises/, ran
   ~/khan/devtools/khan-linter/runlint.py
and saw no errors.

Reviewers: emily, kevinb

Subscribers: john

Differential Revision: https://phabricator.khanacademy.org/D22393
  • Loading branch information
csilvers committed Oct 13, 2015
1 parent 4e8bdb3 commit cf7b219
Show file tree
Hide file tree
Showing 64 changed files with 256 additions and 0 deletions.
4 changes: 4 additions & 0 deletions build/calculator/calculator-tail.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* TODO(csilvers): fix these lint errors (http://eslint.org/docs/rules): */
/* eslint-disable brace-style, comma-dangle, eqeqeq, max-len, no-undef, no-unused-vars, prefer-template */
/* To fix, remove an entry above, run ka-lint, and fix errors. */

window.Calculator = (function(parser) {
// I18N: calculator error message
var ERROR_TEXT = $._("Error");
Expand Down
4 changes: 4 additions & 0 deletions build/kathjax-config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* TODO(csilvers): fix these lint errors (http://eslint.org/docs/rules): */
/* eslint-disable comma-dangle, comma-spacing, eqeqeq, indent, max-len, no-unused-vars, one-var, prefer-template, space-infix-ops */
/* To fix, remove an entry above, run ka-lint, and fix errors. */

MathJax.Hub.Config({
messageStyle: "none",
skipStartupTypeset: true,
Expand Down
4 changes: 4 additions & 0 deletions build/pack.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* TODO(csilvers): fix these lint errors (http://eslint.org/docs/rules): */
/* eslint-disable comma-dangle, max-len, no-console, prefer-template, space-before-function-paren */
/* To fix, remove an entry above, run ka-lint, and fix errors. */

/*jshint node:true */
/**
* A node.js script that packs javascript in exercise files.
Expand Down
4 changes: 4 additions & 0 deletions exercises-stub.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* TODO(csilvers): fix these lint errors (http://eslint.org/docs/rules): */
/* eslint-disable comma-dangle */
/* To fix, remove an entry above, run ka-lint, and fix errors. */

/**
* Stub version of the Exercises object used in the live Khan Academy site.
*/
Expand Down
4 changes: 4 additions & 0 deletions history.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* TODO(csilvers): fix these lint errors (http://eslint.org/docs/rules): */
/* eslint-disable comma-dangle, eqeqeq, indent, max-len, no-undef, one-var, prefer-template */
/* To fix, remove an entry above, run ka-lint, and fix errors. */

/**
* Event handlers for when problem history is being viewed.
*/
Expand Down
4 changes: 4 additions & 0 deletions interface.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* TODO(csilvers): fix these lint errors (http://eslint.org/docs/rules): */
/* eslint-disable comma-dangle, comma-spacing, eqeqeq, indent, max-len, no-undef, one-var, prefer-template, space-after-keywords, space-before-function-paren */
/* To fix, remove an entry above, run ka-lint, and fix errors. */

/**
* Interface glue to handle events from 'Exercises' and talk to 'Khan' or some
* Perseus object, whichever is appropriate for the current exercise.
Expand Down
4 changes: 4 additions & 0 deletions khan-exercise.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* TODO(csilvers): fix these lint errors (http://eslint.org/docs/rules): */
/* eslint-disable comma-dangle, eqeqeq, indent, max-len, no-console, no-trailing-spaces, no-undef, no-unused-vars, one-var, prefer-spread, prefer-template, space-before-blocks */
/* To fix, remove an entry above, run ka-lint, and fix errors. */

/* khan-exercise.js
The main entry point here is essentially the onjQueryLoaded method around
Expand Down
4 changes: 4 additions & 0 deletions utils/algebra-intuition.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* TODO(csilvers): fix these lint errors (http://eslint.org/docs/rules): */
/* eslint-disable comma-dangle, eqeqeq, indent, max-len, no-undef, no-unused-vars, prefer-template */
/* To fix, remove an entry above, run ka-lint, and fix errors. */

define(function(require) {

KhanUtil.scale = {
Expand Down
4 changes: 4 additions & 0 deletions utils/angles.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* TODO(csilvers): fix these lint errors (http://eslint.org/docs/rules): */
/* eslint-disable comma-dangle, indent, no-unused-vars */
/* To fix, remove an entry above, run ka-lint, and fix errors. */

define(function(require) {

$.extend(KhanUtil, {
Expand Down
4 changes: 4 additions & 0 deletions utils/answer-types.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* TODO(csilvers): fix these lint errors (http://eslint.org/docs/rules): */
/* eslint-disable brace-style, comma-dangle, eqeqeq, indent, max-len, no-redeclare, no-undef, no-unused-vars, one-var, prefer-spread, prefer-template, space-after-keywords */
/* To fix, remove an entry above, run ka-lint, and fix errors. */

define(function(require) {

var MAXERROR_EPSILON = Math.pow(2, -42);
Expand Down
4 changes: 4 additions & 0 deletions utils/chemistry.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* TODO(csilvers): fix these lint errors (http://eslint.org/docs/rules): */
/* eslint-disable comma-dangle, indent, max-len, no-undef */
/* To fix, remove an entry above, run ka-lint, and fix errors. */

define(function(require) {

require("./math-format.js");
Expand Down
4 changes: 4 additions & 0 deletions utils/cipher.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* TODO(csilvers): fix these lint errors (http://eslint.org/docs/rules): */
/* eslint-disable brace-style, comma-dangle, indent, max-len, no-redeclare, no-unused-vars, one-var */
/* To fix, remove an entry above, run ka-lint, and fix errors. */

define(function(require) {

$.extend(KhanUtil, {
Expand Down
4 changes: 4 additions & 0 deletions utils/congruency.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* TODO(csilvers): fix these lint errors (http://eslint.org/docs/rules): */
/* eslint-disable comma-dangle, eqeqeq, indent, max-len, no-redeclare, no-undef, no-unused-vars, one-var */
/* To fix, remove an entry above, run ka-lint, and fix errors. */

define(function(require) {

require("./angles.js");
Expand Down
4 changes: 4 additions & 0 deletions utils/constructions.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* TODO(csilvers): fix these lint errors (http://eslint.org/docs/rules): */
/* eslint-disable brace-style, comma-dangle, eqeqeq, indent, max-len, no-redeclare, no-undef, no-unused-vars, prefer-template, space-before-function-paren */
/* To fix, remove an entry above, run ka-lint, and fix errors. */

define(function(require) {

var kmatrix = require("./kmatrix.js");
Expand Down
4 changes: 4 additions & 0 deletions utils/convert-values.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* TODO(csilvers): fix these lint errors (http://eslint.org/docs/rules): */
/* eslint-disable brace-style, comma-dangle, indent, max-len, no-redeclare, no-trailing-spaces, no-unused-vars, prefer-template, space-after-keywords, space-unary-ops */
/* To fix, remove an entry above, run ka-lint, and fix errors. */

define(function(require) {

$.extend(KhanUtil, {
Expand Down
4 changes: 4 additions & 0 deletions utils/crc32.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* TODO(csilvers): fix these lint errors (http://eslint.org/docs/rules): */
/* eslint-disable eqeqeq, indent, no-unused-vars, prefer-template */
/* To fix, remove an entry above, run ka-lint, and fix errors. */

define(function(require) {

/*
Expand Down
4 changes: 4 additions & 0 deletions utils/derivative-intuition.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* TODO(csilvers): fix these lint errors (http://eslint.org/docs/rules): */
/* eslint-disable comma-dangle, indent, max-len, no-undef, no-unused-vars */
/* To fix, remove an entry above, run ka-lint, and fix errors. */

define(function(require) {

require("../third_party/jquery.mobile.vmouse.js");
Expand Down
4 changes: 4 additions & 0 deletions utils/exponents.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* TODO(csilvers): fix these lint errors (http://eslint.org/docs/rules): */
/* eslint-disable camelcase, comma-dangle, indent, max-len, no-undef, one-var, prefer-template */
/* To fix, remove an entry above, run ka-lint, and fix errors. */

define(function(require) {

require("./math.js");
Expand Down
4 changes: 4 additions & 0 deletions utils/expressions.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* TODO(csilvers): fix these lint errors (http://eslint.org/docs/rules): */
/* eslint-disable comma-dangle, eqeqeq, indent, max-len, no-undef, no-unused-vars, one-var, prefer-template, space-unary-ops */
/* To fix, remove an entry above, run ka-lint, and fix errors. */

define(function(require) {

$.extend(KhanUtil, {
Expand Down
4 changes: 4 additions & 0 deletions utils/functional.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* TODO(csilvers): fix these lint errors (http://eslint.org/docs/rules): */
/* eslint-disable comma-dangle, indent, max-len, no-unused-vars */
/* To fix, remove an entry above, run ka-lint, and fix errors. */

define(function(require) {

$.extend(KhanUtil, {
Expand Down
4 changes: 4 additions & 0 deletions utils/geom.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* TODO(csilvers): fix these lint errors (http://eslint.org/docs/rules): */
/* eslint-disable comma-dangle, eqeqeq, indent, no-undef, no-unused-vars, one-var */
/* To fix, remove an entry above, run ka-lint, and fix errors. */

define(function(require) {

var eps = 1e-9;
Expand Down
4 changes: 4 additions & 0 deletions utils/graphie-3d.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* TODO(csilvers): fix these lint errors (http://eslint.org/docs/rules): */
/* eslint-disable comma-dangle, eqeqeq, indent, no-undef, space-infix-ops */
/* To fix, remove an entry above, run ka-lint, and fix errors. */

define(function(require) {

require("./graphie.js");
Expand Down
4 changes: 4 additions & 0 deletions utils/graphie-drawing.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* TODO(csilvers): fix these lint errors (http://eslint.org/docs/rules): */
/* eslint-disable comma-dangle, indent, no-undef */
/* To fix, remove an entry above, run ka-lint, and fix errors. */

define(function(require) {

require("./math.js");
Expand Down
4 changes: 4 additions & 0 deletions utils/graphie-geometry.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* TODO(csilvers): fix these lint errors (http://eslint.org/docs/rules): */
/* eslint-disable brace-style, comma-dangle, comma-spacing, eqeqeq, indent, max-len, no-redeclare, no-undef, no-unused-vars, one-var, prefer-template, space-before-keywords, space-infix-ops, space-unary-ops */
/* To fix, remove an entry above, run ka-lint, and fix errors. */

define(function(require) {

require("./graphie.js");
Expand Down
4 changes: 4 additions & 0 deletions utils/graphie-helpers-arithmetic.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* TODO(csilvers): fix these lint errors (http://eslint.org/docs/rules): */
/* eslint-disable comma-dangle, comma-spacing, indent, max-len, no-redeclare, no-trailing-spaces, no-undef, no-unused-vars, one-var, prefer-template, space-unary-ops */
/* To fix, remove an entry above, run ka-lint, and fix errors. */

define(function(require) {

var decimalPointSymbol = icu.getDecimalFormatSymbols().decimal_separator;
Expand Down
4 changes: 4 additions & 0 deletions utils/graphie-helpers.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* TODO(csilvers): fix these lint errors (http://eslint.org/docs/rules): */
/* eslint-disable brace-style, comma-dangle, indent, max-len, no-redeclare, no-trailing-spaces, no-undef, one-var, prefer-spread, prefer-template, space-unary-ops */
/* To fix, remove an entry above, run ka-lint, and fix errors. */

define(function(require) {

require("./math-format.js");
Expand Down
4 changes: 4 additions & 0 deletions utils/graphie-polygon.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* TODO(csilvers): fix these lint errors (http://eslint.org/docs/rules): */
/* eslint-disable comma-dangle, indent, max-len, no-redeclare, no-undef, no-unused-vars, one-var */
/* To fix, remove an entry above, run ka-lint, and fix errors. */

define(function(require) {

$.extend(KhanUtil, {
Expand Down
4 changes: 4 additions & 0 deletions utils/graphie.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* TODO(csilvers): fix these lint errors (http://eslint.org/docs/rules): */
/* eslint-disable brace-style, comma-dangle, eqeqeq, indent, max-len, no-redeclare, no-undef, no-unused-vars, one-var, prefer-spread, prefer-template, space-infix-ops */
/* To fix, remove an entry above, run ka-lint, and fix errors. */

define(function(require) {

var kpoint = require("./kpoint.js");
Expand Down
4 changes: 4 additions & 0 deletions utils/interactive.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* TODO(csilvers): fix these lint errors (http://eslint.org/docs/rules): */
/* eslint-disable comma-dangle, eqeqeq, indent, max-len, no-redeclare, no-undef, no-unused-vars, one-var, prefer-spread, prefer-template, space-infix-ops, space-unary-ops */
/* To fix, remove an entry above, run ka-lint, and fix errors. */

define(function(require) {

require("../third_party/jquery.mobile.vmouse.js");
Expand Down
4 changes: 4 additions & 0 deletions utils/jquery.adhesion.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* TODO(csilvers): fix these lint errors (http://eslint.org/docs/rules): */
/* eslint-disable comma-dangle, eqeqeq, max-len */
/* To fix, remove an entry above, run ka-lint, and fix errors. */

(function($) {
$.fn.adhere = function(options) {
options = $.extend({
Expand Down
4 changes: 4 additions & 0 deletions utils/khanscript.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* TODO(csilvers): fix these lint errors (http://eslint.org/docs/rules): */
/* eslint-disable indent, no-unused-vars, prefer-template */
/* To fix, remove an entry above, run ka-lint, and fix errors. */

define(function(require) {

$.fn.khanscript = function(problem) {
Expand Down
4 changes: 4 additions & 0 deletions utils/kline.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* TODO(csilvers): fix these lint errors (http://eslint.org/docs/rules): */
/* eslint-disable comma-dangle, indent, max-len, no-trailing-spaces, no-undef, space-infix-ops */
/* To fix, remove an entry above, run ka-lint, and fix errors. */

/*
* Line Utils
* A line is an array of two points e.g. [[-5, 0], [5, 0]].
Expand Down
4 changes: 4 additions & 0 deletions utils/kmatrix.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* TODO(csilvers): fix these lint errors (http://eslint.org/docs/rules): */
/* eslint-disable comma-dangle, comma-spacing, indent, max-len, no-undef, no-unused-vars, one-var, prefer-spread, prefer-template, space-before-blocks, space-before-function-paren, space-infix-ops */
/* To fix, remove an entry above, run ka-lint, and fix errors. */

define(function(require) {

require("./expressions.js");
Expand Down
4 changes: 4 additions & 0 deletions utils/knumber.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* TODO(csilvers): fix these lint errors (http://eslint.org/docs/rules): */
/* eslint-disable camelcase, comma-dangle, eqeqeq, indent, no-undef, no-unused-vars, one-var, space-infix-ops */
/* To fix, remove an entry above, run ka-lint, and fix errors. */

/*
* Number Utils
* A number is a js-number, e.g. 5.12
Expand Down
4 changes: 4 additions & 0 deletions utils/kpoint.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* TODO(csilvers): fix these lint errors (http://eslint.org/docs/rules): */
/* eslint-disable comma-dangle, indent, no-undef */
/* To fix, remove an entry above, run ka-lint, and fix errors. */

/*
* Point Utils
* A point is an array of two numbers e.g. [0, 0].
Expand Down
4 changes: 4 additions & 0 deletions utils/kray.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* TODO(csilvers): fix these lint errors (http://eslint.org/docs/rules): */
/* eslint-disable comma-dangle, comma-spacing, indent */
/* To fix, remove an entry above, run ka-lint, and fix errors. */

/*
* Ray Utils
* A ray is an array of an endpoint and another point along the ray.
Expand Down
4 changes: 4 additions & 0 deletions utils/kvector.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* TODO(csilvers): fix these lint errors (http://eslint.org/docs/rules): */
/* eslint-disable comma-dangle, indent, no-trailing-spaces, no-undef, no-unused-vars, prefer-spread */
/* To fix, remove an entry above, run ka-lint, and fix errors. */

/*
* Vector Utils
* A vector is an array of numbers e.g. [0, 3, 4].
Expand Down
4 changes: 4 additions & 0 deletions utils/math-format.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* TODO(csilvers): fix these lint errors (http://eslint.org/docs/rules): */
/* eslint-disable comma-dangle, eqeqeq, indent, max-len, no-throw-literal, no-trailing-spaces, no-undef, one-var, prefer-template */
/* To fix, remove an entry above, run ka-lint, and fix errors. */

define(function(require) {

require("./math.js");
Expand Down
4 changes: 4 additions & 0 deletions utils/math.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* TODO(csilvers): fix these lint errors (http://eslint.org/docs/rules): */
/* eslint-disable comma-dangle, comma-spacing, eqeqeq, indent, max-len, no-constant-condition, no-redeclare, no-undef, no-unused-vars, one-var, prefer-spread, prefer-template, space-infix-ops */
/* To fix, remove an entry above, run ka-lint, and fix errors. */

define(function(require) {

// Minify Raphael ourselves because IE8 has a problem with the 1.5.2 minified release
Expand Down
4 changes: 4 additions & 0 deletions utils/matrix-input.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* TODO(csilvers): fix these lint errors (http://eslint.org/docs/rules): */
/* eslint-disable comma-dangle, indent, no-undef, no-unused-vars, prefer-template */
/* To fix, remove an entry above, run ka-lint, and fix errors. */

/**
* Allows for intuitive matrix input for matrix exercises.
*
Expand Down
4 changes: 4 additions & 0 deletions utils/mean-and-median.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* TODO(csilvers): fix these lint errors (http://eslint.org/docs/rules): */
/* eslint-disable comma-dangle, indent, max-len, no-redeclare, no-undef, no-unused-vars, prefer-template */
/* To fix, remove an entry above, run ka-lint, and fix errors. */

define(function(require) {

require("./stat.js");
Expand Down
4 changes: 4 additions & 0 deletions utils/objective_.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* TODO(csilvers): fix these lint errors (http://eslint.org/docs/rules): */
/* eslint-disable comma-dangle, indent, no-undef, no-unused-vars */
/* To fix, remove an entry above, run ka-lint, and fix errors. */

/*
* This file was copied from Perseus and shouldn't be modified directly.
*/
Expand Down
4 changes: 4 additions & 0 deletions utils/parabola-intuition.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* TODO(csilvers): fix these lint errors (http://eslint.org/docs/rules): */
/* eslint-disable comma-dangle, indent, max-len, no-unused-vars */
/* To fix, remove an entry above, run ka-lint, and fix errors. */

define(function(require) {

$.extend(KhanUtil, {
Expand Down
4 changes: 4 additions & 0 deletions utils/polynomials.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* TODO(csilvers): fix these lint errors (http://eslint.org/docs/rules): */
/* eslint-disable comma-dangle, eqeqeq, indent, max-len, no-redeclare, no-undef, no-unused-vars, one-var, prefer-template */
/* To fix, remove an entry above, run ka-lint, and fix errors. */

define(function(require) {

require("./math.js");
Expand Down
4 changes: 4 additions & 0 deletions utils/probability.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* TODO(csilvers): fix these lint errors (http://eslint.org/docs/rules): */
/* eslint-disable comma-dangle, indent, no-unused-vars */
/* To fix, remove an entry above, run ka-lint, and fix errors. */

define(function(require) {

$.extend(KhanUtil, {
Expand Down
4 changes: 4 additions & 0 deletions utils/qhints.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* TODO(csilvers): fix these lint errors (http://eslint.org/docs/rules): */
/* eslint-disable indent, no-unused-vars */
/* To fix, remove an entry above, run ka-lint, and fix errors. */

define(function(require) {

$.fn["qhintsLoad"] = function() {
Expand Down
4 changes: 4 additions & 0 deletions utils/rational-expressions.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* TODO(csilvers): fix these lint errors (http://eslint.org/docs/rules): */
/* eslint-disable camelcase, comma-dangle, eqeqeq, indent, max-len, no-redeclare, no-undef, no-unused-vars, prefer-template, space-before-blocks, space-infix-ops */
/* To fix, remove an entry above, run ka-lint, and fix errors. */

define(function(require) {

$.extend(KhanUtil, {
Expand Down
4 changes: 4 additions & 0 deletions utils/scratchpad.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* TODO(csilvers): fix these lint errors (http://eslint.org/docs/rules): */
/* eslint-disable camelcase, comma-dangle, indent, max-len, no-undef, no-unused-vars, one-var, prefer-template */
/* To fix, remove an entry above, run ka-lint, and fix errors. */

define(function(require) {

require("../third_party/jquery.mobile.vmouse.js");
Expand Down
4 changes: 4 additions & 0 deletions utils/slice-clone.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* TODO(csilvers): fix these lint errors (http://eslint.org/docs/rules): */
/* eslint-disable comma-dangle, indent, max-len, no-undef, no-unused-vars, prefer-template */
/* To fix, remove an entry above, run ka-lint, and fix errors. */

define(function(require) {

// Helper for fractions_cut_and_copy_1 and fractions_cut_and_copy_2
Expand Down
4 changes: 4 additions & 0 deletions utils/spin.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* TODO(csilvers): fix these lint errors (http://eslint.org/docs/rules): */
/* eslint-disable comma-dangle, indent, max-len, no-unused-vars */
/* To fix, remove an entry above, run ka-lint, and fix errors. */

define(function(require) {

$.extend(KhanUtil, {
Expand Down
Loading

0 comments on commit cf7b219

Please sign in to comment.