Skip to content

Commit

Permalink
Add eslint compat package
Browse files Browse the repository at this point in the history
  • Loading branch information
derneuere committed Jul 18, 2024
1 parent cda2c13 commit e8ec150
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
3 changes: 2 additions & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import jest from 'eslint-plugin-jest'
import path from 'node:path'
import { fileURLToPath } from 'node:url'
import js from '@eslint/js'
import { fixupConfigRules } from '@eslint/compat'
import { FlatCompat } from '@eslint/eslintrc'

const __filename = fileURLToPath(import.meta.url)
Expand All @@ -13,7 +14,7 @@ const compat = new FlatCompat({
})

export default [
...compat.extends('@react-native'),
...fixupConfigRules(compat.extends('@react-native')),
{
plugins: {
jest,
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
"devDependencies": {
"@babel/core": "^7.21.0",
"@babel/runtime": "^7.21.0",
"@eslint/compat": "^1.1.1",
"@eslint/eslintrc": "^3.1.0",
"@eslint/js": "^9.7.0",
"@react-native/eslint-config": "^0.74.85",
Expand Down
2 changes: 1 addition & 1 deletion src/Store/Settings/site-settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const SiteSettingsSchema = z.object({
allow_registration: z.boolean(),
allow_upload: z.boolean(),
skip_patterns: z.string(),
heavyweight_process: z.number(),
heavyweight_process: z.number().nullable(),
map_api_key: z.string(),
})

Expand Down
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1156,6 +1156,11 @@
resolved "https://registry.yarnpkg.com/@eslint-community/regexpp/-/regexpp-4.11.0.tgz#b0ffd0312b4a3fd2d6f77237e7248a5ad3a680ae"
integrity sha512-G/M/tIiMrTAxEWRfLfQJMmGNX28IxBg4PBz8XqQhqUHLFI6TL2htpIB1iQCj144V5ee/JaKyT9/WZ0MGZWfA7A==

"@eslint/compat@^1.1.1":
version "1.1.1"
resolved "https://registry.yarnpkg.com/@eslint/compat/-/compat-1.1.1.tgz#5736523f5105c94dfae5f35e31debc38443722cd"
integrity sha512-lpHyRyplhGPL5mGEh6M9O5nnKk0Gz4bFI+Zu6tKlPpDUN7XshWvH9C/px4UVm87IAANE0W81CEsNGbS1KlzXpA==

"@eslint/config-array@^0.17.0":
version "0.17.0"
resolved "https://registry.yarnpkg.com/@eslint/config-array/-/config-array-0.17.0.tgz#ff305e1ee618a00e6e5d0485454c8d92d94a860d"
Expand Down

0 comments on commit e8ec150

Please sign in to comment.