mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-04-21 21:06:01 +02:00
42 lines
1.0 KiB
JavaScript
42 lines
1.0 KiB
JavaScript
import eslint from "@eslint/js";
|
|
import tseslint from "typescript-eslint";
|
|
|
|
export default tseslint.config(
|
|
eslint.configs.recommended,
|
|
...tseslint.configs.recommended,
|
|
{
|
|
ignores: ["build/", "public/", "gulpfile.js", "healthcheck.js", "opentelemetry.js"],
|
|
},
|
|
{
|
|
rules: {
|
|
"@typescript-eslint/no-explicit-any": "warn",
|
|
"@typescript-eslint/no-unused-vars": [
|
|
"warn",
|
|
{ argsIgnorePattern: "^_", varsIgnorePattern: "^_" },
|
|
],
|
|
"@typescript-eslint/no-require-imports": "off",
|
|
"@typescript-eslint/no-empty-object-type": "off",
|
|
"no-empty": "warn",
|
|
},
|
|
},
|
|
{
|
|
files: ["test/**/*.js"],
|
|
languageOptions: {
|
|
sourceType: "commonjs",
|
|
globals: {
|
|
describe: "readonly",
|
|
it: "readonly",
|
|
before: "readonly",
|
|
after: "readonly",
|
|
beforeEach: "readonly",
|
|
afterEach: "readonly",
|
|
__dirname: "readonly",
|
|
console: "readonly",
|
|
},
|
|
},
|
|
rules: {
|
|
"@typescript-eslint/no-unused-expressions": "off",
|
|
},
|
|
}
|
|
);
|