.eslintrc.js 974 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. module.exports = {
  2. env: {
  3. browser: true,
  4. es2021: true,
  5. jest: true,
  6. node: true,
  7. },
  8. extends: [
  9. "eslint:recommended",
  10. "plugin:react/recommended",
  11. "plugin:@typescript-eslint/recommended",
  12. "prettier",
  13. ],
  14. overrides: [],
  15. parser: "@typescript-eslint/parser",
  16. parserOptions: {
  17. ecmaVersion: "latest",
  18. sourceType: "module",
  19. },
  20. plugins: ["react", "@typescript-eslint", "prettier", "coriolis-web"],
  21. settings: {
  22. "import/resolver": {
  23. typescript: {},
  24. },
  25. react: {
  26. version: "detect",
  27. },
  28. },
  29. ignorePatterns: ["*.svg", "*.png", "*.jpg", "*.jpeg", "*.woff"],
  30. rules: {
  31. "coriolis-web/import-no-duplicate-name": "error",
  32. "@typescript-eslint/ban-ts-comment": "off",
  33. "@typescript-eslint/no-explicit-any": "off",
  34. "@typescript-eslint/no-non-null-assertion": "off",
  35. "@typescript-eslint/no-empty-function": "off",
  36. "@typescript-eslint/no-non-null-asserted-optional-chain": "off",
  37. },
  38. };