eslint.config.mjs 629 B

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