recommended.js 837 B

1234567891011121314151617181920212223242526
  1. // Copyright (c) Microsoft Corporation.
  2. // Licensed under the MIT License.
  3. /**
  4. * Default SDL recommended config for all applications.
  5. */
  6. "use strict";
  7. module.exports = {
  8. plugins: [
  9. "@microsoft/sdl",
  10. "security"
  11. ],
  12. extends: [
  13. "plugin:@microsoft/sdl/required",
  14. "plugin:@microsoft/sdl/typescript"
  15. ],
  16. // TODO:
  17. // - Consider using SDL Recommended for identifying places in code that are often misused and can be potentially risky.
  18. // - The action should be to review the code, not to remove it.
  19. // - Good lists of such APIs
  20. // - https://github.com/mozfreddyb/eslint-plugin-scanjs-rules/tree/master/lib/rules
  21. // - https://github.com/ajinabraham/njsscan/tree/master/njsscan/rules/semantic_grep
  22. // - Eventually we might remove detect-* rules from security plugin as they have high FP-rate.
  23. }