-
Notifications
You must be signed in to change notification settings - Fork 1
/
security.js
34 lines (30 loc) · 899 Bytes
/
security.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
31
32
33
34
"use strict";
/**
* Rules that prevent security vulnerabilities.
*/
module.exports = {
rules: {
/**
* Prevents using the built-in Function constructor.
*
* @see https://palantir.github.io/tslint/rules/function-constructor/
*/
"function-constructor": true,
/**
* Disallows importing the specified modules via `import` and `require`,
* or importing specific named exports of the specified modules.
*
* @see https://palantir.github.io/tslint/rules/import-blacklist/
*
* This rule is currently disabled because there are no modules to blacklist yet.
* But there may be some that are blacklisted for security reasons at some point.
*/
"import-blacklist": false,
/**
* Disallows `eval` function invocations.
*
* @see https://palantir.github.io/tslint/rules/no-eval/
*/
"no-eval": true,
}
};