diff --git a/.eslintrc b/.eslintrc index dee438153..4e273da18 100644 --- a/.eslintrc +++ b/.eslintrc @@ -9,6 +9,7 @@ "import/no-unresolved": [ 2, { "ignore": ["^@theme", "^@docusaurus", "^@generated"] } - ] + ], + "react-native-a11y/has-valid-accessibility-ignores-invert-colors": 0 } } diff --git a/package.json b/package.json index 363709620..a3a33b6dd 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ "devDependencies": { "@babel/cli": "^7.8.4", "@babel/core": "^7.9.0", - "@callstack/eslint-config": "^9.1.0", + "@callstack/eslint-config": "^10.0.0", "@release-it/conventional-changelog": "^1.1.0", "@types/react": "^16.9.34", "@types/react-native": "^0.62.2", diff --git a/src/__tests__/a11yAPI.test.js b/src/__tests__/a11yAPI.test.js index a5cebd7e9..1524a0a35 100644 --- a/src/__tests__/a11yAPI.test.js +++ b/src/__tests__/a11yAPI.test.js @@ -5,10 +5,8 @@ import { render } from '..'; const BUTTON_LABEL = 'cool button'; const BUTTON_HINT = 'click this button'; -const BUTTON_ROLE = 'button'; const TEXT_LABEL = 'cool text'; const TEXT_HINT = 'static text'; -const TEXT_ROLE = 'link'; // Little hack to make all the methods happy with type const NO_MATCHES_TEXT: any = 'not-existent-element'; const NO_INSTANCES_FOUND = 'No instances found'; @@ -27,13 +25,13 @@ class Button extends React.Component { { } test('debug', () => { - jest.spyOn(console, 'log').mockImplementation(x => x); + jest.spyOn(console, 'log').mockImplementation((x) => x); const component =