Use moderatePost_wrapped for post embeds (#4981)
* Use moderatePost_wrapped * Add lint rule
This commit is contained in:
parent
b5ea87c981
commit
fc5cc189b5
4 changed files with 18 additions and 3 deletions
13
.eslintrc.js
13
.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',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue