Skip to content

chore: drop grunt, jshint -> eslint, ESM in tests#30

Open
brettz9 wants to merge 1 commit intogeraintluff:masterfrom
brettz9:chores
Open

chore: drop grunt, jshint -> eslint, ESM in tests#30
brettz9 wants to merge 1 commit intogeraintluff:masterfrom
brettz9:chores

Conversation

@brettz9
Copy link
Copy Markdown
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