Skip to content

Commit

Permalink
Merge pull request #673 from DaniFoldi/renovate/eslint-plugin-react-n…
Browse files Browse the repository at this point in the history
…ative-5.x

📎 Update dependency eslint-plugin-react-native to v5
  • Loading branch information
DaniFoldi authored Jan 16, 2025
2 parents 596bad4 + 373a0ed commit 934d0a8
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 34 deletions.
5 changes: 1 addition & 4 deletions packages/bundled-eslint-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
"dist"
],
"devDependencies": {
"@eslint-types/typescript-eslint": "^7.5.0",
"@eslint-types/unicorn": "^52.0.0",
"@types/node": "^22.10.5",
"esbuild": "^0.24.2",
"some-tsconfig-preset": "^1.6.0",
Expand All @@ -27,7 +25,6 @@
},
"dependencies": {
"@brettz9/eslint-plugin": "^3.0.0",
"@eslint/compat": "^1.2.5",
"@stylistic/eslint-plugin-js": "^2.12.1",
"@stylistic/eslint-plugin-plus": "^2.12.1",
"@stylistic/eslint-plugin-ts": "^2.12.1",
Expand All @@ -46,7 +43,7 @@
"eslint-plugin-promise": "^7.2.1",
"eslint-plugin-react": "^7.37.3",
"eslint-plugin-react-hooks": "^5.1.0",
"eslint-plugin-react-native": "^4.1.0",
"eslint-plugin-react-native": "^5.0.0",
"eslint-plugin-react-refresh": "^0.4.16",
"eslint-plugin-security": "^3.0.1",
"eslint-plugin-unicorn": "^56.0.1",
Expand Down
3 changes: 1 addition & 2 deletions packages/bundled-eslint-config/src/setup/for-js.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import eslintPluginSecurity from 'eslint-plugin-security'
import eslintPluginUnicorn from 'eslint-plugin-unicorn'
import globals from 'globals'
import type { Globals, LanguageOptions, Plugins, Rules, Settings } from '../util'
import { fixupPluginRules } from '@eslint/compat'


export const jsSettings: Settings = {
Expand Down Expand Up @@ -58,7 +57,7 @@ export const jsLanguageOptions: LanguageOptions = {
}

export const jsPlugins: Plugins = {
'@brettz9': fixupPluginRules(brettz9EslintPlugin),
'@brettz9': brettz9EslintPlugin,
// @ts-expect-error weird types
'case-police': eslintPluginCasePolice,
// @ts-expect-error weird types
Expand Down
3 changes: 1 addition & 2 deletions packages/bundled-eslint-config/src/setup/for-react-native.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// @ts-expect-error package has no types
import eslintPluginReactNative from 'eslint-plugin-react-native'
import type { Globals, LanguageOptions, Plugins, Rules, Settings } from '../util'
import { fixupPluginRules } from '@eslint/compat'


export const reactNativeSettings: Settings = {}
Expand All @@ -13,7 +12,7 @@ export const reactNativeLanguageOptions: LanguageOptions = {
}

export const reactNativePlugins: Plugins = {
'react-native': fixupPluginRules(eslintPluginReactNative)
'react-native': eslintPluginReactNative
}

export const reactNativeRules: Rules = {
Expand Down
2 changes: 1 addition & 1 deletion packages/bundled-eslint-config/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
"extends": "some-tsconfig-preset/node",
"include": [ "src/**/*" ],
"compilerOptions": {
"types": [ "node", "@eslint-types/unicorn" ]
"types": [ "node" ]
}
}
31 changes: 6 additions & 25 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 934d0a8

Please sign in to comment.