This repository has been archived by the owner on Sep 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(renovate): added standard-desktop and standard-desktop-linter (#12
) * chore(renovate): added `standard-desktop` * chore(renovate): added `standard-desktop` * chore(renovate): added `standard-desktop`
- Loading branch information
1 parent
72b912a
commit d866450
Showing
9 changed files
with
1,129 additions
and
58 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
Web Linter | ||
--- | ||
|
||
`@waveshq/standard-web-linter` | ||
|
||
Standard linter for web applications. This module also installs `prettier`, `eslint`, `nextjs`, `husky` and `lint-staged`. | ||
|
||
Lint rules are extended from these packages | ||
|
||
| Package | Description | | ||
| -------------------- | -------------------------------------------------- | | ||
| next/core-web-vitals | Uses recommended rules from Next.js. | | ||
| airbnb | Rules defined by airbnb. Uses TypeScript. | | ||
| prettier | Rules defined by prettier to have same code styles | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
module.exports = { | ||
extends: ['plugin:react/recommended', 'plugin:react-hooks/recommended', 'airbnb', 'airbnb-typescript', 'prettier'], | ||
parserOptions: { | ||
project: './tsconfig.json', | ||
}, | ||
plugins: ['react', 'react-hooks', 'prettier'], | ||
ignorePatterns: ['/*.config.js', '*.json', 'jest.setup.js'], | ||
rules: { | ||
'react/react-in-jsx-scope': 'off', | ||
'react/require-default-props': 'off', | ||
'import/prefer-default-export': 'off', | ||
'no-plusplus': 'off', | ||
'no-param-reassign': [ | ||
'error', | ||
{ | ||
props: true, | ||
ignorePropertyModificationsFor: ['state'], | ||
}, | ||
], | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
"name": "@waveshq/standard-desktop-linter", | ||
"version": "0.0.0", | ||
"main": "index.js", | ||
"files": [ | ||
"index.js" | ||
], | ||
"dependencies": { | ||
"eslint": "^8.29.0", | ||
"eslint-config-airbnb": "^19.0.4", | ||
"eslint-config-airbnb-typescript": "^17.0.0", | ||
"eslint-config-prettier": "^8.5.0", | ||
"eslint-plugin-cypress": "^2.12.1", | ||
"eslint-plugin-import": "^2.26.0", | ||
"eslint-plugin-jsx-a11y": "^6.6.1", | ||
"eslint-plugin-node": "^11.1.0", | ||
"eslint-plugin-prettier": "^4.2.1", | ||
"eslint-plugin-react": "^7.31.11", | ||
"eslint-plugin-react-hooks": "^4.6.0", | ||
"husky": "^8.0.2", | ||
"lint-staged": "^13.1.0", | ||
"next": "13.0.6", | ||
"prettier": "^2.8.0", | ||
"typescript": "4.9.3" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- | ||
Desktop | ||
--- | ||
|
||
`@waveshq/standard-desktop` | ||
|
||
Standard desktop tools for scaffolding desktop applications. Our choice of framework is Tauri/Vite/React as a default for our desktop projects. | ||
|
||
This package also includes a `tsconfig.json` which is customized for web usage. | ||
|
||
| Package | Description | | ||
| ---------- | ------------------------------------------------ | | ||
| tauri | Used as the base library. | | ||
| react | Fixes the react version required by Next.js | | ||
| react-dom | Fixes the react version required by Next.js | | ||
| typescript | Fixes the TypeScript version required by Next.js | | ||
| vite | Default build tool | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"name": "@waveshq/standard-desktop", | ||
"version": "0.0.0", | ||
"files": [ | ||
"tsconfig.json" | ||
], | ||
"dependencies": { | ||
"@tauri-apps/api": "^1.2.0", | ||
"@tauri-apps/cli": "^1.2.1", | ||
"@types/react": "^18.0.26", | ||
"@types/react-dom": "18.0.9", | ||
"@vitejs/plugin-react": "^2.2.0", | ||
"react": "^18.2.0", | ||
"react-dom": "^18.2.0", | ||
"react-router-dom": "^6.4.4", | ||
"typescript": "4.9.3", | ||
"vite": "^3.2.5" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ | ||
"$schema": "https://json.schemastore.org/tsconfig", | ||
"display": "Default", | ||
"compilerOptions": { | ||
"target": "ESNext", | ||
"useDefineForClassFields": true, | ||
"lib": ["DOM", "DOM.Iterable", "ESNext"], | ||
"allowJs": false, | ||
"skipLibCheck": true, | ||
"esModuleInterop": false, | ||
"allowSyntheticDefaultImports": true, | ||
"strict": true, | ||
"forceConsistentCasingInFileNames": true, | ||
"module": "ESNext", | ||
"moduleResolution": "Node", | ||
"resolveJsonModule": true, | ||
"isolatedModules": true, | ||
"noEmit": true, | ||
"jsx": "react-jsx", | ||
"baseUrl": "src", | ||
"paths": { | ||
"@api/*": ["api/*"], | ||
"@contexts/*": ["api/contexts/*"], | ||
"@wallet/*": ["api/wallet/*"], | ||
"@components/*": ["components/*"], | ||
"@layouts/*": ["layouts/*"], | ||
"@translation": ["i18n/useTranslation"], | ||
"@nonWallet/*": ["non-wallet/*"], | ||
"@assets/*": ["assets/*"], | ||
"@store/*": ["store/*"] | ||
} | ||
}, | ||
"include": ["src"], | ||
"exclude": ["node_modules", "cypress"] | ||
} |
Oops, something went wrong.