.eslintrc.js 667 B

123456789101112131415161718
  1. // npm i -D @typescript-eslint/eslint-plugin @typescript-eslint/parser eslint eslint-config-prettier eslint-plugin-tree-shaking
  2. module.exports = {
  3. root: true,
  4. parser: '@typescript-eslint/parser',
  5. plugins: ['@typescript-eslint', 'tree-shaking'],
  6. extends: [
  7. 'eslint:recommended',
  8. 'plugin:@typescript-eslint/eslint-recommended',
  9. 'plugin:@typescript-eslint/recommended',
  10. 'prettier/@typescript-eslint',
  11. ],
  12. rules: {
  13. '@typescript-eslint/no-explicit-any': 'off',
  14. '@typescript-eslint/ban-ts-ignore': 'off',
  15. 'tree-shaking/no-side-effects-in-initialization': 'error',
  16. '@typescript-eslint/explicit-module-boundary-types': 'off'
  17. },
  18. }