.eslintrc.js 651 B

1234567891011121314151617181920212223242526272829303132
  1. // @ts-check
  2. const { defineConfig } = require('eslint-define-config');
  3. module.exports = defineConfig({
  4. extends: ['../.eslintrc.js'],
  5. env: {
  6. browser: false,
  7. },
  8. parserOptions: {
  9. project: true,
  10. tsconfigRootDir: __dirname,
  11. ecmaFeatures: {
  12. jsx: false,
  13. },
  14. ecmaVersion: 2021,
  15. },
  16. rules: {
  17. 'import/no-commonjs': 'off',
  18. 'import/no-extraneous-dependencies': [
  19. 'error',
  20. {
  21. devDependencies: [
  22. 'streaming/.eslintrc.js',
  23. ],
  24. optionalDependencies: false,
  25. peerDependencies: false,
  26. includeTypes: true,
  27. packageDir: __dirname,
  28. },
  29. ],
  30. },
  31. });