summaryrefslogtreecommitdiff
path: root/src/javascript.ts
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2020-02-14 11:17:13 +0300
committerValentin Popov <info@valentineus.link>2020-02-14 11:18:59 +0300
commit570290241dc983abfb14bb20b0e8eb8b3a74a22d (patch)
tree02927cc2b68251f68669056cdc7b31abe4ab0c07 /src/javascript.ts
parentf9ebfb719aa850b01ce3e1ee3a9d7ab359e73058 (diff)
downloadeslint-config-570290241dc983abfb14bb20b0e8eb8b3a74a22d.tar.xz
eslint-config-570290241dc983abfb14bb20b0e8eb8b3a74a22d.zip
feat(security): Initial security plugin
Signed-off-by: Valentin Popov <info@valentineus.link>
Diffstat (limited to 'src/javascript.ts')
-rw-r--r--src/javascript.ts8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/javascript.ts b/src/javascript.ts
index 6dd6ac8..9026379 100644
--- a/src/javascript.ts
+++ b/src/javascript.ts
@@ -1,5 +1,6 @@
import rDefault from "./rules/default.json";
import rImport from "./rules/import.json";
+import rSecurity from "./rules/security.json";
module.exports = {
"extends": [
@@ -7,10 +8,15 @@ module.exports = {
"plugin:import/errors",
"plugin:import/recommended",
"plugin:import/warnings",
+ "plugin:security/recommended",
+ ],
+ "plugins": [
+ "import",
+ "security",
],
- "plugins": ["import"],
"rules": {
...rDefault,
...rImport,
+ ...rSecurity,
},
};