forked from microsoft/eslint-plugin-sdl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcommon.js
30 lines (27 loc) · 803 Bytes
/
common.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
/**
* Shareable config for common JavaScript apps.
*/
"use strict";
module.exports = {
plugins: [
"@microsoft/sdl"
],
rules: {
"no-caller": "error",
"no-delete-var": "error",
"no-eval": "error",
"no-implied-eval": "error",
"no-new-func": "error",
"@microsoft/sdl/no-cookies": "error",
"@microsoft/sdl/no-document-domain": "error",
"@microsoft/sdl/no-document-write": "error",
"@microsoft/sdl/no-html-method": "error",
"@microsoft/sdl/no-inner-html": "error",
"@microsoft/sdl/no-insecure-url": "error",
"@microsoft/sdl/no-msapp-exec-unsafe": "error",
"@microsoft/sdl/no-postmessage-star-origin": "error",
"@microsoft/sdl/no-winjs-html-unsafe": "error"
}
}