Skip to content

Commit

Permalink
update typescript-eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
joephela committed Jul 12, 2024
1 parent fec52b2 commit f6d5b88
Show file tree
Hide file tree
Showing 7 changed files with 34 additions and 203 deletions.
6 changes: 6 additions & 0 deletions .changeset/quick-bats-jog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'eslint-config-widen': patch
'eslint-playground': patch
---

Upgrade the typescript-eslint package away from the legacy config setups.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Widen's shared ESLint config and plugins.
yarn add -D eslint eslint-{config,plugin}-widen eslint-plugin-sort @babel/{core,eslint-parser}

# If you use TypeScript
yarn add -D @typescript-eslint/{eslint-plugin,parser}
yarn add -D typescript-eslint

# If you use React
yarn add -D eslint-plugin-{react,react-hooks,jsx-a11y}
Expand Down
5 changes: 1 addition & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,11 @@
"@changesets/cli": "^2.27.7",
"@eslint/eslintrc": "^3.1.0",
"@eslint/js": "^9.6.0",
"@typescript-eslint/eslint-plugin": "^7.16.0",
"@typescript-eslint/parser": "^7.16.0",
"eslint": "^9.6.0",
"eslint-plugin-sort": "^3.0.2",
"globals": "^15.8.0",
"jest": "^29.7.0",
"prettier": "^3.3.2",
"typescript": "^5.5.3",
"typescript-eslint": "^7.16.0"
"typescript": "^5.5.3"
}
}
14 changes: 5 additions & 9 deletions packages/eslint-config-widen/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,24 +16,17 @@
"name": "eslint-config-widen",
"peerDependencies": {
"@babel/eslint-parser": "^7.22.15",
"@typescript-eslint/eslint-plugin": "^6.9.1",
"@typescript-eslint/parser": "^6.9.1",
"eslint": ">= 9",
"eslint-plugin-jest": ">= 28",
"eslint-plugin-jsx-a11y": ">= 6",
"eslint-plugin-playwright": ">= 1",
"eslint-plugin-react": ">= 7",
"eslint-plugin-react-hooks": ">= 4",
"eslint-plugin-sort": ">= 3",
"eslint-plugin-widen": ">=3.0.0"
"eslint-plugin-widen": ">=3.0.0",
"typescript-eslint": ">= 7.16.0"
},
"peerDependenciesMeta": {
"@typescript-eslint/eslint-plugin": {
"optional": true
},
"@typescript-eslint/parser": {
"optional": true
},
"eslint-plugin-jest": {
"optional": true
},
Expand All @@ -48,6 +41,9 @@
},
"eslint-plugin-react-hooks": {
"optional": true
},
"typescript-eslint": {
"optional": true
}
},
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-config-widen/src/base.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import babelParser from '@babel/eslint-parser'
import js from '@eslint/js'
import prettier from 'eslint-plugin-prettier'
import sort from 'eslint-plugin-sort'
import widen from 'eslint-plugin-widen'
import babelParser from '@babel/eslint-parser'
import sharedGlobals from './sharedGlobals.js'

export default [
Expand Down
3 changes: 2 additions & 1 deletion packages/eslint-playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
"eslint-plugin-react": "^7.34.3",
"eslint-plugin-react-hooks": "^4.6.2",
"eslint-plugin-sort": "^3.0.2",
"eslint-plugin-widen": "workspace:^"
"eslint-plugin-widen": "workspace:^",
"typescript-eslint": "^7.16.0"
},
"dependencies": {
"react": "^18.3.1"
Expand Down
Loading

0 comments on commit f6d5b88

Please sign in to comment.