Skip to content

Commit

Permalink
chore: update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
limonte committed Aug 1, 2024
1 parent b8fab51 commit 0b4dbd0
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,13 @@ $ yarn add --dev @sweetalert2/eslint-config
Once the `@sweetalert2/eslint-config` package is installed, you can use it by specifying `@sweetalert2/eslint-config` in the [`extends`](http://eslint.org/docs/user-guide/configuring#extending-configuration-files) section of your [ESLint configuration](http://eslint.org/docs/user-guide/configuring).

```js
{
"extends": "@sweetalert2/eslint-config",
"rules": {
// Additional, per-project rules...
}
}
import sweetAlert2EslintConfig from '@sweetalert2/eslint-config'

// eslint.config.js
export default [
...sweetAlert2EslintConfig,
{
// Additional, project-specific rules...
},
]
```

0 comments on commit 0b4dbd0

Please sign in to comment.