2024-04-25 18:14:06 +02:00
|
|
|
const js = require('@eslint/js');
|
2024-04-25 18:26:35 +02:00
|
|
|
const globals = require('globals');
|
2024-04-25 18:14:06 +02:00
|
|
|
|
|
|
|
|
module.exports = [
|
|
|
|
|
js.configs.recommended,
|
|
|
|
|
{
|
|
|
|
|
files: ["**/*.js"],
|
|
|
|
|
languageOptions: {
|
2024-04-25 18:26:35 +02:00
|
|
|
globals: {
|
|
|
|
|
...globals.node,
|
|
|
|
|
},
|
2024-04-25 18:14:06 +02:00
|
|
|
ecmaVersion: 13,
|
|
|
|
|
sourceType: "commonjs"
|
|
|
|
|
},
|
|
|
|
|
rules: {
|
|
|
|
|
semi: "error",
|
2025-10-07 17:43:30 +02:00
|
|
|
"prefer-const": "error",
|
|
|
|
|
"no-use-before-define": "error",
|
2024-04-25 18:14:06 +02:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
];
|
|
|
|
|
|