mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-21 09:38:01 +02:00
Fixed TypeScript issues
This commit is contained in:
parent
35e369ff1a
commit
fb619a0099
@ -1,4 +1,7 @@
|
||||
import { DeviceEventEmitter } from 'react-native';
|
||||
// Need to require this class instead of importing it
|
||||
// to disable buggy type-checking, maybe because this
|
||||
// class is undocumented.
|
||||
const { DeviceEventEmitter } = require('react-native');
|
||||
import * as QuickActions from 'react-native-quick-actions';
|
||||
const { _ } = require('lib/locale.js');
|
||||
|
||||
|
4
Tools/package-lock.json
generated
4
Tools/package-lock.json
generated
@ -886,7 +886,7 @@
|
||||
},
|
||||
"wrap-ansi": {
|
||||
"version": "2.1.0",
|
||||
"resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-2.1.0.tgz",
|
||||
"resolved": "http://registry.npmjs.org/wrap-ansi/-/wrap-ansi-2.1.0.tgz",
|
||||
"integrity": "sha1-2Pw9KE3QV5T+hJc8rs3Rz4JP3YU=",
|
||||
"requires": {
|
||||
"string-width": "^1.0.1",
|
||||
@ -918,7 +918,7 @@
|
||||
},
|
||||
"strip-ansi": {
|
||||
"version": "3.0.1",
|
||||
"resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz",
|
||||
"resolved": "http://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz",
|
||||
"integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=",
|
||||
"requires": {
|
||||
"ansi-regex": "^2.0.0"
|
||||
|
9
package-lock.json
generated
9
package-lock.json
generated
@ -131,15 +131,6 @@
|
||||
"@types/react": "*"
|
||||
}
|
||||
},
|
||||
"@types/react-native": {
|
||||
"version": "0.61.15",
|
||||
"resolved": "https://registry.npmjs.org/@types/react-native/-/react-native-0.61.15.tgz",
|
||||
"integrity": "sha512-+lOUYk3yOfpyMy2HcVbR5bZnbExiVahMr3AqWNPh/01N0quH7nBzlou+/rpbvmDXSGwCh3QjWWfEkLNRfvbiiA==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"@types/react": "*"
|
||||
}
|
||||
},
|
||||
"@typescript-eslint/eslint-plugin": {
|
||||
"version": "2.10.0",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-2.10.0.tgz",
|
||||
|
@ -5,8 +5,8 @@
|
||||
"scripts": {
|
||||
"linter": "./node_modules/.bin/eslint --fix --ext .js --ext .jsx --ext .ts --ext .tsx",
|
||||
"linter-ci": "./node_modules/.bin/eslint --ext .js --ext .jsx --ext .ts --ext .tsx",
|
||||
"tsc": "tsc",
|
||||
"tsc-watch": "tsc --watch",
|
||||
"tsc": "tsc --project tsconfig.json",
|
||||
"tsc-watch": "tsc --watch --project tsconfig.json",
|
||||
"copyLib": "rsync --delete -a ReactNativeClient/lib/ ElectronClient/app/lib/"
|
||||
},
|
||||
"husky": {
|
||||
@ -28,7 +28,6 @@
|
||||
"devDependencies": {
|
||||
"@types/react": "^16.9.0",
|
||||
"@types/react-dom": "^16.9.0",
|
||||
"@types/react-native": "^0.61.15",
|
||||
"@typescript-eslint/eslint-plugin": "^2.10.0",
|
||||
"@typescript-eslint/parser": "^2.10.0",
|
||||
"eslint": "^6.1.0",
|
||||
|
@ -22,5 +22,8 @@
|
||||
],
|
||||
"exclude": [
|
||||
"**/node_modules",
|
||||
"CliClient/build/**/*",
|
||||
"ElectronClient/app/lib/**/*",
|
||||
"ElectronClient/app/dist/**/*",
|
||||
],
|
||||
}
|
Loading…
Reference in New Issue
Block a user