.eslintrc.js 740 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. const ts = {
  2. files: ['**/*.ts'],
  3. extends: [
  4. 'eslint:recommended',
  5. 'plugin:@typescript-eslint/eslint-recommended',
  6. 'plugin:@typescript-eslint/recommended'
  7. ],
  8. parser: '@typescript-eslint/parser',
  9. parserOptions: {
  10. ecmaVersion: 2018,
  11. sourceType: 'module',
  12. project: './tsconfig.json'
  13. },
  14. plugins: ['@typescript-eslint'],
  15. rules: {
  16. '@typescript-eslint/no-explicit-any': 0
  17. }
  18. };
  19. module.exports = {
  20. env: {
  21. es6: true,
  22. node: true
  23. },
  24. extends: 'eslint:recommended',
  25. parserOptions: {
  26. sourceType: 'module',
  27. ecmaVersion: 2018
  28. },
  29. rules: {
  30. 'require-atomic-updates': 0,
  31. indent: ['error', 'tab'],
  32. 'linebreak-style': ['error', 'unix'],
  33. quotes: ['error', 'single'],
  34. semi: ['error', 'always']
  35. },
  36. overrides: [ts]
  37. };