Skip to content

Commit

Permalink
Update typescript-eslint monorepo to v6 (#256)
Browse files Browse the repository at this point in the history
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Karl Horky <[email protected]>
  • Loading branch information
renovate[bot] and karlhorky authored Jul 18, 2023
1 parent 58548fb commit cc7e769
Show file tree
Hide file tree
Showing 5 changed files with 113 additions and 81 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/** @type {import('@typescript-eslint/utils').TSESLint.Linter.Config} */
/** @type {import('@typescript-eslint/utils/dist').TSESLint.Linter.Config} */
const config = {
extends: ['upleveled'],
};
Expand Down
6 changes: 3 additions & 3 deletions index.cjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/** @type {import('@typescript-eslint/utils').TSESLint.Linter.RuleLevelAndOptions} */
/** @type {import('@typescript-eslint/utils/dist').TSESLint.Linter.RuleLevelAndOptions} */
const noRestrictedSyntaxOptions = [
'warn',
// Currently it is not possible to use Markdown eg. links in ESLint warnings / error messages
Expand Down Expand Up @@ -192,7 +192,7 @@ Prefer an if...else statement like this:
* https://github.com/facebook/create-react-app/blob/main/packages/eslint-config-react-app/index.js
* https://github.com/facebook/create-react-app/blob/main/packages/eslint-config-react-app/base.js
*
* @type {import('@typescript-eslint/utils').TSESLint.Linter.Config['rules']}
* @type {import('@typescript-eslint/utils/dist').TSESLint.Linter.Config['rules']}
*/
const eslintConfigReactAppRules = {
'array-callback-return': 'warn',
Expand Down Expand Up @@ -419,7 +419,7 @@ const eslintConfigReactAppRules = {
'react-hooks/rules-of-hooks': 'error',
};

/** @type {import('@typescript-eslint/utils').TSESLint.Linter.Config} */
/** @type {import('@typescript-eslint/utils/dist').TSESLint.Linter.Config} */
const config = {
root: true,
parser: '@typescript-eslint/parser',
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@
"@types/node": ">=20.4.2",
"@types/react": "^18.2.15",
"@types/react-dom": "^18.2.7",
"@typescript-eslint/eslint-plugin": "^5.61.0",
"@typescript-eslint/parser": "^5.61.0",
"@typescript-eslint/eslint-plugin": "^6.1.0",
"@typescript-eslint/parser": "^6.1.0",
"eslint": "^8.44.0",
"eslint-import-resolver-typescript": "^3.5.5",
"eslint-plugin-import": "^2.27.5",
Expand Down
Loading

0 comments on commit cc7e769

Please sign in to comment.