Skip to content

Commit 0955c03

Browse files
authored
chore(deps): replace git-user-info; upgrade Sanity and TypeScript (#284)
* chore: initial build with passing tests * chore: updating deps * fix(deps): upgrade @typescript-eslint to v8.26.0 and migrate to flat config Resolves TypeScript 5.8.3 compatibility warning by upgrading from v7.18.0. Migrates ESLint configuration from legacy .eslintrc.js to modern flat config format. Implements project service for improved performance and TypeScript integration.
1 parent b7f5884 commit 0955c03

File tree

8 files changed

+18999
-17379
lines changed

8 files changed

+18999
-17379
lines changed

.eslintrc.js

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

eslint.config.mjs

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
import typescriptEslint from '@typescript-eslint/eslint-plugin'
2+
import typescriptParser from '@typescript-eslint/parser'
3+
import prettier from 'eslint-plugin-prettier'
4+
5+
export default [
6+
{
7+
files: ['**/*.{ts,tsx}'],
8+
languageOptions: {
9+
parser: typescriptParser,
10+
parserOptions: {
11+
projectService: true,
12+
tsconfigRootDir: import.meta.dirname,
13+
},
14+
ecmaVersion: 2022,
15+
sourceType: 'module',
16+
},
17+
plugins: {
18+
'@typescript-eslint': typescriptEslint,
19+
prettier,
20+
},
21+
rules: {
22+
...typescriptEslint.configs.recommended.rules,
23+
'prettier/prettier': 'error',
24+
'@typescript-eslint/explicit-function-return-type': 'off',
25+
'@typescript-eslint/no-explicit-any': 'off',
26+
'@typescript-eslint/no-unused-vars': 'off',
27+
'no-shadow': 'off',
28+
'no-await-in-loop': 'off',
29+
'no-console': 'off',
30+
complexity: 'off',
31+
'id-length': 'off',
32+
'max-depth': 'off',
33+
'no-sync': 'off',
34+
strict: 'off',
35+
},
36+
settings: {
37+
'import/ignore': ['\\.css$', '.*node_modules.*', '.*:.*'],
38+
'import/resolver': {
39+
node: {
40+
paths: ['src'],
41+
extensions: ['.js', '.jsx', '.ts', '.tsx'],
42+
},
43+
},
44+
},
45+
},
46+
{
47+
files: ['**/*.{js,jsx}'],
48+
languageOptions: {
49+
ecmaVersion: 2022,
50+
sourceType: 'module',
51+
},
52+
plugins: {
53+
prettier,
54+
},
55+
rules: {
56+
'prettier/prettier': 'error',
57+
'no-shadow': 'off',
58+
'no-await-in-loop': 'off',
59+
'no-console': 'off',
60+
complexity: 'off',
61+
'id-length': 'off',
62+
'max-depth': 'off',
63+
'no-sync': 'off',
64+
strict: 'off',
65+
},
66+
},
67+
{
68+
ignores: ['test/fixtures/**', 'dist/**', 'node_modules/**', 'assets/**'],
69+
},
70+
]

0 commit comments

Comments
 (0)