Skip to content

Commit

Permalink
rm .at too
Browse files Browse the repository at this point in the history
  • Loading branch information
mmkal committed Mar 28, 2024
1 parent d44bdac commit 1f299d7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ module.exports = [
{ignores: ['lib/**', 'examples/**', 'test/generated/**']}, //
{
rules: {
// todo[>=4.0.0] drop lower node versions support and remove this
'unicorn/prefer-string-replace-all': 'off', // still supporting node 12 :(
// todo[>=4.0.0] drop lower node version support and remove these
'unicorn/prefer-string-replace-all': 'off',
'unicorn/prefer-at': 'off',
},
},
]
2 changes: 1 addition & 1 deletion src/umzug.ts
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ export class Umzug<Ctx extends object = object> extends emittery<UmzugEvents<Ctx
: ['.js', '.cjs', '.mjs', '.ts', '.cts', '.mts', '.sql']

const existing = await this.migrations(context)
const last = existing.at(-1)
const last = existing.slice(-1)[0]

const folder = options.folder || this.options.create?.folder || (last?.path && path.dirname(last.path))

Expand Down

0 comments on commit 1f299d7

Please sign in to comment.