mirror of
https://github.com/spacedriveapp/spacedrive.git
synced 2026-10-14 20:57:30 -04:00
Fix types - Mobile
This commit is contained in:
1 parent
56495719d5
commit
ab432d4dd0
7 files changed
+915
-106
No files matched your search
@@ -1,8 +1,42 @@
|
||||
module.exports = {
|
||||
...require('@sd/config/eslint-react-native.js'),
|
||||
parserOptions: {
|
||||
tsconfigRootDir: __dirname,
|
||||
project: './tsconfig.json'
|
||||
env: {
|
||||
'react-native/react-native': true
|
||||
},
|
||||
ignorePatterns: ['**/*.js', '**/*.json', 'android', 'ios', '.expo']
|
||||
parser: '@typescript-eslint/parser',
|
||||
parserOptions: {
|
||||
ecmaFeatures: {
|
||||
jsx: true
|
||||
},
|
||||
ecmaVersion: 12,
|
||||
sourceType: 'module'
|
||||
},
|
||||
extends: [
|
||||
'eslint:recommended',
|
||||
'plugin:react/recommended',
|
||||
'plugin:react-hooks/recommended',
|
||||
'plugin:@typescript-eslint/recommended'
|
||||
],
|
||||
plugins: ['react', 'react-native'],
|
||||
rules: {
|
||||
'react/display-name': 'off',
|
||||
'react/prop-types': 'off',
|
||||
'react/no-unescaped-entities': 'off',
|
||||
'react/react-in-jsx-scope': 'off',
|
||||
'react-hooks/rules-of-hooks': 'error',
|
||||
'react-hooks/exhaustive-deps': 'warn',
|
||||
'@typescript-eslint/no-unused-vars': 'off',
|
||||
'@typescript-eslint/ban-ts-comment': 'off',
|
||||
'@typescript-eslint/no-explicit-any': 'off',
|
||||
'@typescript-eslint/no-var-requires': 'off',
|
||||
'@typescript-eslint/no-non-null-assertion': 'off',
|
||||
'@typescript-eslint/explicit-module-boundary-types': 'off',
|
||||
'no-control-regex': 'off',
|
||||
'no-mixed-spaces-and-tabs': ['warn', 'smart-tabs']
|
||||
},
|
||||
ignorePatterns: ['**/*.js', '**/*.json', 'node_modules', 'android', 'ios', '.expo'],
|
||||
settings: {
|
||||
react: {
|
||||
version: 'detect'
|
||||
}
|
||||
}
|
||||
};
|
||||
@@ -6,7 +6,8 @@
|
||||
"scripts": {
|
||||
"dev": "expo start --dev-client",
|
||||
"android": "expo run:android",
|
||||
"ios": "expo run:ios"
|
||||
"ios": "expo run:ios",
|
||||
"lint": "eslint src/**/*.{ts,tsx} && tsc --noEmit"
|
||||
},
|
||||
"dependencies": {
|
||||
"@expo/vector-icons": "^13.0.0",
|
||||
@@ -41,16 +42,23 @@
|
||||
"zustand": "^4.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@sd/config": "file:../../packages/config",
|
||||
"@babel/core": "^7.12.9",
|
||||
"@babel/runtime": "^7.18.9",
|
||||
"@rnx-kit/metro-config": "^1.2.36",
|
||||
"@rnx-kit/metro-resolver-symlinks": "^0.1.21",
|
||||
"@types/react": "~18.0.15",
|
||||
"@types/react-native": "~0.69.5",
|
||||
"@typescript-eslint/eslint-plugin": "^5.30.7",
|
||||
"@typescript-eslint/parser": "^5.30.7",
|
||||
"eslint": "^8.21.0",
|
||||
"eslint-config-prettier": "^8.5.0",
|
||||
"eslint-plugin-react": "^7.30.1",
|
||||
"eslint-plugin-react-hooks": "^4.6.0",
|
||||
"eslint-plugin-react-native": "^4.0.0",
|
||||
"metro-minify-terser": "^0.72.0",
|
||||
"react-native-svg": "^12.4.3",
|
||||
"react-native-svg-transformer": "^1.0.0"
|
||||
"react-native-svg-transformer": "^1.0.0",
|
||||
"typescript": "^4.7.4"
|
||||
},
|
||||
"private": true
|
||||
}
|
||||
Generated
+859
-31
File diff suppressed because it is too large.
Load diff
+1
@@ -8,6 +8,7 @@ declare module '*.svg' {
|
||||
// This declaration is used by useNavigation, Link, ref etc.
|
||||
declare global {
|
||||
namespace ReactNavigation {
|
||||
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
||||
interface RootParamList extends RootStackParamList {}
|
||||
}
|
||||
}
|
||||
@@ -1,42 +0,0 @@
|
||||
module.exports = {
|
||||
env: {
|
||||
'react-native/react-native': true
|
||||
},
|
||||
parser: '@typescript-eslint/parser',
|
||||
parserOptions: {
|
||||
ecmaFeatures: {
|
||||
jsx: true
|
||||
},
|
||||
ecmaVersion: 12,
|
||||
sourceType: 'module'
|
||||
},
|
||||
extends: [
|
||||
'eslint:recommended',
|
||||
'plugin:react/recommended',
|
||||
'plugin:react-hooks/recommended',
|
||||
'plugin:@typescript-eslint/recommended'
|
||||
],
|
||||
plugins: ['react', 'react-native'],
|
||||
rules: {
|
||||
'react/display-name': 'off',
|
||||
'react/prop-types': 'off',
|
||||
'react/no-unescaped-entities': 'off',
|
||||
'react/react-in-jsx-scope': 'off',
|
||||
'react-hooks/rules-of-hooks': 'error',
|
||||
'react-hooks/exhaustive-deps': 'warn',
|
||||
'@typescript-eslint/no-unused-vars': 'off',
|
||||
'@typescript-eslint/ban-ts-comment': 'off',
|
||||
'@typescript-eslint/no-explicit-any': 'off',
|
||||
'@typescript-eslint/no-var-requires': 'off',
|
||||
'@typescript-eslint/no-non-null-assertion': 'off',
|
||||
'@typescript-eslint/explicit-module-boundary-types': 'off',
|
||||
'no-control-regex': 'off',
|
||||
'no-mixed-spaces-and-tabs': ['warn', 'smart-tabs']
|
||||
},
|
||||
ignorePatterns: ['**/*.js', '**/*.json', 'node_modules'],
|
||||
settings: {
|
||||
react: {
|
||||
version: 'detect'
|
||||
}
|
||||
}
|
||||
};
|
||||
@@ -4,8 +4,7 @@
|
||||
"main": "index.js",
|
||||
"license": "GPL-3.0-only",
|
||||
"files": [
|
||||
"eslint-react.js",
|
||||
"eslint-react-native.js"
|
||||
"eslint-react.js"
|
||||
],
|
||||
"devDependencies": {
|
||||
"eslint": "^8.21.0",
|
||||
@@ -13,7 +12,6 @@
|
||||
"@typescript-eslint/parser": "^5.30.7",
|
||||
"eslint-config-prettier": "^8.5.0",
|
||||
"eslint-plugin-react": "^7.30.1",
|
||||
"eslint-plugin-react-hooks": "^4.6.0",
|
||||
"eslint-plugin-react-native": "^4.0.0"
|
||||
"eslint-plugin-react-hooks": "^4.6.0"
|
||||
}
|
||||
}
|
||||
Generated
+3
-21
@@ -260,7 +260,6 @@ importers:
|
||||
eslint-config-prettier: ^8.5.0
|
||||
eslint-plugin-react: ^7.30.1
|
||||
eslint-plugin-react-hooks: ^4.6.0
|
||||
eslint-plugin-react-native: ^4.0.0
|
||||
devDependencies:
|
||||
'@typescript-eslint/eslint-plugin': 5.31.0_eygs4xj346vriqwkjbwjuyviaa
|
||||
'@typescript-eslint/parser': 5.31.0_eslint@8.21.0
|
||||
@@ -268,7 +267,6 @@ importers:
|
||||
eslint-config-prettier: 8.5.0_eslint@8.21.0
|
||||
eslint-plugin-react: 7.30.1_eslint@8.21.0
|
||||
eslint-plugin-react-hooks: 4.6.0_eslint@8.21.0
|
||||
eslint-plugin-react-native: 4.0.0_eslint@8.21.0
|
||||
|
||||
packages/interface:
|
||||
specifiers:
|
||||
@@ -6054,7 +6052,7 @@ packages:
|
||||
'@babel/plugin-transform-react-jsx-source': 7.18.6_@babel+core@7.18.9
|
||||
magic-string: 0.26.2
|
||||
react-refresh: 0.14.0
|
||||
vite: 3.0.3
|
||||
vite: 3.0.3_sass@1.54.0
|
||||
transitivePeerDependencies:
|
||||
- supports-color
|
||||
|
||||
@@ -9536,22 +9534,6 @@ packages:
|
||||
eslint: 8.21.0
|
||||
dev: true
|
||||
|
||||
/eslint-plugin-react-native-globals/0.1.2:
|
||||
resolution: {integrity: sha512-9aEPf1JEpiTjcFAmmyw8eiIXmcNZOqaZyHO77wgm0/dWfT/oxC1SrIq8ET38pMxHYrcB6Uew+TzUVsBeczF88g==}
|
||||
dev: true
|
||||
|
||||
/eslint-plugin-react-native/4.0.0_eslint@8.21.0:
|
||||
resolution: {integrity: sha512-kMmdxrSY7A1WgdqaGC+rY/28rh7kBGNBRsk48ovqkQmdg5j4K+DaFmegENDzMrdLkoufKGRNkKX6bgSwQTCAxQ==}
|
||||
peerDependencies:
|
||||
eslint: ^3.17.0 || ^4 || ^5 || ^6 || ^7 || ^8
|
||||
dependencies:
|
||||
'@babel/traverse': 7.18.9
|
||||
eslint: 8.21.0
|
||||
eslint-plugin-react-native-globals: 0.1.2
|
||||
transitivePeerDependencies:
|
||||
- supports-color
|
||||
dev: true
|
||||
|
||||
/eslint-plugin-react/7.30.1_eslint@8.21.0:
|
||||
resolution: {integrity: sha512-NbEvI9jtqO46yJA3wcRF9Mo0lF9T/jhdHqhCHXiXtD+Zcb98812wvokjWpU7Q4QH5edo6dmqrukxVvWWXHlsUg==}
|
||||
engines: {node: '>=4'}
|
||||
@@ -18113,7 +18095,7 @@ packages:
|
||||
dependencies:
|
||||
'@rollup/pluginutils': 4.2.1
|
||||
'@svgr/core': 6.3.1
|
||||
vite: 3.0.3
|
||||
vite: 3.0.3_sass@1.54.0
|
||||
transitivePeerDependencies:
|
||||
- supports-color
|
||||
dev: true
|
||||
@@ -18178,6 +18160,7 @@ packages:
|
||||
rollup: 2.77.1
|
||||
optionalDependencies:
|
||||
fsevents: 2.3.2
|
||||
dev: true
|
||||
|
||||
/vite/3.0.3_sass@1.54.0:
|
||||
resolution: {integrity: sha512-sDIpIcl3mv1NUaSzZwiXGEy1ZoWwwC2vkxUHY6yiDacR6zf//ZFuBJrozO62gedpE43pmxnLATNR5IYUdAEkMQ==}
|
||||
@@ -18205,7 +18188,6 @@ packages:
|
||||
sass: 1.54.0
|
||||
optionalDependencies:
|
||||
fsevents: 2.3.2
|
||||
dev: true
|
||||
|
||||
/vm-browserify/1.1.2:
|
||||
resolution: {integrity: sha512-2ham8XPWTONajOR0ohOKOHXkm3+gaBmGut3SRuu75xLd/RRaY6vqgh8NBYYk7+RW3u5AtzPQZG8F10LHkl0lAQ==}
|
||||
|
||||
Reference in new issue
Block a user