.eslintrc.js 742 B

1234567891011121314151617181920212223242526272829303132
  1. module.exports = {
  2. parser: '@typescript-eslint/parser',
  3. plugins: ['@typescript-eslint', 'emotion'],
  4. extends: ['sentry-app/strict'],
  5. globals: {
  6. require: false,
  7. expect: false,
  8. sinon: false,
  9. MockApiClient: true,
  10. TestStubs: true,
  11. tick: true,
  12. jest: true,
  13. },
  14. rules: {
  15. 'emotion/jsx-import': 'off',
  16. 'emotion/no-vanilla': 'error',
  17. 'emotion/import-from-emotion': 'error',
  18. 'emotion/styled-import': 'error',
  19. },
  20. overrides: [
  21. {
  22. files: ['*.ts', '*.tsx'],
  23. rules: {
  24. '@typescript-eslint/no-unused-vars': 'off',
  25. 'no-unused-vars': 'off',
  26. // https://github.com/yannickcr/eslint-plugin-react/issues/2066
  27. 'react/sort-comp': 'warn',
  28. },
  29. },
  30. ],
  31. };