refactor: Run lintfix (no-changelog) (#7537)

- Fix autofixable violations
- Remove unused directives
- Allow for PascalCased variables - needed for dynamically imported or
assigned classes, decorators, routers, etc.
This commit is contained in:
Iván Ovejero
2023-10-27 14:15:02 +02:00
committed by GitHub
parent 1c4ac02db5
commit 62c096710f
477 changed files with 706 additions and 1003 deletions

View File

@@ -284,7 +284,7 @@ describe('useDataSchema', () => {
it('should return the correct data when using the generated json path on an object', () => {
const input = { people: ['Joe', 'John'] };
const schema = getSchema(input) as Schema;
const schema = getSchema(input);
const pathData = jp.query(
input,
`$${((schema.value as Schema[])[0].value as Schema[])[0].path}`,
@@ -297,7 +297,7 @@ describe('useDataSchema', () => {
{ name: 'John', age: 22, hobbies: ['surfing', 'traveling'] },
{ name: 'Joe', age: 33, hobbies: ['skateboarding', 'gaming'] },
];
const schema = getSchema(input) as Schema;
const schema = getSchema(input);
const pathData = jp.query(
input,
`$${(((schema.value as Schema[])[0].value as Schema[])[2].value as Schema[])[1].path}`,
@@ -307,7 +307,7 @@ describe('useDataSchema', () => {
it('should return the correct data when using the generated json path on a list of list', () => {
const input = [[1, 2]];
const schema = getSchema(input) as Schema;
const schema = getSchema(input);
const pathData = jp.query(
input,
`$${((schema.value as Schema[])[0].value as Schema[])[1].path}`,
@@ -322,7 +322,7 @@ describe('useDataSchema', () => {
{ name: 'Joe', age: 33 },
],
];
const schema = getSchema(input) as Schema;
const schema = getSchema(input);
const pathData = jp.query(
input,
`$${(((schema.value as Schema[])[0].value as Schema[])[1].value as Schema[])[1].path}`,
@@ -339,7 +339,7 @@ describe('useDataSchema', () => {
],
},
];
const schema = getSchema(input) as Schema;
const schema = getSchema(input);
const pathData = jp.query(
input,
`$${