Skip to content

Commit

Permalink
Merge pull request #154 from Telegram-Mini-Apps/fix/example-deps
Browse files Browse the repository at this point in the history
Fix example dependencies
  • Loading branch information
heyqbnk authored Oct 23, 2023
2 parents a5d3a03 + be5332f commit c87337e
Show file tree
Hide file tree
Showing 10 changed files with 88 additions and 334 deletions.
2 changes: 1 addition & 1 deletion apps/next-js-example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"lint": "next lint"
},
"dependencies": {
"@tma.js/sdk-react": "0.4.15",
"@tma.js/sdk-react": "^0.4.15",
"react": "^18",
"react-dom": "^18",
"next": "13.5.6"
Expand Down
24 changes: 23 additions & 1 deletion apps/react-sdk-example/.eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,28 @@
module.exports = {
extends: ['custom/react'],
extends: ['airbnb', 'airbnb-typescript', 'airbnb/hooks'],
parserOptions: {
project: './tsconfig.eslint.json',
},
rules: {
'react/react-in-jsx-scope': 'off',
'react/jsx-props-no-spreading': 0,
'react/prop-types': 0,
// Works incorrectly in some IDEs. Should be equal to 2.
'@typescript-eslint/indent': 0,
'@typescript-eslint/consistent-type-imports': 'error',
// We don't use default exports anywhere.
'import/prefer-default-export': 0,
// We have no problem related to extraneous dependencies.
'import/no-extraneous-dependencies': 0,
// Usage of "continue" is normal and prevents code from nesting.
'no-continue': 0,
// Enable default behavior of this rule.
'object-curly-newline': ['error', { consistent: true }],
'consistent-return': 0,
// We select line endings depending on current OS.
// See: https://stackoverflow.com/q/39114446/2771889
'linebreak-style': ['error', (process.platform === 'win32' ? 'windows' : 'unix')],
// Sometimes we need to write "void promise".
'no-void': 0,
},
};
6 changes: 4 additions & 2 deletions apps/react-sdk-example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,16 @@
"preview": "vite preview"
},
"dependencies": {
"@tma.js/sdk-react": "^0.4.15",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"@tma.js/sdk-react": "workspace:*"
"react-dom": "^18.2.0"
},
"devDependencies": {
"@types/react": "^18.2.15",
"@types/react-dom": "^18.2.7",
"@vitejs/plugin-react-swc": "^3.3.2",
"eslint-config-airbnb": "^19.0.4",
"eslint-config-airbnb-typescript": "^17.0.0",
"eslint-config-custom": "workspace:*",
"vite": "^4.4.5"
}
Expand Down
4 changes: 1 addition & 3 deletions apps/react-sdk-example/tsconfig.eslint.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
{
"extends": "./tsconfig.json",
"include": [
"src",
"*.ts",
"*.js"
"src"
]
}
4 changes: 2 additions & 2 deletions apps/solid-sdk-example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@
"@solidjs/router": "^0.8.3",
"@tma.js/colors": "^0.0.5",
"@tma.js/init-data": "^0.2.19",
"@tma.js/navigation": "workspace:*",
"@tma.js/navigation": "^0.0.11",
"@tma.js/sdk": "^0.12.7",
"@tma.js/sdk-solid": "^0.1.14",
"@tma.js/solid-router-integration": "workspace:*",
"@tma.js/solid-router-integration": "^0.0.1",
"solid-js": "^1.7.6"
}
}
2 changes: 1 addition & 1 deletion apps/typescript-example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@
"vite": "^4.4.11"
},
"dependencies": {
"@tma.js/sdk": "0.12.7"
"@tma.js/sdk": "^0.12.7"
}
}

This file was deleted.

This file was deleted.

Loading

0 comments on commit c87337e

Please sign in to comment.