.eslintrc.js 698 B

123456789101112131415161718192021222324252627282930313233
  1. module.exports = {
  2. env: {
  3. browser: true,
  4. es6: true,
  5. },
  6. extends: ['plugin:react/recommended', 'google', 'prettier', 'prettier/react'],
  7. globals: {
  8. Atomics: 'readonly',
  9. SharedArrayBuffer: 'readonly',
  10. },
  11. parser: 'babel-eslint',
  12. parserOptions: {
  13. ecmaFeatures: {
  14. jsx: true,
  15. },
  16. ecmaVersion: 2018,
  17. sourceType: 'module',
  18. },
  19. plugins: ['react', 'prettier', 'react-hooks'],
  20. rules: {
  21. 'require-jsdoc': 0,
  22. 'prettier/prettier': 'error',
  23. 'no-invalid-this': 0,
  24. 'react/prop-types': 0,
  25. 'react-hooks/rules-of-hooks': 'warn',
  26. 'react-hooks/exhaustive-deps': 'error',
  27. },
  28. settings: {
  29. react: {
  30. version: 'detect',
  31. },
  32. },
  33. };