Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

chore(*): switch from JSHint/JSCS to ESLint #14993

Closed
wants to merge 1 commit into from

Conversation

mgol
Copy link
Member

@mgol mgol commented Aug 5, 2016

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
A build-related refactor.

What is the current behavior? (You can also link to an open issue here)
Code is linted via JSHint+JSCS.

What is the new behavior (if this is a feature change)?
Code is linted via ESLint.

Does this PR introduce a breaking change?
No.

Please check if the PR fulfills these requirements

Other information:
This is the last commit of PR #14952 backported to the v1.5.x branch with some required changes and .catch -> ['catch'], .finally -> ['finally']. The other commits from that PR are already backported; they weren't dangerous and cherry-picked cleanly.

This needs to be reviewed with two things in mind: the PR shouldn't introduce security issues and backwards incompatible changes.

@mgol mgol added this to the 1.5.x milestone Aug 5, 2016
@mgol mgol force-pushed the eslint-1.5 branch 2 times, most recently from bbead8c to 58829ce Compare August 5, 2016 21:59
@petebacondarwin
Copy link
Contributor

Only 308 files to review :-/

@petebacondarwin
Copy link
Contributor

I have LGTM the following files:

  • parse.js
  • sce.js
  • compile.js
  • sanitize.js
  • jqlite.js

@@ -25,13 +26,13 @@ searchDataRequest.onload = function() {
searchData.forEach(function(page) {
index.add(page);
});
postMessage({ e: 'index-ready' });
postMessage({e: 'index-ready'});
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ooc, couldn't this also be self.postMessage? Is there any reason why you usd it below but not here (just being curious)?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point; I'll fix that after this PR lands on master and then backport it.

@gkalpak
Copy link
Member

gkalpak commented Aug 6, 2016

A couple of minor remarks/questions, but nothing blocking.
LGTM as soon as Travis is happy.

@Narretz
Copy link
Contributor

Narretz commented Aug 8, 2016

parse.js, sanitize.js, compile.js, jqlite.js and sce.js LGTM

gkalpak pushed a commit that referenced this pull request Aug 8, 2016
Partially cherry-picked from c322032

Ref #14952

Closes #14993
@gkalpak gkalpak closed this Aug 8, 2016
@gkalpak
Copy link
Member

gkalpak commented Aug 8, 2016

Merged as b1bc251.

@mgol mgol deleted the eslint-1.5 branch August 8, 2016 11:30
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants