aboutsummaryrefslogtreecommitdiff
path: root/.eslintrc.json
diff options
context:
space:
mode:
Diffstat (limited to '.eslintrc.json')
-rw-r--r--.eslintrc.json11
1 files changed, 11 insertions, 0 deletions
diff --git a/.eslintrc.json b/.eslintrc.json
index 3ea5d555..9a0402ed 100644
--- a/.eslintrc.json
+++ b/.eslintrc.json
@@ -200,6 +200,17 @@
],
"no-implicit-globals": "error",
"no-multi-spaces": "error",
+ "no-restricted-syntax": [
+ "error",
+ {
+ "message": "Avoid using JSON.parse(), prefer parseJson.",
+ "selector": "MemberExpression[object.name=JSON][property.name=parse]"
+ },
+ {
+ "message": "Avoid using Response.json(), prefer readResponseJson.",
+ "selector": "MemberExpression[property.name=json]"
+ }
+ ],
"no-trailing-spaces": "error",
"no-whitespace-before-property": "error",
"object-curly-spacing": [