eslint.config.mjs 548 B

12345678910111213141516171819202122232425
  1. import globals from "globals";
  2. export default [{
  3. files: ["**/*.js"],
  4. languageOptions: {
  5. globals: {
  6. ...globals.commonjs,
  7. ...globals.node,
  8. ...globals.mocha,
  9. },
  10. ecmaVersion: 2022,
  11. sourceType: "module",
  12. },
  13. rules: {
  14. "no-const-assign": "warn",
  15. "no-this-before-super": "warn",
  16. "no-undef": "warn",
  17. "no-unreachable": "warn",
  18. "no-unused-vars": "warn",
  19. "constructor-super": "warn",
  20. "valid-typeof": "warn",
  21. },
  22. }];