index.js 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. module.exports = {
  2. env: {
  3. es6: true,
  4. },
  5. globals: {
  6. Atomics: 'readonly',
  7. SharedArrayBuffer: 'readonly',
  8. },
  9. parser: '@typescript-eslint/parser',
  10. parserOptions: {
  11. ecmaFeatures: {
  12. jsx: true,
  13. },
  14. ecmaVersion: 2019,
  15. sourceType: 'module',
  16. },
  17. extends: [
  18. 'plugin:react/recommended',
  19. 'standard',
  20. // jsx-a11y conflicts with pioneer rules. At time of writing
  21. // 84 problems -> We want to avoid as much as possible changing code in pioneer at least
  22. // from polkadot-js code base to make it possible to pull from upstream as easily as possible.
  23. // So Leaving out of for now. But it is recommended to add to all joystream react projects
  24. // 'plugin:jsx-a11y/recommended',
  25. // Turns off all rules that are unnecessary or might conflict with Prettier.
  26. // Allows us to do formatting separately from linting.
  27. // 'prettier',
  28. // 'prettier/@typescript-eslint',
  29. // 'prettier/react',
  30. // 'prettier/standard',
  31. ],
  32. plugins: [],
  33. settings: {
  34. version: 'detect',
  35. },
  36. }