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: drop grunt, jshint -> eslint, ESM in tests #30

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

brettz9
Copy link
Collaborator

@brettz9 brettz9 commented Jan 14, 2024

Closes #2 .

This PR moves away from Grunt to package.json scripts as per most current projects' practices.

It also switches jshint to the more widely used eslint.

The switch to ESM in tests necessitated redefining __dirname which is not present by default in modules (and where importing of JSON is only supported by the latest Node versions). There were also a couple unused variables I removed to handle linting errors.

The tests are still passing if you run npm run mocha, but npm test is currently failing as it depends on eslint passing, and there are some linting errors in the main src file which still need to be fixed (ESLint's recommended config is more strict about certain things). I plan to do this in a separate PR, allowing this PR to have less noise and focus more on the chores.

Please let me know your preferences for PRs (e.g., if you don't care about having PRs for minor chores).

@brettz9 brettz9 added the chore label Jan 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Gruntfile / package.json prune
1 participant