diff --git a/.eslintrc.json b/.eslintrc.json index f2f43f14e7..3d30288050 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -386,6 +386,20 @@ "browser": false, "commonjs": false, "shared-node-browser": true + }, + "rules": { + "import/no-restricted-paths": [ + "error", + { + "zones": [ + { + "target": "./static/shared", + "from": ".", + "except": ["./node_modules", "./static/shared"] + } + ] + } + ] } } ]