您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

.eslintrc.js 399B

123456789101112131415
  1. module.exports = {
  2. root: true,
  3. parser: '@typescript-eslint/parser',
  4. plugins: ['@typescript-eslint'],
  5. extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended'],
  6. overrides: [
  7. {
  8. // enable the rule specifically for TypeScript files
  9. files: ['*.ts', '*.tsx'],
  10. rules: {
  11. '@typescript-eslint/explicit-module-boundary-types': [0],
  12. },
  13. },
  14. ],
  15. }