diff options
author | geireann <geireann.lindfield@gmail.com> | 2024-04-25 12:02:00 -0400 |
---|---|---|
committer | geireann <geireann.lindfield@gmail.com> | 2024-04-25 12:02:00 -0400 |
commit | bd3b34cce2ad85bfc96c16304b532d1510fd359e (patch) | |
tree | 3b8f85d19bc754a23adad5160ce0e6829f805b9a /eslint.config.mjs | |
parent | 8928ba1f332e319cab025987a098c87de607e853 (diff) |
fixed linear menu to not have scroll bar automatically on firefox
Diffstat (limited to 'eslint.config.mjs')
-rw-r--r-- | eslint.config.mjs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/eslint.config.mjs b/eslint.config.mjs new file mode 100644 index 000000000..6c2a28393 --- /dev/null +++ b/eslint.config.mjs @@ -0,0 +1,18 @@ +import globals from "globals"; +import pluginReactConfig from "eslint-plugin-react/configs/recommended.js"; + +import path from "path"; +import { fileURLToPath } from "url"; +import { FlatCompat } from "@eslint/eslintrc"; +import pluginJs from "@eslint/js"; + +// mimic CommonJS variables -- not needed if using CommonJS +const __filename = fileURLToPath(import.meta.url); +const __dirname = path.dirname(__filename); +const compat = new FlatCompat({baseDirectory: __dirname, recommendedConfig: pluginJs.configs.recommended}); + +export default [ + {languageOptions: { globals: globals.browser }}, + ...compat.extends("standard-with-typescript"), + pluginReactConfig, +];
\ No newline at end of file |