feat(security): Initial security plugin
Signed-off-by: Valentin Popov <info@valentineus.link>
This commit is contained in:
@ -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,
|
||||
},
|
||||
};
|
||||
|
1
src/rules/security.json
Normal file
1
src/rules/security.json
Normal file
@ -0,0 +1 @@
|
||||
{}
|
Reference in New Issue
Block a user