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

Begin moving to ES6 syntax via linting changes. #196

Closed
wants to merge 1 commit into from
Closed

Begin moving to ES6 syntax via linting changes. #196

wants to merge 1 commit into from

Conversation

JRIngram
Copy link

@JRIngram JRIngram commented Oct 1, 2022

This PR begin the process of moving to ES6 syntax (which has been discussed in #194 ).

This PR achieves 3 things as part of fix:

1. Adds an explicit eslint script command to the package file.

The rationale behind this was so that the eslint rules could be tweaked to favour ES6 syntax. With an explicit linting script in place we can more easily identify where changes need to occur.

2. Change lint rule to use let / const

As raised in #194, let / const sytanx should be favoured. The linting rules have been changed to flag vars, and the issues have been fixed.

3. Fix previous linting errors

This repository was breaking its own linting rules, such as no-plus-plus. These have been resolved.

Note: I do not believe that this totally resolves #194 and that should remain open; this PR does, however, begin that journey should make the journey easier.

@JRIngram JRIngram changed the title Begin moving to ES6 syntax Begin moving to ES6 syntax via linting changes. Oct 1, 2022
@JRIngram JRIngram closed this by deleting the head repository Mar 9, 2024
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.

Introduce ES6 syntax
1 participant