Skip to content

Commit

Permalink
Merge pull request #213 from RightCapitalHQ/renovate/eslint-rule-and-…
Browse files Browse the repository at this point in the history
…plugin-updates

fix(deps): update eslint rule and plugin updates
  • Loading branch information
frantic1048 authored Dec 26, 2024
2 parents 8145834 + 57575aa commit 93d81d7
Show file tree
Hide file tree
Showing 8 changed files with 413 additions and 401 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "major",
"comment": "fix(deps): update eslint rule and plugin updates",
"packageName": "@rightcapital/eslint-config",
"email": "29139614+renovate[bot]@users.noreply.github.com",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "major",
"comment": "fix(deps): update eslint rule and plugin updates",
"packageName": "@rightcapital/eslint-plugin",
"email": "29139614+renovate[bot]@users.noreply.github.com",
"dependentChangeType": "patch"
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"commitizen": "4.3.1",
"concurrently": "9.1.0",
"eslint": "9.12.0",
"eslint-plugin-eslint-plugin": "6.3.2",
"eslint-plugin-eslint-plugin": "6.4.0",
"execa": "9.5.2",
"husky": "9.1.7",
"prettier": "3.4.2",
Expand Down
16 changes: 8 additions & 8 deletions packages/eslint-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,21 @@
"prepack": "pnpm run build"
},
"dependencies": {
"@eslint-react/eslint-plugin": "1.17.1",
"@eslint-react/eslint-plugin": "1.22.1",
"@rightcapital/eslint-plugin": "workspace:*",
"@stylistic/eslint-plugin": "2.11.0",
"@typescript-eslint/utils": "8.16.0",
"@stylistic/eslint-plugin": "2.12.1",
"@typescript-eslint/utils": "8.18.2",
"confusing-browser-globals": "1.0.11",
"eslint-import-resolver-typescript": "3.6.3",
"eslint-plugin-import-x": "4.4.3",
"eslint-import-resolver-typescript": "3.7.0",
"eslint-plugin-import-x": "4.6.1",
"eslint-plugin-jsx-a11y": "6.10.2",
"eslint-plugin-lodash": "8.0.0",
"eslint-plugin-n": "17.14.0",
"eslint-plugin-react-hooks": "5.0.0",
"eslint-plugin-n": "17.15.1",
"eslint-plugin-react-hooks": "5.1.0",
"eslint-plugin-simple-import-sort": "12.1.1",
"eslint-plugin-unicorn": "56.0.1",
"globals": "15.14.0",
"typescript-eslint": "8.16.0"
"typescript-eslint": "8.18.2"
},
"devDependencies": {
"@rightcapital/tsconfig": "workspace:*",
Expand Down
9 changes: 9 additions & 0 deletions packages/eslint-config/src/config/mixin/react.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,15 @@ const config: TSESLint.FlatConfig.ConfigArray = [
'@stylistic/jsx-self-closing-comp': 'error',
'@rightcapital/jsx-no-unused-expressions': 'error',

// React 19 feature, not applicable to projects using React 18 or below
// https://react.dev/blog/2024/12/05/react-19#context-as-a-provider
// https://eslint-react.xyz/docs/rules/no-context-provider
'@eslint-react/no-context-provider': 'off',
// React 19 feature
// https://react.dev/blog/2024/12/05/react-19#ref-as-a-prop
// https://eslint-react.xyz/docs/rules/no-forward-ref
'@eslint-react/no-forward-ref': 'off',

// hooks
// Enforce Rules of Hooks
// https://github.com/facebook/react/blob/c11015ff4f610ac2924d1fc6d569a17657a404fd/packages/eslint-plugin-react-hooks/src/RulesOfHooks.js
Expand Down
6 changes: 3 additions & 3 deletions packages/eslint-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@
"update:eslint-docs": "pnpm run build && eslint-doc-generator && prettier --write src/rules/**/*.md"
},
"dependencies": {
"@typescript-eslint/utils": "8.16.0"
"@typescript-eslint/utils": "8.18.2"
},
"devDependencies": {
"@rightcapital/tsconfig": "workspace:*",
"@types/eslint": "8.56.12",
"@types/node": "22.10.2",
"@typescript-eslint/parser": "8.16.0",
"@typescript-eslint/rule-tester": "8.16.0",
"@typescript-eslint/parser": "8.18.2",
"@typescript-eslint/rule-tester": "8.18.2",
"@vitest/coverage-v8": "2.1.8",
"@vitest/ui": "2.1.8",
"eslint": "8.57.1",
Expand Down
Loading

0 comments on commit 93d81d7

Please sign in to comment.