import js from '@eslint/js';
import globals from 'globals';

export default [
    js.configs.recommended,
    {
        files: ["**/*.js"],
        languageOptions: {
            globals: {
                ...globals.node,
            },
            ecmaVersion: 13,
            sourceType: "module"
        },
        rules: {
            semi: "error",
            "prefer-const": "error",
            "no-use-before-define": "error",
            "no-shadow": "error"
        }
    }
];
