chore: run lint and prettier on entire codebase
This commit is contained in:
@@ -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: {
|
||||
|
||||
@@ -66,10 +66,10 @@ describe('create-payload-app', () => {
|
||||
|
||||
const firstResult = await initNext({
|
||||
'--debug': true,
|
||||
projectDir,
|
||||
dbType: 'mongodb',
|
||||
useDistFiles: true, // create-payload-app/dist/template
|
||||
packageManager: 'pnpm',
|
||||
projectDir,
|
||||
useDistFiles: true, // create-payload-app/dist/template
|
||||
})
|
||||
|
||||
// Will fail because we detect top-level layout.tsx file
|
||||
@@ -90,10 +90,10 @@ describe('create-payload-app', () => {
|
||||
// Rerun after moving files
|
||||
const result = await initNext({
|
||||
'--debug': true,
|
||||
projectDir,
|
||||
dbType: 'mongodb',
|
||||
useDistFiles: true, // create-payload-app/dist/app/(payload)
|
||||
packageManager: 'pnpm',
|
||||
projectDir,
|
||||
useDistFiles: true, // create-payload-app/dist/app/(payload)
|
||||
})
|
||||
|
||||
expect(result.success).toEqual(true)
|
||||
@@ -127,10 +127,10 @@ describe('create-payload-app', () => {
|
||||
dependencies: Record<string, string>
|
||||
}
|
||||
expect(packageJson.dependencies).toMatchObject({
|
||||
payload: expect.any(String),
|
||||
'@payloadcms/db-mongodb': expect.any(String),
|
||||
'@payloadcms/richtext-lexical': expect.any(String),
|
||||
'@payloadcms/next': expect.any(String),
|
||||
'@payloadcms/richtext-lexical': expect.any(String),
|
||||
payload: expect.any(String),
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user