Skip to content

Commit

Permalink
refactor: keep eslint changes
Browse files Browse the repository at this point in the history
  • Loading branch information
t-col committed Dec 9, 2024
1 parent c94ee8c commit c11112d
Show file tree
Hide file tree
Showing 9 changed files with 109 additions and 2,500 deletions.
2 changes: 0 additions & 2 deletions .eslintignore

This file was deleted.

4 changes: 0 additions & 4 deletions .eslintrc.js

This file was deleted.

8 changes: 8 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import js from '@eslint/js'
import mochaPlugin from 'eslint-plugin-mocha'

export default [
{ ignores: ['node_modules', 'dist'], files: ['index.js', 'test/**/*.js'] },
js.configs.recommended,
mochaPlugin.configs.flat.recommended,
]
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ const getIdsFromUrn = (urn) => {
return undefined
}

// eslint-disable-next-line no-unused-vars
const [_, spaceId, environmentId = 'master', entryId] = urn.match(regExp)
return { spaceId, environmentId, entryId }
}
Expand Down
Loading

0 comments on commit c11112d

Please sign in to comment.