chore(deps-dev): bump @callstack/eslint-config from 11.0.0 to 12.0.2 (#950)

* chore(deps-dev): bump @callstack/eslint-config from 11.0.0 to 12.0.2

Bumps [@callstack/eslint-config](https://github.com/callstack/eslint-config-callstack) from 11.0.0 to 12.0.2.
- [Release notes](https://github.com/callstack/eslint-config-callstack/releases)
- [Commits](https://github.com/callstack/eslint-config-callstack/compare/v11.0.0...v12.0.2)

---
updated-dependencies:
- dependency-name: "@callstack/eslint-config"
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* chore: disable a11y eslint rules

* fix: formatting

* fix: flowcheck

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Maciej Jastrzebski <mdjastrzebski@gmail.com>
This commit is contained in:
dependabot[bot]
2022-08-09 10:31:31 +02:00
committed by GitHub
parent 6788992821
commit bfdaabc3e6
8 changed files with 690 additions and 491 deletions
+3 -1
View File
@@ -11,6 +11,8 @@
{ "ignore": ["^@theme", "^@docusaurus", "^@generated"] }
],
"react-native-a11y/has-valid-accessibility-ignores-invert-colors": 0,
"react-native/no-color-literals": "off"
"react-native/no-color-literals": "off",
"react-native-a11y/has-valid-accessibility-descriptors": "off",
"react-native-a11y/has-valid-accessibility-value": "off"
}
}
+1
View File
@@ -1,6 +1,7 @@
[ignore]
; We fork some components by platform
.*/*[.]android.js
.*/node_modules/.*\.json$
; Ignore "BUCK" generated dirs
<PROJECT_ROOT>/\.buckd/
+1 -1
View File
@@ -34,7 +34,7 @@
"@babel/preset-flow": "^7.9.0",
"@babel/preset-react": "^7.9.4",
"@babel/preset-typescript": "^7.16.0",
"@callstack/eslint-config": "^11.0.0",
"@callstack/eslint-config": "^12.0.2",
"@release-it/conventional-changelog": "^2.0.0",
"@testing-library/jest-native": "~4.0.2",
"@types/jest": "^28.0.0",
+2 -2
View File
@@ -173,7 +173,7 @@ test('debug', () => {
debug.shallow('my other custom message');
// eslint-disable-next-line no-console
const mockCalls = ((console.log as any) as ConsoleLogMock).mock.calls;
const mockCalls = (console.log as any as ConsoleLogMock).mock.calls;
expect(stripAnsi(mockCalls[0][0])).toMatchSnapshot();
expect(stripAnsi(mockCalls[1][0] + mockCalls[1][1])).toMatchSnapshot(
@@ -195,7 +195,7 @@ test('debug changing component', () => {
debug();
// eslint-disable-next-line no-console
const mockCalls = ((console.log as any) as ConsoleLogMock).mock.calls;
const mockCalls = (console.log as any as ConsoleLogMock).mock.calls;
expect(stripAnsi(mockCalls[4][0])).toMatchSnapshot(
'bananaFresh button message should now be "fresh"'
+3 -1
View File
@@ -56,7 +56,9 @@ export const createQueryByError = (
throw new ErrorWithStack(
// generic refining of `unknown` is very hard, you cannot do `'toString' in error` or anything like that
// Converting as any with extra safe optional chaining will do the job just as well
`Query: caught unknown error type: ${typeof error}, value: ${(error as any)?.toString?.()}`,
`Query: caught unknown error type: ${typeof error}, value: ${(
error as any
)?.toString?.()}`,
callsite
);
};
+11 -11
View File
@@ -39,17 +39,17 @@ const UNSAFE_queryByProps = (
}
};
const UNSAFE_queryAllByProps = (
instance: ReactTestInstance
): ((props: {
[propName: string]: any;
}) => Array<ReactTestInstance>) => (props: { [propName: string]: any }) => {
try {
return UNSAFE_getAllByProps(instance)(props);
} catch (error) {
return [];
}
};
const UNSAFE_queryAllByProps =
(
instance: ReactTestInstance
): ((props: { [propName: string]: any }) => Array<ReactTestInstance>) =>
(props: { [propName: string]: any }) => {
try {
return UNSAFE_getAllByProps(instance)(props);
} catch (error) {
return [];
}
};
// Unsafe aliases
export type UnsafeByPropsQueries = {
+11 -11
View File
@@ -36,17 +36,17 @@ const UNSAFE_queryByType = (
}
};
const UNSAFE_queryAllByType = (
instance: ReactTestInstance
): ((type: React.ComponentType<any>) => Array<ReactTestInstance>) => (
type: React.ComponentType<any>
) => {
try {
return UNSAFE_getAllByType(instance)(type);
} catch (error) {
return [];
}
};
const UNSAFE_queryAllByType =
(
instance: ReactTestInstance
): ((type: React.ComponentType<any>) => Array<ReactTestInstance>) =>
(type: React.ComponentType<any>) => {
try {
return UNSAFE_getAllByType(instance)(type);
} catch (error) {
return [];
}
};
// Unsafe aliases
export type UnsafeByTypeQueries = {
+658 -464
View File
File diff suppressed because it is too large Load Diff