common.js 803 B

123456789101112131415161718192021222324252627282930
  1. // Copyright (c) Microsoft Corporation.
  2. // Licensed under the MIT License.
  3. /**
  4. * Shareable config for common JavaScript apps.
  5. */
  6. "use strict";
  7. module.exports = {
  8. plugins: [
  9. "@microsoft/sdl"
  10. ],
  11. rules: {
  12. "no-caller": "error",
  13. "no-delete-var": "error",
  14. "no-eval": "error",
  15. "no-implied-eval": "error",
  16. "no-new-func": "error",
  17. "@microsoft/sdl/no-cookies": "error",
  18. "@microsoft/sdl/no-document-domain": "error",
  19. "@microsoft/sdl/no-document-write": "error",
  20. "@microsoft/sdl/no-html-method": "error",
  21. "@microsoft/sdl/no-inner-html": "error",
  22. "@microsoft/sdl/no-insecure-url": "error",
  23. "@microsoft/sdl/no-msapp-exec-unsafe": "error",
  24. "@microsoft/sdl/no-postmessage-star-origin": "error",
  25. "@microsoft/sdl/no-winjs-html-unsafe": "error"
  26. }
  27. }