import globals from "globals"; export default [{ languageOptions: { globals: { ...globals.browser, ...globals.commonjs, ...Object.fromEntries(Object.entries(globals.node).map(([key]) => [key, "off"])), }, ecmaVersion: 8, sourceType: "script", parserOptions: { ecmaFeatures: { jsx: true, }, }, }, rules: { "no-const-assign": "warn", "no-this-before-super": "warn", "no-undef": "warn", "no-unreachable": "warn", "no-unused-vars": "warn", "constructor-super": "warn", "valid-typeof": "warn", }, }];