Skip to content

Commit c22b928

Browse files
authored
Merge pull request #23 from Telegram-Mini-Apps/actualize
Actualize the template
2 parents 345709d + 7454b6c commit c22b928

20 files changed

+2728
-1844
lines changed

eslint.config.js

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
// @ts-check
2+
3+
import eslint from '@eslint/js';
4+
import tseslint from 'typescript-eslint';
5+
import react from 'eslint-plugin-react';
6+
import reactHooks from 'eslint-plugin-react-hooks';
7+
import globals from 'globals';
8+
9+
export default tseslint.config(
10+
{
11+
files: ['src/**/*.{js,jsx,mjs,cjs,ts,tsx}'],
12+
extends: [
13+
eslint.configs.recommended,
14+
...tseslint.configs.recommendedTypeChecked,
15+
],
16+
plugins: {
17+
react,
18+
'react-hooks': reactHooks
19+
},
20+
languageOptions: {
21+
parserOptions: {
22+
ecmaVersion: 'latest',
23+
sourceType: 'module',
24+
ecmaFeatures: {
25+
jsx: true,
26+
},
27+
},
28+
globals: {
29+
...globals.browser,
30+
},
31+
},
32+
rules: {
33+
'@typescript-eslint/no-unused-expressions': 0,
34+
},
35+
}
36+
);

0 commit comments

Comments
 (0)