eslint.config.mjs 586 B

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