Skip to content

Commit 3b53b07

Browse files
committed
chore: update dependencies
1 parent 581c309 commit 3b53b07

File tree

6 files changed

+2351
-7639
lines changed

6 files changed

+2351
-7639
lines changed

eslint.config.mjs

Lines changed: 7 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,58 +1,30 @@
1-
import path from 'node:path'
2-
import { fileURLToPath } from 'node:url'
3-
4-
import { FlatCompat } from '@eslint/eslintrc'
5-
import js from '@eslint/js'
6-
import typescriptEslint from '@typescript-eslint/eslint-plugin'
71
import parser from '@typescript-eslint/parser'
82
import simpleImportSort from 'eslint-plugin-simple-import-sort'
93
import sortKeysFix from 'eslint-plugin-sort-keys-fix'
4+
import tseslint from 'typescript-eslint'
105

11-
const __filename = fileURLToPath(import.meta.url)
12-
const __dirname = path.dirname(__filename)
13-
const compat = new FlatCompat({
14-
allConfig: js.configs.all,
15-
baseDirectory: __dirname,
16-
recommendedConfig: js.configs.recommended,
17-
})
18-
6+
/** @type {import('eslint').Linter.Config[]} */
197
export default [
20-
{
21-
ignores: ['**/*.d.*', '**/*.js', 'android/', 'ios/', 'node_modules/'],
22-
},
23-
{
24-
files: ['**/*.ts', '**/*.tsx'],
25-
},
26-
...compat.extends(
27-
'eslint:recommended',
28-
'plugin:@typescript-eslint/recommended',
29-
),
8+
{ ignores: ['**/*.d.*', '**/*.js', 'android', 'ios', 'node_modules'] },
9+
{ files: ['**/*.ts', '**/*.tsx'] },
3010
{
3111
languageOptions: {
32-
ecmaVersion: 14,
3312
globals: {},
3413
parser,
35-
parserOptions: {
36-
ecmaFeatures: {
37-
jsx: true,
38-
},
39-
},
14+
parserOptions: { ecmaFeatures: { jsx: true } },
4015
sourceType: 'script',
4116
},
42-
4317
plugins: {
44-
'@typescript-eslint': typescriptEslint,
4518
'simple-import-sort': simpleImportSort,
4619
'sort-keys-fix': sortKeysFix,
4720
},
48-
4921
rules: {
50-
'@typescript-eslint/ban-types': 'off',
51-
'@typescript-eslint/no-explicit-any': 'off',
5222
'no-console': ['warn', { allow: ['error'] }],
5323
'no-duplicate-imports': ['error', { includeExports: true }],
24+
'simple-import-sort/exports': 'error',
5425
'simple-import-sort/imports': 'error',
5526
'sort-keys-fix/sort-keys-fix': 'error',
5627
},
5728
},
29+
...tseslint.configs.recommended,
5830
]

example/app/(app)/home.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import { Bullet } from '@/components/Bullet'
1515
import { Button } from '@/components/Button'
1616
import { ThemedView } from '@/components/ThemedView'
1717

18-
function handleError(error: any) {
18+
function handleError(error: Error) {
1919
return Alert.alert(strings.errorTitle, error?.message ?? strings.errorMessage)
2020
}
2121

0 commit comments

Comments
 (0)