db-migrate / db-migrate/node-db-migrate

Use single quotes in .js files exports._meta.versions

Open
#745 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
2.3k
Forks
361
PR merge metrics
No merged PRs in 30d

Description

## I'm submitting a...

- [x] Feature request
- [ ] Question

## Current behavior

The current template for .js files is:

```javascript
...
exports._meta = {
"version": 1
};
...
```

## Expected behavior

Can the template for .js files be changed to:

```javascript
...
exports._meta = {
'version': 1
};
...
```

## Minimal reproduction of the problem with instructions

## What is the motivation / use case for changing the behavior?

I enforce single quotes with my linter `jshint` and it complains about using double quotes. Plus everywhere else in the file uses single quotes, hopefully double quotes are not required.

## Environment



db-migrate version: 0.11.12
db-migrate driver with versions: pg

Additional information:
- Node version: v14.17.5
- Platform: Mac

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.