2023-09-22 14:34:16 +02:00
|
|
|
module.exports = {
|
2025-05-29 09:33:05 -07:00
|
|
|
root: true,
|
2023-09-22 14:34:16 +02:00
|
|
|
parserOptions: {
|
2025-05-29 09:33:05 -07:00
|
|
|
ecmaVersion: 2022,
|
|
|
|
|
sourceType: "module"
|
2023-09-22 14:34:16 +02:00
|
|
|
},
|
|
|
|
|
env: {
|
|
|
|
|
node: true,
|
2025-05-29 09:33:05 -07:00
|
|
|
browser: true,
|
|
|
|
|
es2021: true
|
|
|
|
|
},
|
|
|
|
|
plugins: ["import"],
|
|
|
|
|
extends: ["eslint:recommended"],
|
|
|
|
|
rules: {
|
|
|
|
|
"no-console": "off"
|
2023-09-22 14:34:16 +02:00
|
|
|
},
|
|
|
|
|
globals: {
|
|
|
|
|
process: true
|
2025-05-29 09:33:05 -07:00
|
|
|
},
|
|
|
|
|
overrides: [
|
|
|
|
|
{
|
|
|
|
|
files: ["*.spec.ts", "**/test_utils/*.ts"],
|
|
|
|
|
rules: {
|
|
|
|
|
"@typescript-eslint/no-non-null-assertion": "off",
|
|
|
|
|
"@typescript-eslint/no-explicit-any": "off",
|
|
|
|
|
"no-console": "off",
|
|
|
|
|
"import/no-extraneous-dependencies": ["error", { "devDependencies": true }]
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
files: ["*.ts"],
|
|
|
|
|
parser: "@typescript-eslint/parser",
|
|
|
|
|
parserOptions: {
|
|
|
|
|
tsconfigRootDir: __dirname,
|
|
|
|
|
project: "./tsconfig.dev.json"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
files: ["*.d.ts"],
|
|
|
|
|
rules: {
|
|
|
|
|
"no-unused-vars": "off"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
2023-09-22 14:34:16 +02:00
|
|
|
};
|