ESLint config for Hexo projects
$ npm install eslint-config-hexo --save-dev
In eslint.config.js
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
}
}
];
MIT