From c3bc5fb7292836492d856636846e5fbae3443cf5 Mon Sep 17 00:00:00 2001 From: moonrailgun Date: Tue, 8 Feb 2022 18:12:26 +0800 Subject: [PATCH] chore: add plugins eslint check --- web/plugins/.eslintrc.js | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 web/plugins/.eslintrc.js 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`', + }, + ], + }, +};