eslint.config.js 593 B

1234567891011121314151617181920212223
  1. import eslint from "@eslint/js";
  2. import globals from "globals";
  3. import babelParser from "@babel/eslint-parser";
  4. import eslintPluginPrettierRecommended from "eslint-plugin-prettier/recommended";
  5. export default [
  6. eslint.configs.recommended,
  7. {
  8. languageOptions: {
  9. globals: {
  10. ...globals.browser,
  11. },
  12. parser: babelParser,
  13. ecmaVersion: 2022,
  14. sourceType: "module",
  15. parserOptions: {
  16. requireConfigFile: false,
  17. },
  18. },
  19. },
  20. eslintPluginPrettierRecommended,
  21. ];