Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin' into release-workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
scottenock committed Sep 18, 2024
2 parents 668095a + b2fc6b2 commit 5907352
Show file tree
Hide file tree
Showing 11 changed files with 3,858 additions and 10,234 deletions.
31 changes: 6 additions & 25 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,30 +1,11 @@
# React + TypeScript + Vite
# FODMAP FOSS

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
<div style="text-align:center">

Currently, two official plugins are available:
![FODMAPP FOSS Logo](cordova/res/mipmap/mipmap-xxxhdpi/ic_launcher_round.png)

- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
</div>

## Expanding the ESLint configuration
A Free & Open Source FODMAP diet UI built for Android + Web.

If you are developing a production application, we recommend updating the configuration to enable type aware lint rules:

- Configure the top-level `parserOptions` property like this:

```js
export default {
// other rules...
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
project: ['./tsconfig.json', './tsconfig.node.json'],
tsconfigRootDir: __dirname,
},
}
```

- Replace `plugin:@typescript-eslint/recommended` to `plugin:@typescript-eslint/recommended-type-checked` or `plugin:@typescript-eslint/strict-type-checked`
- Optionally add `plugin:@typescript-eslint/stylistic-type-checked`
- Install [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) and add `plugin:react/recommended` & `plugin:react/jsx-runtime` to the `extends` list
Code is distributed under the GPLv3 license.
1 change: 1 addition & 0 deletions cordova/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
<content src="index.html" />
<allow-intent href="http://*/*" />
<allow-intent href="https://*/*" />
<preference name="orientation" value="portrait" />

<platform name="android">
<resource-file src="res/values/myColors.xml" target="/app/src/main/res/values/colors.xml" />
Expand Down
Loading

0 comments on commit 5907352

Please sign in to comment.