Skip to content

Commit

Permalink
Merge branch 'release/v0.24.17'
Browse files Browse the repository at this point in the history
  • Loading branch information
holtwick committed Sep 6, 2024
2 parents 86c4841 + 46bc7ce commit a0359ef
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
1 change: 0 additions & 1 deletion eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ export default antfu(
{
rules: {
...eslintRulesDefaults(),
'unicorn/consistent-function-scoping': 'off',
},
},
)
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "zeed",
"type": "module",
"version": "0.24.16",
"version": "0.24.17",
"description": "🌱 Simple foundation library",
"author": {
"name": "Dirk Holtwick",
Expand Down
4 changes: 3 additions & 1 deletion src/common/eslint-defaults.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export function eslintIgnoreDefaults() {
]
}

// https://eslint.org/docs/latest/rules/
/// Very much opiniated ESLint setting! Details to rules see https://eslint.org/docs/latest/rules/
export function eslintRulesDefaults() {
return {
'unused-imports/no-unused-vars': 'off',
Expand All @@ -44,6 +44,8 @@ export function eslintRulesDefaults() {
ImportDeclaration: 'never',
// ExportDeclaration: 'always'
}],

'unicorn/consistent-function-scoping': 'off',
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/node/open-browser.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ describe('openBrowser', () => {
it('should open URL on macOS', () => {
vi.mocked(platform).mockReturnValue('darwin')
openBrowser('http://example.com')
expect(exec).toHaveBeenCalledWith('open http://example.com')
expect(exec).toHaveBeenCalledWith('open -u http://example.com')
})

it('should open URL on Windows', () => {
Expand Down
2 changes: 1 addition & 1 deletion src/node/open-browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { platform } from 'node:os'
export function openBrowser(url: string) {
switch (platform()) {
case 'darwin':
exec(`open ${url}`)
exec(`open -u ${url}`)
break
case 'win32':
exec(`start ${url}`)
Expand Down

0 comments on commit a0359ef

Please sign in to comment.