Skip to content

lint should check all relevant js files - #1425

Merged
DreadKnight merged 1 commit into
FreezingMoon:masterfrom
tristanmkernan:issue/1422
Jul 6, 2018
Merged

lint should check all relevant js files#1425
DreadKnight merged 1 commit into
FreezingMoon:masterfrom
tristanmkernan:issue/1422

Conversation

@tristanmkernan

Copy link
Copy Markdown
Collaborator

issue #1422

this PR adds the js files in the src/ directory (subdirectories were already included previously) to the lint check and resolves the relevant errors.

once again some eslint config changes were required because i'm unable to fix them at the present time:

  • no-eval: eval is used at one point in the code
  • no-new involves side effects and new - this is used for Drops

@ktiedt

ktiedt commented Jul 5, 2018

Copy link
Copy Markdown
Collaborator

The evals should be simple replaces... just remove the eval() they appear to be just basic operations?

@ktiedt

ktiedt commented Jul 5, 2018

Copy link
Copy Markdown
Collaborator

Can you be more specific on the new one? I dont see drops being created without new Drop(...) which I believe that pertains to?

@tristanmkernan

Copy link
Copy Markdown
Collaborator Author

The evals should be simple replaces... just remove the eval() they appear to be just basic operations?

I don't know, I don't want to touch that code right now.

Can you be more specific on the new one? I dont see drops being created without new Drop(...) which I believe that pertains to?

right, new Drop(..) is used for side effects instead of for creating an object. the linter rightly calls it out as bad code

@ktiedt

ktiedt commented Jul 5, 2018

Copy link
Copy Markdown
Collaborator

Ahh because Drop() is assigning itself to the hex instead of storing the new Drop() value... Ugh.

@DreadKnight
DreadKnight merged commit e1cbf91 into FreezingMoon:master Jul 6, 2018
CyberBishop pushed a commit to CyberBishop/AncientBeast that referenced this pull request Apr 20, 2023
lint should check all relevant js files, fixes FreezingMoon#1422
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants