diff options
| author | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2025-10-22 13:59:12 +0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-22 12:59:12 +0300 |
| commit | 69aeb7889ac136a8e4fbe7de1330298e30345479 (patch) | |
| tree | 6b2cd2d420105dc7ffad3c3649df359f634cae77 /frontend/eslint.config.mjs | |
| parent | feat/rankings: update wr for 3 maps (#279) (diff) | |
| download | lphub-69aeb7889ac136a8e4fbe7de1330298e30345479.tar.gz lphub-69aeb7889ac136a8e4fbe7de1330298e30345479.tar.bz2 lphub-69aeb7889ac136a8e4fbe7de1330298e30345479.zip | |
feat/frontend: switch to vite, update node to v22 (#281)
Diffstat (limited to 'frontend/eslint.config.mjs')
| -rw-r--r-- | frontend/eslint.config.mjs | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/frontend/eslint.config.mjs b/frontend/eslint.config.mjs new file mode 100644 index 0000000..4667d92 --- /dev/null +++ b/frontend/eslint.config.mjs | |||
| @@ -0,0 +1,24 @@ | |||
| 1 | // @ts-check | ||
| 2 | |||
| 3 | import eslint from '@eslint/js'; | ||
| 4 | import tseslint from 'typescript-eslint'; | ||
| 5 | |||
| 6 | export default [ | ||
| 7 | { | ||
| 8 | ignores: ['**/*', '!src/**'], | ||
| 9 | }, | ||
| 10 | eslint.configs.recommended, | ||
| 11 | ...tseslint.configs.recommended, | ||
| 12 | { | ||
| 13 | files: ['src/**/*.{js,jsx,ts,tsx}'], | ||
| 14 | rules: { | ||
| 15 | 'no-undef': 'off', | ||
| 16 | 'no-empty': 'warn', | ||
| 17 | 'indent': ['warn', 2], | ||
| 18 | 'quotes': ['warn', 'double'], | ||
| 19 | '@typescript-eslint/no-explicit-any': 'warn', | ||
| 20 | '@typescript-eslint/no-unused-vars': 'warn', | ||
| 21 | '@typescript-eslint/no-unused-expressions': 'warn', | ||
| 22 | }, | ||
| 23 | }, | ||
| 24 | ]; | ||