As of Drupal 8 all JS needs to follow our JavaScript coding standards. For this we use ESLint to check most of our standards.

Here is the summary of running ESLint on this module JS:
45 problems (45 errors, 0 warnings)

Comments

Neelanjana Das created an issue. See original summary.

neelanjana das’s picture

StatusFileSize
new8.35 KB

This patch removes all the errors.

neelanjana das’s picture

Status: Active » Needs review
neelanjana das’s picture

Title: Token » Token ESLint error
berdir’s picture

Status: Needs review » Needs work

jquery.treeTable.js sounds like an external library. I don't think we should change that at all.

We use 2.3.0, the latest version on http://plugins.jquery.com/treetable is 3.2.0. We should ensure that is correctly formatted. and consider using that.

hussainweb’s picture

hussainweb’s picture

Status: Needs work » Needs review
StatusFileSize
new256 bytes

After removing the treetable changes, this is all that is left. I guess we could restructure the vendor files like core does to make it clear that this is not our code. Anyway, like @Berdir says, upgrading to 3.2.0 might fix most of the errors (and I see other fixes since 3.2.0 release as well). We are dealing with that in another issue anyway: #2737889: Upgrade to latest jquery treetable

  • Berdir committed c727e2d on 8.x-1.x authored by hussainweb
    Issue #2682289 by Neelanjana Das, hussainweb: Fixed Token ESLint error
    
berdir’s picture

Status: Needs review » Fixed

Yeah, looks like that's all now. committed.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.