Skip to content

hexojs/eslint-config-hexo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

eslint-config-hexo

npm version

ESLint config for Hexo projects

Installation

$ npm install eslint-config-hexo --save-dev

Usage

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
    }
  }
];

License

MIT