Skip to content

Commit

Permalink
Add support for expo mobile dev
Browse files Browse the repository at this point in the history
  • Loading branch information
menghif authored and humphd committed Jan 28, 2022
1 parent 2ecdcb2 commit 64ff08d
Show file tree
Hide file tree
Showing 14 changed files with 8,798 additions and 3,295 deletions.
8 changes: 8 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,14 @@ module.exports = {
files: ['test/**/*.js', '*.test.js', '*.test.ts', '*.test.tsx', '**/__mocks__/**/*.js'],
env: { jest: true, node: true },
},

// Expo React Native app
{
files: ['src/mobile/**/*.js', 'src/mobile/**/*.jsx'],
extends: ['plugin:react/recommended', 'plugin:react-hooks/recommended'],
plugins: ['react-native'],
rules: { 'no-use-before-define': 'off' },
},
],

// Default rules for any file we lint
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@
"services:logs": "node bin/services-logs.js --",
"services:clean": "node bin/services-clean.js",
"prepare": "husky install",
"preinstall": "npx only-allow pnpm"
"preinstall": "npx only-allow pnpm",
"postinstall": "cd src/mobile && npm install"
},
"repository": "Seneca-CDOT/telescope",
"license": "BSD-2-Clause",
Expand Down Expand Up @@ -104,6 +105,7 @@
"eslint-plugin-promise": "5.2.0",
"eslint-plugin-react": "7.28.0",
"eslint-plugin-react-hooks": "4.3.0",
"eslint-plugin-react-native": "4.0.0",
"fast-xml-parser": "3.21.1",
"husky": "7.0.4",
"jest": "27.4.7",
Expand Down
Loading

0 comments on commit 64ff08d

Please sign in to comment.