fix(eslint-config-fuf): update typescript-eslint monorepo to v8 #1361
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 sh ould b e added
const test = 1;
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 variab les wi th 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
- type SomeTypeMagic = DoSomeTypeMagicThatIsVeryComplicatedSoItHasToBreak<
+ type S omeTypeMagic = DoSomeTypeMagicThatIsVeryComplicatedSoItHasToBreak<
[TypeMagicInputType]
>;
// indent ternary
- const createdAt = active
+ cons t createdAt = active
- ? // set active data to actual date
+ ? // set active data to actual date
parseDate(data.createdAt).toISOString()
- : // set inactive data to end of month
+ : // set inactive data t o end of month
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
@@ -24,8 +24,8 @@
import png from './image.png';
import svg from './image.svg';
import moduleStyles from './Some.module.css';
- // INFO: css imports will not be touched
+ // INFO: css imports w ill 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,11 +1,11 @@
- "import React from 'react';
+ "i mport React from 'react';
import { cn, tv } from '@fuf-stack/pixel-utils';
// tailwind variants
- const _variants = tv({
+ c onst _variants = tv({
base: 'rounded bg-blue-500 px-4 py-2 text-base text-white',
});
const MyComponent = () => {
const _outsideCn = cn('rounded bg-blue-500 px-4 py-2 text-base text-white');
❯ 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 = () => {
- return <div />;
- };
+ "function Component(const Component = () => };
export default Component;
"
❯ test/react.test.ts:10:24
|
Run pnpm test:
packages/eslint-config-fuf/test/react.test.ts#L18
AssertionError: expected [ { …(10) } ] to match object [ { messages: [ { …(3) } ] } ]
(9 matching properties omitted from actual)
- Expected
+ Received
Array [
Object {
"messages": Array [
Object {
+ "column": 1,
+ "endColumn": 2,
+ "endLine": 1,
+ "line": 1,
+ "message": "Definition for rule '@typescript-eslint/ban-types' was not found.",
+ "nodeType": null,
+ "ruleId": "@typescript-eslint/ban-types",
+ "severity": 2,
+ },
+ Object {
+ "column": 1,
+ "endColumn": 2,
+ "endLine": 1,
+ "line": 1,
+ "message": "Definition for rule '@typescript-eslint/brace-style' was not found.",
+ "nodeType": null,
+ "ruleId": "@typescript-eslint/brace-style",
+ "severity": 2,
+ },
+ Object {
+ "column": 1,
+ "endColumn": 2,
+ "endLine": 1,
+ "line": 1,
+ "message": "Definition for rule '@typescript-eslint/comma-dangle' was not found.",
+ "nodeType": null,
+ "ruleId": "@typescript-eslint/comma-dangle",
+ "severity": 2,
+ },
+ Object {
+ "column": 1,
+ "endColumn": 2,
+ "endLine": 1,
+ "line": 1,
+ "message": "Definition for rule '@typescript-eslint/comma-spacing' was not found.",
+ "nodeType": null,
+ "ruleId": "@typescript-eslint/comma-spacing",
+ "severity": 2,
+ },
+ Object {
+ "column": 1,
+ "endColumn": 2,
+ "endLine": 1,
+ "line": 1,
+ "message": "Definition for rule '@typescript-eslint/func-call-spacing' was not found.",
+ "nodeType": null,
+ "ruleId": "@typescript-eslint/func-call-spacing",
+ "severity": 2,
+ },
+ Object {
+ "column": 1,
+ "endColumn": 2,
+ "endLine": 1,
+ "line": 1,
+ "message": "Definition for rule '@typescript-eslint/keyword-spacing' was not found.",
+ "nodeType": null,
+ "ruleId": "@typescript-eslint/keyword-spacing",
+ "severity": 2,
+ },
+ Object {
+ "column": 1,
+ "endColumn": 2,
+ "endLine": 1,
+ "line": 1,
+ "message": "Definition for rule '@typescript-eslint/lines-between-class-members' was not found.",
+ "nodeType": null,
+ "ruleId": "@typescript-eslint/lines-between-class-members",
+ "severity": 2,
+ },
+ Object {
+ "column": 1,
+ "endColumn": 2,
+ "endLine": 1,
+ "line": 1,
+ "message": "Definition for rule '@typescript-eslint/no-extra-semi' was not found.",
+ "nodeType": null,
+ "ruleId": "@typescript-eslint/no-extra-semi",
+ "severity": 2,
+ },
+ Object {
+ "column": 1,
+ "endColumn": 2,
+ "endLine": 1,
+ "line": 1,
+ "message": "Definition for rule '@typescript-eslint/space-before-blocks' was not found.",
+ "nodeType": null,
+ "ruleId": "@typescript-eslint/space-before-blocks",
+ "severity": 2,
+ },
+ Object {
+ "column": 1,
+ "endColumn": 2,
+ "endLine": 1,
+ "line": 1,
+ "message": "Definition for rule '@typescript-eslint/no-throw-literal' was not found.",
+ "nodeType": null,
+ "ruleId": "@typescript-eslint/no-throw-literal",
+ "severity": 2,
+ },
+ Object {
+ "column": 1,
+ "endColumn": 2,
+ "endLine": 1,
+ "line": 1,
+ "message": "Definition for rule '@typescript-eslint/quotes' was not found.",
+ "nodeType": null,
+ "ruleId": "@typescript-eslint/quotes",
+ "severity": 2,
+ },
+ Object {
+ "column": 1,
+ "endColumn": 2,
+ "endLine": 1,
+ "line": 1,
+ "message": "Definition for rule '@typescript-eslint/semi' was not found.",
+ "nodeType": null,
+ "ruleId": "@typescript-eslint/semi",
+ "severi
|
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 = {};
+ "export const Pri maryexport default {}
+ = {};
"
❯ 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', () => {
- expect(true).toBe(true);
+ it('It is a test', () ='is a test'rue).toBe(true);
});
"
❯ test/vitest.test.ts:7:24
|
Run pnpm test
Process completed with exit code 1.
|
Loading