Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chore: Convert non-lib/test files to template literals (refs #6407) #7329

Merged
merged 1 commit into from Oct 10, 2016

Conversation

kaicataldo
Copy link
Member

@kaicataldo kaicataldo commented Oct 9, 2016

What is the purpose of this pull request? (put an "X" next to item)

[ ] Documentation update
[ ] Bug fix (template)
[ ] New rule (template)
[ ] Changes an existing rule (template)
[ ] Add autofixing to a rule
[ ] Add a CLI option
[ ] Add something to the core
[X] Other, please explain:
Chore: using the new prefer-template autofix to start converting files so we can enable prefer-template in the ESLint repo. Originally discussed here.

Please check each item to ensure your pull request is ready:

  • I've read the pull request guide
  • I've included tests for my change
  • I've updated documentation for my change (if appropriate)

What changes did you make? (Give an overview)
Used the new prefer-template autofix (followed up by the template-curly-spacing, which is already enabled in the ESLint repo) on JS files not inside lib/ or tests/.

Is there anything you'd like reviewers to focus on?
I manually checked everything, but would love to get eyes on this, especially since Makefile is untested.

I manually changed some now unnecessary escaped double quotes into unescaped double quotes.

@mention-bot
Copy link

@kaicataldo, thanks for your PR! By analyzing the history of the files in this pull request, we identified @nzakas, @mysticatea and @btmills to be potential reviewers.

@eslintbot
Copy link

LGTM

@kaicataldo kaicataldo merged commit 93214aa into master Oct 10, 2016
@kaicataldo kaicataldo deleted the prefer-template branch October 10, 2016 00:13
@@ -68,7 +68,7 @@ const NODE = "node ", // intentional extra space
TEST_FILES = getTestFilePatterns(),
PERF_ESLINTRC = path.join(PERF_TMP_DIR, "eslintrc.yml"),
PERF_MULTIFILES_TARGET_DIR = path.join(PERF_TMP_DIR, "eslint"),
PERF_MULTIFILES_TARGETS = PERF_MULTIFILES_TARGET_DIR + path.sep + "{lib,tests" + path.sep + "lib}" + path.sep + "**" + path.sep + "*.js",
PERF_MULTIFILES_TARGETS = `${PERF_MULTIFILES_TARGET_DIR + path.sep}{lib,tests${path.sep}lib}${path.sep}**${path.sep}*.js`,
Copy link
Member

Choose a reason for hiding this comment

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

Wondering if this would be more readable as an array join?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, definitely could be - I'm not opposed to that :)

@eslint-deprecated eslint-deprecated bot locked and limited conversation to collaborators Feb 6, 2018
@eslint-deprecated eslint-deprecated bot added the archived due to age This issue has been archived; please open a new issue for any further discussion label Feb 6, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
archived due to age This issue has been archived; please open a new issue for any further discussion
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants