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