Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

deps: update prettier to v3, @typescript-eslint to v6 #295

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@ plugins:
spec: "@yarnpkg/plugin-typescript"
- path: .yarn/plugins/@yarnpkg/plugin-semver-up.cjs
spec: "https://raw.githubusercontent.com/tophat/yarn-plugin-semver-up/master/bundles/%40yarnpkg/plugin-semver-up.js"

enableTransparentWorkspaces: false
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lets us use the published @tophat/eslint-config package within this repo rather than have Yarn auto-link to the non-published local packages which are not transpiled.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This I don't understand at all :)

36 changes: 18 additions & 18 deletions config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,19 +39,19 @@
"peerDependencies": {
"@tanstack/eslint-plugin-query": ">=4.29.0",
"@tophat/eslint-import-resolver-require": "^0.1.5",
"@typescript-eslint/eslint-plugin": ">=5.58.0",
"@typescript-eslint/parser": ">=5.58.0",
"eslint": ">=8.36.0",
"@typescript-eslint/eslint-plugin": ">=6.0.0",
"@typescript-eslint/parser": ">=6.0.0",
"eslint": ">=8.45.0",
"eslint-config-prettier": ">=8.8.0",
"eslint-import-resolver-node": ">=0.3.7",
"eslint-import-resolver-typescript": ">=3.5.5",
"eslint-plugin-import": ">=2.27.5",
"eslint-plugin-jest": ">=27.2.1",
"eslint-plugin-jest": ">=27.2.3",
"eslint-plugin-jsx-a11y": ">=6.7.1",
"eslint-plugin-prettier": ">=4.2.1",
"eslint-plugin-prettier": ">=5.0.0",
"eslint-plugin-react": ">=7.32.2",
"eslint-plugin-react-hooks": ">=4.6.0",
"prettier": ">=2.8.7",
"prettier": ">=3.0.0",
"typescript": ">=5.0.4"
},
"dependencies": {
Expand All @@ -60,28 +60,28 @@
"eslint-import-resolver-typescript": "^3.5.5"
},
"devDependencies": {
"@tanstack/eslint-plugin-query": "^4.29.0",
"@types/eslint": "^8.37.0",
"@types/jest": "^29.5.0",
"@tanstack/eslint-plugin-query": "^4.29.25",
"@types/eslint": "^8.44.0",
"@types/jest": "^29.5.3",
"@types/node": "^18.15.11",
"@typescript-eslint/eslint-plugin": "^5.62.0",
"@typescript-eslint/parser": "^5.62.0",
"@typescript-eslint/utils": "^5.62.0",
"@typescript-eslint/eslint-plugin": "^6.0.0",
"@typescript-eslint/parser": "^6.0.0",
"@typescript-eslint/utils": "^6.0.0",
"@yarnpkg/core": "^3.5.2",
"@yarnpkg/sdks": "^3.0.0-rc.46",
"eslint": "^8.38.0",
"@yarnpkg/sdks": "^3.0.0-rc.48",
"eslint": "^8.45.0",
"eslint-config-prettier": "^8.8.0",
"eslint-import-resolver-node": "^0.3.7",
"eslint-import-resolver-typescript": "^3.5.5",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-jest": "^27.2.1",
"eslint-plugin-jest": "^27.2.3",
"eslint-plugin-jsx-a11y": "^6.7.1",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-prettier": "^5.0.0",
"eslint-plugin-react": "^7.32.2",
"eslint-plugin-react-hooks": "^4.6.0",
"prettier": "^2.8.7",
"prettier": "^3.0.0",
"ts-node": "^10.9.1",
"typescript": "5.1.3"
"typescript": "5.1.6"
},
"peerDependenciesMeta": {
"@tanstack/eslint-plugin-query": {
Expand Down
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@
"@tanstack/eslint-plugin-query": "^4.29.25",
"@tophat/conventional-changelog-config": "^1.0.1",
"@tophat/eslint-config": "workspace:*",
"@tophat/eslint-import-resolver-require": "^0.1.4",
"@tophat/eslint-import-resolver-require": "^0.1.5",
"@types/eslint": "^8.44.0",
"@types/jest": "^29.5.3",
"@types/node": "^18.15.11",
"@typescript-eslint/eslint-plugin": "^5.62.0",
"@typescript-eslint/parser": "^5.62.0",
"@typescript-eslint/utils": "^5.62.0",
"@typescript-eslint/eslint-plugin": "^6.0.0",
"@typescript-eslint/parser": "^6.0.0",
"@typescript-eslint/utils": "^6.0.0",
"@yarnpkg/core": "^3.5.2",
"@yarnpkg/sdks": "^3.0.0-rc.48",
"all-contributors-cli": "^6.26.1",
Expand All @@ -48,16 +48,16 @@
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-jest": "^27.2.3",
"eslint-plugin-jsx-a11y": "^6.7.1",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-prettier": "^5.0.0",
"eslint-plugin-react": "^7.32.2",
"eslint-plugin-react-hooks": "^4.6.0",
"jest": "^29.6.1",
"jest-junit": "^16.0.0",
"monodeploy": "^4.1.0",
"prettier": "^2.8.8",
"prettier": "^3.0.0",
"ts-jest": "^29.1.1",
"ts-node": "^10.9.1",
"typescript": "5.1.6"
},
"packageManager": "[email protected].0"
"packageManager": "[email protected].1"
}
4 changes: 3 additions & 1 deletion plugins/eslint-plugin-import/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,15 @@
"prepack": "rm -rf lib && run -T tsc -p ./tsconfig.build.json"
},
"devDependencies": {
"@eslint/eslintrc": "^2.1.0",
"@types/eslint": "^8.44.0",
"@types/jest": "^29.5.3",
"@types/node": "^18.15.11",
"@typescript-eslint/rule-tester": "6.0.0",
"eslint": "^8.45.0"
},
"dependencies": {
"@typescript-eslint/utils": "^5.62.0"
"@typescript-eslint/utils": "^6.0.0"
},
"peerDependencies": {
"eslint": "^8.38.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import {
ESLintUtils,
type TSESTree,
} from '@typescript-eslint/utils'
import { isIdentifier } from '@typescript-eslint/utils/dist/ast-utils'

const createRule = ESLintUtils.RuleCreator(
(name) => `@tophat/eslint-plugin-import/${name}`,
Expand All @@ -27,6 +26,8 @@ const isImportDefaultSpecifier = ASTUtils.isNodeOfType(
AST_NODE_TYPES.ImportDefaultSpecifier,
)

const isIdentifier = ASTUtils.isNodeOfType(AST_NODE_TYPES.Identifier)

const isImportSpecifier = ASTUtils.isNodeOfType(AST_NODE_TYPES.ImportSpecifier)

const rule = createRule<Options, MessageIds>({
Expand All @@ -35,7 +36,7 @@ const rule = createRule<Options, MessageIds>({
docs: {
description:
'Do not use the default React import, instead be explicit about imports.',
recommended: 'error',
recommended: 'recommended',
},
messages: {
'rewrite-import': 'Your React import should contain: {{methods}}.',
Expand All @@ -51,7 +52,6 @@ const rule = createRule<Options, MessageIds>({
items: {
type: 'string',
},
additionalProperties: false,
},
},
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { ESLintUtils } from '@typescript-eslint/utils'
import { RuleTester } from '@typescript-eslint/rule-tester'

import rule from '.'

const ruleTester = new ESLintUtils.RuleTester({
const ruleTester = new RuleTester({
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 2020,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ const rule = createRule({
docs: {
description:
'Do not use relative imports if an alias is available.',
recommended: 'error',
recommended: 'recommended',
},
messages: {
'rewrite-import':
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import path from 'path'

import { ESLintUtils } from '@typescript-eslint/utils'
import { RuleTester } from '@typescript-eslint/rule-tester'

import rule from '.'

const ruleTester = new ESLintUtils.RuleTester({
const ruleTester = new RuleTester({
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 2020,
Expand Down
Loading