Downgraded eslint, fixes lint stuff
This commit is contained in:
parent
d451cf13af
commit
a1b3b52629
|
@ -1,5 +1,4 @@
|
||||||
{
|
{
|
||||||
"parser": "@babel/eslint-parser",
|
|
||||||
"extends": [
|
"extends": [
|
||||||
"@react-native-community",
|
"@react-native-community",
|
||||||
"plugin:react-native-a11y/all",
|
"plugin:react-native-a11y/all",
|
||||||
|
|
|
@ -14,9 +14,6 @@ jest.mock('@skolplattformen/hooks')
|
||||||
let sendSMS
|
let sendSMS
|
||||||
let user = { personalNumber: '201701092395' }
|
let user = { personalNumber: '201701092395' }
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
const setup = (customProps = {}) => {
|
const setup = (customProps = {}) => {
|
||||||
sendSMS = jest.fn()
|
sendSMS = jest.fn()
|
||||||
|
|
||||||
|
|
|
@ -11,6 +11,6 @@ module.exports = {
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
transformIgnorePatterns: [
|
transformIgnorePatterns: [
|
||||||
"node_modules/(?!(@react-native|react-native|react-native-markdown-display|react-native-webview|react-native-calendar-events|react-native-simple-toast|react-native-modal-datetime-picker|@react-native-community/datetimepicker)/)"
|
'node_modules/(?!(@react-native|react-native|react-native-markdown-display|react-native-webview|react-native-calendar-events|react-native-simple-toast|react-native-modal-datetime-picker|@react-native-community/datetimepicker)/)',
|
||||||
]
|
],
|
||||||
}
|
}
|
||||||
|
|
|
@ -24,8 +24,8 @@ jest.mock('react-native-reanimated', () => {
|
||||||
jest.mock('@react-navigation/native')
|
jest.mock('@react-navigation/native')
|
||||||
jest.mock('@react-navigation/core')
|
jest.mock('@react-navigation/core')
|
||||||
jest.mock('react-native-localize')
|
jest.mock('react-native-localize')
|
||||||
jest.mock("react-native/Libraries/Linking/Linking", () => ({
|
jest.mock('react-native/Libraries/Linking/Linking', () => ({
|
||||||
openURL: jest.fn(() => Promise.resolve("mockResolve")),
|
openURL: jest.fn(() => Promise.resolve('mockResolve')),
|
||||||
}))
|
}))
|
||||||
jest.mock('react-native', () => {
|
jest.mock('react-native', () => {
|
||||||
const RN = jest.requireActual('react-native')
|
const RN = jest.requireActual('react-native')
|
||||||
|
|
10
package.json
10
package.json
|
@ -75,7 +75,7 @@
|
||||||
"@babel/eslint-parser": "^7.15.8",
|
"@babel/eslint-parser": "^7.15.8",
|
||||||
"@nrwl/cli": "12.9.0",
|
"@nrwl/cli": "12.9.0",
|
||||||
"@nrwl/detox": "12.9.0",
|
"@nrwl/detox": "12.9.0",
|
||||||
"@nrwl/eslint-plugin-nx": "12.9.0",
|
"@nrwl/eslint-plugin-nx": "^12.10.0",
|
||||||
"@nrwl/jest": "12.9.0",
|
"@nrwl/jest": "12.9.0",
|
||||||
"@nrwl/linter": "12.9.0",
|
"@nrwl/linter": "12.9.0",
|
||||||
"@nrwl/react": "12.9.0",
|
"@nrwl/react": "12.9.0",
|
||||||
|
@ -104,13 +104,13 @@
|
||||||
"@types/react-dom": "17.0.3",
|
"@types/react-dom": "17.0.3",
|
||||||
"@types/react-native": "0.64.13",
|
"@types/react-native": "0.64.13",
|
||||||
"@types/tough-cookie": "^4.0.0",
|
"@types/tough-cookie": "^4.0.0",
|
||||||
"@typescript-eslint/eslint-plugin": "~4.28.3",
|
"@typescript-eslint/eslint-plugin": "^5.0.0",
|
||||||
"@typescript-eslint/parser": "~4.28.3",
|
"@typescript-eslint/parser": "^5.0.0",
|
||||||
"@ui-kitten/metro-config": "^5.1.1",
|
"@ui-kitten/metro-config": "^5.1.1",
|
||||||
"babel-jest": "^27.2.5",
|
"babel-jest": "^27.2.5",
|
||||||
"detox": "18.20.2",
|
"detox": "18.20.2",
|
||||||
"eslint": "^8.0.1",
|
"eslint": "7.32.0",
|
||||||
"eslint-config-prettier": "8.1.0",
|
"eslint-config-prettier": "^8.3.0",
|
||||||
"eslint-plugin-import": "2.22.1",
|
"eslint-plugin-import": "2.22.1",
|
||||||
"eslint-plugin-jsx-a11y": "6.4.1",
|
"eslint-plugin-jsx-a11y": "6.4.1",
|
||||||
"eslint-plugin-react": "7.23.1",
|
"eslint-plugin-react": "7.23.1",
|
||||||
|
|
Loading…
Reference in New Issue