Skip to content

Commit b1294ea

Browse files
authored
docs: update usage in README.md (#84)
1 parent ea0ca0d commit b1294ea

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

README.md

+16-4
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,24 @@ $ npm install eslint-config-hexo --save-dev
1212

1313
## Usage
1414

15-
In `.eslintrc`
15+
In `eslint.config.js`
1616

1717
``` js
18-
{
19-
"extends": "hexo"
20-
}
18+
const hexoTsLintConfig = require('eslint-config-hexo/ts');
19+
20+
module.exports = [
21+
...hexoTsLintConfig,
22+
{
23+
languageOptions: {
24+
ecmaVersion: 2020,
25+
},
26+
rules: {
27+
"@typescript-eslint/no-explicit-any": 0,
28+
"@typescript-eslint/ban-ts-comment": 0,
29+
"@typescript-eslint/no-this-alias": 0
30+
}
31+
}
32+
];
2133
```
2234

2335
## License

0 commit comments

Comments
 (0)