Skip to content

Commit d677907

Browse files
chore(deps-dev): bump frontend-dev-tools group + migrate to ESLint flat config (#205)
devDeps: - @types/node ^25.2.3 -> ^25.6.0 - eslint ^8.57.1 -> ^9.39.4 (NOT ^10: eslint-config-next 16 + ESLint 10 broken upstream — eslint-plugin-react@7 not yet ESLint 10 compatible) - eslint-config-next ^15.5.14 -> ^16.2.3 - prettier ^3.8.1 -> ^3.8.2 - typescript ^5.5.4 -> ^6.0.2 Migration: - .eslintrc.json -> eslint.config.js (flat config required by ESLint 9+) - add global.d.ts for CSS module side-effect imports (TS 6 stricter) - relax 'no-console' for scripts/ Co-authored-by: Yaroslav Vasylenko <neuron7x@users.noreply.github.com>
1 parent ded4136 commit d677907

7 files changed

Lines changed: 355 additions & 292 deletions

File tree

apps/web/.eslintrc.json

Lines changed: 0 additions & 38 deletions
This file was deleted.

apps/web/eslint.config.js

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
const next = require('eslint-config-next')
2+
const prettierFlat = require('eslint-config-prettier/flat')
3+
const prettierPlugin = require('eslint-plugin-prettier')
4+
const tseslint = require('@typescript-eslint/eslint-plugin')
5+
6+
module.exports = [
7+
...next,
8+
prettierFlat,
9+
{
10+
files: ['**/*.ts', '**/*.tsx'],
11+
plugins: { prettier: prettierPlugin, '@typescript-eslint': tseslint },
12+
rules: {
13+
'prettier/prettier': 'error',
14+
'@typescript-eslint/no-unused-vars': [
15+
'error',
16+
{ argsIgnorePattern: '^_', varsIgnorePattern: '^_' },
17+
],
18+
'@typescript-eslint/no-explicit-any': 'warn',
19+
'@typescript-eslint/explicit-function-return-type': 'off',
20+
'@typescript-eslint/explicit-module-boundary-types': 'off',
21+
'react/react-in-jsx-scope': 'off',
22+
'no-console': ['warn', { allow: ['warn', 'error'] }],
23+
},
24+
},
25+
{
26+
files: ['**/*.js', '**/*.cjs', '**/*.mjs'],
27+
plugins: { prettier: prettierPlugin },
28+
rules: {
29+
'prettier/prettier': 'error',
30+
},
31+
},
32+
{
33+
files: ['scripts/**'],
34+
rules: {
35+
'no-console': 'off',
36+
},
37+
},
38+
{
39+
ignores: [
40+
'.next/**',
41+
'next-env.d.ts',
42+
'out/**',
43+
'build/**',
44+
'dist/**',
45+
'playwright-report/**',
46+
'test-results/**',
47+
'coverage/**',
48+
],
49+
},
50+
]

apps/web/global.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
declare module '*.css'

0 commit comments

Comments
 (0)