diff --git a/web/plugins/.eslintrc.js b/web/plugins/.eslintrc.js new file mode 100644 index 00000000..c829263c --- /dev/null +++ b/web/plugins/.eslintrc.js @@ -0,0 +1,19 @@ +const rootlint = require('../../.eslintrc.js'); + +module.exports = { + ...rootlint, + rules: { + ...rootlint.rules, + 'no-restricted-imports': [ + 'error', + { + name: 'tailchat-shared', + message: 'Only allow use `@capital/*`', + }, + { + name: 'translate', + message: 'Maybe you should use `./translate`', + }, + ], + }, +};