haperone_local-image-compress/eslint.config.mjs
2026-06-16 00:12:41 +02:00

41 lines
1 KiB
JavaScript

import tsParser from "@typescript-eslint/parser";
import tsPlugin from "@typescript-eslint/eslint-plugin";
export default [
{
ignores: [
"dist/**",
"dist-ts/**",
"node_modules/**",
"qa-backups/**",
"qa-screenshots/**",
"src-ts/.claude/**",
"**/.claude/**"
]
},
{
files: ["src-ts/**/*.ts"],
languageOptions: {
parser: tsParser,
parserOptions: {
project: "./tsconfig.json",
tsconfigRootDir: import.meta.dirname
}
},
plugins: {
"@typescript-eslint": tsPlugin
},
rules: {
"@typescript-eslint/no-floating-promises": ["error", { ignoreVoid: false }],
"@typescript-eslint/no-unnecessary-type-assertion": "error",
"no-empty": ["error", { allowEmptyCatch: false }],
"no-restricted-syntax": [
"error",
{
selector: "CallExpression[callee.object.name='console'][callee.property.name='log']",
message: "console.log is forbidden in production code."
}
]
}
}
];