.eslintrc.cjs 522 B

123456789101112131415161718192021
  1. /* eslint-env node */
  2. module.exports = {
  3. env: { browser: true, es2020: true },
  4. extends: [
  5. "eslint:recommended",
  6. "plugin:react/recommended",
  7. "plugin:react/jsx-runtime",
  8. "plugin:react-hooks/recommended",
  9. ],
  10. parserOptions: { ecmaVersion: "latest", sourceType: "module" },
  11. settings: { react: { version: "18.2" } },
  12. plugins: ["react-refresh"],
  13. rules: {
  14. "react/prop-types": "off",
  15. "react-refresh/only-export-components": [
  16. "warn",
  17. { allowConstantExport: true },
  18. ],
  19. },
  20. };