mirror of
https://github.com/haperone/local-image-compress.git
synced 2026-07-22 06:44:26 +00:00
41 lines
1 KiB
JavaScript
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."
|
|
}
|
|
]
|
|
}
|
|
}
|
|
];
|