Skip to content

Commit

Permalink
docs: update usage in README.md (#84)
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshinorin authored Jan 17, 2025
1 parent ea0ca0d commit b1294ea
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,24 @@ $ npm install eslint-config-hexo --save-dev

## Usage

In `.eslintrc`
In `eslint.config.js`

``` js
{
"extends": "hexo"
}
const hexoTsLintConfig = require('eslint-config-hexo/ts');

module.exports = [
...hexoTsLintConfig,
{
languageOptions: {
ecmaVersion: 2020,
},
rules: {
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/ban-ts-comment": 0,
"@typescript-eslint/no-this-alias": 0
}
}
];
```

## License
Expand Down

0 comments on commit b1294ea

Please sign in to comment.