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

@@ -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: {

View File

@@ -446,7 +446,6 @@ describe('Relationships', () => {
it('should validate the format of text id relationships', async () => {
await expect(async () =>
createPost({
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-expect-error Sending bad data to test error handling
customIdRelation: 1234,
}),
@@ -456,7 +455,6 @@ describe('Relationships', () => {
it('should validate the format of number id relationships', async () => {
await expect(async () =>
createPost({
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-expect-error Sending bad data to test error handling
customIdNumberRelation: 'bad-input',
}),