.eslintrc.js 896 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. "use strict";
  2. module.exports = {
  3. "env": {
  4. "browser": true,
  5. "commonjs": true,
  6. "es2021": true,
  7. "node": true
  8. },
  9. "extends": "eslint:recommended",
  10. "parserOptions": {
  11. "ecmaVersion": "latest"
  12. },
  13. "ignorePatterns": ["vendor/*.js", "dist/*.js", "test/jquery-1.8.3.min.js"],
  14. "rules": {
  15. "indent": [
  16. "error",
  17. 4
  18. ],
  19. "linebreak-style": [
  20. "error",
  21. "unix"
  22. ],
  23. "quotes": [
  24. "error",
  25. "double"
  26. ],
  27. "semi": [
  28. "error",
  29. "always"
  30. ],
  31. "curly": "error",
  32. "eqeqeq": "error",
  33. "no-new": "error",
  34. "no-caller": "error",
  35. "guard-for-in": "error",
  36. "no-extend-native": "error",
  37. "strict": [
  38. "error",
  39. "global"
  40. ],
  41. }
  42. };