eslint.config.mjs 641 B

12345678910111213141516171819202122232425262728293031323334
  1. import typescriptEslint from "@typescript-eslint/eslint-plugin"
  2. import tsParser from "@typescript-eslint/parser"
  3. export default [
  4. {
  5. files: ["**/*.ts"],
  6. },
  7. {
  8. plugins: {
  9. "@typescript-eslint": typescriptEslint,
  10. },
  11. languageOptions: {
  12. parser: tsParser,
  13. ecmaVersion: 2022,
  14. sourceType: "module",
  15. },
  16. rules: {
  17. "@typescript-eslint/naming-convention": [
  18. "warn",
  19. {
  20. selector: "import",
  21. format: ["camelCase", "PascalCase"],
  22. },
  23. ],
  24. curly: "warn",
  25. eqeqeq: "warn",
  26. "no-throw-literal": "warn",
  27. semi: "warn",
  28. },
  29. },
  30. ]