In the `@react-native-community/eslint-config` package a quite outdated version of prettier is used which does not support the nullish chaining yet. While adding prettier to the devDependencies, this bug is fixed.
45 lines
1.0 KiB
JSON
45 lines
1.0 KiB
JSON
{
|
|
"name": "HelloWorld",
|
|
"version": "0.0.1",
|
|
"private": true,
|
|
"scripts": {
|
|
"android": "react-native run-android",
|
|
"ios": "react-native run-ios",
|
|
"start": "react-native start",
|
|
"test": "jest",
|
|
"lint": "eslint . --ext .js,.jsx,.ts,.tsx"
|
|
},
|
|
"dependencies": {
|
|
"react": "16.9.0",
|
|
"react-native": "0.61.5"
|
|
},
|
|
"devDependencies": {
|
|
"@babel/core": "^7.6.2",
|
|
"@babel/runtime": "^7.6.2",
|
|
"@react-native-community/eslint-config": "^0.0.7",
|
|
"@types/jest": "^24.0.24",
|
|
"@types/react-native": "^0.61.15",
|
|
"@types/react-test-renderer": "16.9.1",
|
|
"@typescript-eslint/eslint-plugin": "^2.12.0",
|
|
"@typescript-eslint/parser": "^2.12.0",
|
|
"babel-jest": "^24.9.0",
|
|
"eslint": "^6.5.1",
|
|
"jest": "^24.9.0",
|
|
"metro-react-native-babel-preset": "^0.56.0",
|
|
"react-test-renderer": "16.9.0",
|
|
"prettier": "^1.19.1",
|
|
"typescript": "^3.7.3"
|
|
},
|
|
"jest": {
|
|
"preset": "react-native",
|
|
"moduleFileExtensions": [
|
|
"ts",
|
|
"tsx",
|
|
"js",
|
|
"jsx",
|
|
"json",
|
|
"node"
|
|
]
|
|
}
|
|
}
|