chore(*): use prettier for formatting
This commit is contained in:
parent
6c659fe1d0
commit
ce869012ef
73 changed files with 1393 additions and 794 deletions
|
@ -8,7 +8,7 @@ export const addBlockedRobot = async () => {
|
|||
initDirectusClient(config);
|
||||
|
||||
const robots = await searchItems('robots', '/');
|
||||
let rootRobot = robots.find(r => r.path === '/');
|
||||
let rootRobot = robots.find((r) => r.path === '/');
|
||||
|
||||
if (!rootRobot) {
|
||||
console.log('ℹ️ No robots entry for `/` found. Creating one...');
|
||||
|
@ -23,7 +23,7 @@ export const addBlockedRobot = async () => {
|
|||
const { userAgent } = await inquirer.prompt({
|
||||
name: 'userAgent',
|
||||
message: '🤖 Enter the user-agent string to block:',
|
||||
validate: input => !!input || 'User-agent cannot be empty'
|
||||
validate: (input) => !!input || 'User-agent cannot be empty'
|
||||
});
|
||||
|
||||
const createdAgent = await createItem('user_agents', {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue