diff options
author | Eric Bailey <git@esb.lol> | 2024-08-23 15:55:18 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-23 13:55:18 -0700 |
commit | fc5cc189b5de42ac1ee44ab0cf3ad78c2a747137 (patch) | |
tree | 22aa03b96585dbf58f644e9b044b37fea60c4d65 /.eslintrc.js | |
parent | b5ea87c9817c4e55293baa18e6f6a40cde5d2b04 (diff) | |
download | voidsky-fc5cc189b5de42ac1ee44ab0cf3ad78c2a747137.tar.zst |
Use moderatePost_wrapped for post embeds (#4981)
* Use moderatePost_wrapped * Add lint rule
Diffstat (limited to '.eslintrc.js')
-rw-r--r-- | .eslintrc.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/.eslintrc.js b/.eslintrc.js index 9d2b7bbb1..2d5f2822a 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -71,6 +71,19 @@ module.exports = { 'simple-import-sort/exports': 'warn', // TODO: Reenable when we figure out why it gets stuck on CI. // 'react-compiler/react-compiler': 'error', + 'no-restricted-imports': [ + 'error', + { + paths: [ + { + name: '@atproto/api', + importNames: ['moderatePost'], + message: + 'Please use `moderatePost_wrapped` from `#/lib/moderatePost_wrapped` instead.', + }, + ], + }, + ], }, ignorePatterns: [ '**/__mocks__/*.ts', |