Skip to content

Commit

Permalink
chore: remove md from eslint and use dot notation in readme examples
Browse files Browse the repository at this point in the history
  • Loading branch information
userquin committed Aug 16, 2024
1 parent 797508f commit 4e2084c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const pm = await detect()
if (!pm)
throw new Error('Could not detect package manager')

const command = COMMANDS[pm]['frozen']
const command = COMMANDS[pm].frozen
console.log(`Detected the ${pm.agent} package manager. You can run a frozen install with ${command}`)
```

Expand All @@ -71,7 +71,7 @@ const pm = await detect()
if (!pm)
throw new Error('Could not detect package manager')

const command = AGENT_COMMANDS[pm]['add']
const command = AGENT_COMMANDS[pm].add
console.log(`Detected the ${pm.agent} package manager. You can install "my-awesome-lib" with ${command(['my-awesome-lib']).toString()}`)
```

Expand Down
8 changes: 1 addition & 7 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
import antfu from '@antfu/eslint-config'

export default await antfu({
markdown: {
overrides: {
'dot-notation': 'off',
},
},
})
export default antfu()

0 comments on commit 4e2084c

Please sign in to comment.