chore: run lint and prettier on entire codebase

This commit is contained in:
Alessio Gravili
2024-07-11 15:27:01 -04:00
parent f8ab5a9f1e
commit 83fd4c6622
364 changed files with 2578 additions and 2658 deletions

View File

@@ -15,8 +15,8 @@ const dirname = path.dirname(filename)
export default buildConfigWithDefaults({
// ...extend config here
collections: [PostsCollection, MediaCollection],
globals: [MenuGlobal],
email: nodemailerAdapter(),
globals: [MenuGlobal],
onInit: async (payload) => {
await payload.create({
collection: 'users',
@@ -34,8 +34,8 @@ export default buildConfigWithDefaults({
})
const email = await payload.sendEmail({
to: 'test@example.com',
subject: 'This was sent on init',
to: 'test@example.com',
})
// Create image

View File

@@ -1,11 +1,12 @@
import { rootEslintConfig, rootParserOptions } from '../../eslint.config.js'
import { rootParserOptions } from '../../eslint.config.js'
import testEslintConfig from '../eslint.config.js'
/** @typedef {import('eslint').Linter.FlatConfig} */
let FlatConfig
/** @type {FlatConfig[]} */
export const index = [
...rootEslintConfig,
...testEslintConfig,
{
languageOptions: {
parserOptions: {