forgejo-sync/eslint.config.mjs
2025-03-23 19:02:00 -04:00

39 lines
No EOL
992 B
JavaScript

import typescriptEslint from "@typescript-eslint/eslint-plugin";
import tsParser from "@typescript-eslint/parser";
export default [{
files: ["**/*.ts"],
}, {
plugins: {
"@typescript-eslint": typescriptEslint,
},
languageOptions: {
parser: tsParser,
ecmaVersion: 2022,
sourceType: "module",
},
rules: {
"@typescript-eslint/naming-convention": [
"warn",
{
selector: "variable",
format: ["camelCase"],
},
{
selector: "import",
format: ["camelCase", "PascalCase"],
}
],
"@typescript-eslint/no-inferrable-types": "warn",
curly: "warn",
eqeqeq: "warn",
"no-throw-literal": "warn",
semi: "warn",
quotes: ["warn", "double"],
"no-unused-vars": "warn",
"no-constant-condition": "warn",
"no-irregular-whitespace": "warn",
},
}];