fix(eslint-config-fuf): update dependency eslint to v9 #1352
Annotations
10 errors
Run pnpm test:
packages/eslint-config-fuf/test/base.test.ts#L7
Error: Snapshot `fix should add missing semicolons 1` mismatched
- Expected
+ Received
- "// semicolons should be added
+ "
+
+ // semicolons should be added
- const test = 1;
+ const test = 1
- console.log(test);
+ console.log(test)
"
❯ test/base.test.ts:7:24
|
Run pnpm test:
packages/eslint-config-fuf/test/base.test.ts#L14
Error: Snapshot `unused variables with leading underscore should be allowed 1` mismatched
- Expected
+ Received
- "// unused variables with underscores are allowed
+ "
+
+ // unused variables with underscores are allowed
const _unused = 'I am unused';
const _alsoUnused = 'Me too';
"
❯ test/base.test.ts:14:24
|
Run pnpm test:
packages/eslint-config-fuf/test/prettier.test.ts#L7
Error: Snapshot `enforces indentation 1` mismatched
- Expected
+ Received
- "// indent types
+ "
+
+ // indent types
- type SomeTypeMagic = DoSomeTypeMagicThatIsVeryComplicatedSoItHasToBreak<
- [TypeMagicInputType]
- >;
+ type SomeTypeMagic = DoSomeTypeMagicThatIsVeryComplicatedSoItHasToBreak<[TypeMagicInputType]>;
// indent ternary
const createdAt = active
? // set active data to actual date
- parseDate(data.createdAt).toISOString()
+ parseDate(data.createdAt).toISOString()
: // set inactive data to end of month
- parseDate(data.createdAt).endOf('month').toISOString();
+ parseDate(data.createdAt).endOf('month').toISOString();
"
❯ test/prettier.test.ts:7:24
|
Run pnpm test:
packages/eslint-config-fuf/test/prettier.test.ts#L64
Error: Snapshot `sorts imports in blocks 1` mismatched
- Expected
+ Received
- "import type { ReactElement } from 'react';
+ "
+
+ import moduleStyles from './Some.module.css';
-
- import { describe, expect, it } from 'vitest';
+ import jsonFile from './data.json';
-
import fs from 'fs';
- import path from 'path';
+ import react from 'react';
- import react from 'react';
+ import relative from '../relative/path';
-
- import thirdParty from 'third-party-module';
+ import png from './image.png';
+ import alsoAbsolute from 'src/also/absolute';
-
import someOtherThing from '@fuf-stack/some-other-thing';
- import something from '@fuf-stack/something';
+ import { describe, expect, it } from 'vitest';
-
- import absolute from 'src/absolute';
- import alsoAbsolute from 'src/also/absolute';
+ import jpg from './image.jpg';
+ import path from 'path';
- import relative from '../relative/path';
+ import svg from './image.svg';
-
- import jsonFile from './data.json';
+ import thirdParty from 'third-party-module';
-
- import jpeg from './image.jpeg';
- import jpg from './image.jpg';
- import png from './image.png';
- import svg from './image.svg';
+ import something from '@fuf-stack/something';
+ import absolute from 'src/absolute';
+ import type { ReactElement } from 'react';
-
- import moduleStyles from './Some.module.css';
+ import jpeg from './image.jpeg';
// INFO: css imports will not be touched
import 'some-module/style.css';
"
❯ test/prettier.test.ts:64:24
|
Run pnpm test:
packages/eslint-config-fuf/test/prettier.test.ts#L71
Error: Snapshot `sorts tailwind classes 1` mismatched
- Expected
+ Received
@@ -1,20 +1,21 @@
- "import React from 'react';
+ "
+ import React from 'react';
import { cn, tv } from '@fuf-stack/pixel-utils';
// tailwind variants
const _variants = tv({
- base: 'rounded bg-blue-500 px-4 py-2 text-base text-white',
+ base: 'px-4 bg-blue-500 text-base rounded text-white py-2'
});
const MyComponent = () => {
- const _outsideCn = cn('rounded bg-blue-500 px-4 py-2 text-base text-white');
+ const _outsideCn = cn('px-4 bg-blue-500 text-base rounded text-white py-2');
return (
- <div className="rounded text-white">
+ <div className="text-white rounded">
- <div className={cn('rounded text-white')}>with cn</div>
+ <div className={cn('text-white rounded')}>with cn</div>
</div>
);
};
export default MyComponent;
❯ test/prettier.test.ts:71:24
|
Run pnpm test:
packages/eslint-config-fuf/test/react.test.ts#L10
Error: Snapshot `enforces component arrow-function definition 1` mismatched
- Expected
+ Received
- "const Component = () => {
+ "
+
+ function Component () {
return <div />;
};
export default Component;
"
❯ test/react.test.ts:10:24
|
Run pnpm test:
packages/eslint-config-fuf/test/react.test.ts#L18
AssertionError: expected [ { …(9) } ] to match object [ { messages: [ { …(3) } ] } ]
(11 matching properties omitted from actual)
- Expected
+ Received
Array [
Object {
"messages": Array [
Object {
- "message": "propType \"foo\" is not required, but has no corresponding default argument value.",
- "messageId": "shouldAssignObjectDefault",
- "ruleId": "react/require-default-props",
+ "message": "File ignored because no matching configuration was supplied.",
+ "ruleId": null,
},
],
},
]
❯ test/react.test.ts:18:19
|
Run pnpm test:
packages/eslint-config-fuf/test/react.test.ts#L37
Error: Snapshot `fixes storybook stories 1` mismatched
- Expected
+ Received
- "export default {};
+ "
+
export const Primary = {};
"
❯ test/react.test.ts:37:24
|
Run pnpm test:
packages/eslint-config-fuf/test/vitest.test.ts#L7
Error: Snapshot `fixes invalid test title 1` mismatched
- Expected
+ Received
- "import { expect, it } from 'vitest';
+ "
+
+ import { expect, it } from 'vitest';
- it('is a test', () => {
+ it('It is a test', () => {
expect(true).toBe(true);
});
"
❯ test/vitest.test.ts:7:24
|
Run pnpm test
Process completed with exit code 1.
|
Loading