-
Notifications
You must be signed in to change notification settings - Fork 1
Add support ESLint 8 #137
Changes from all commits
bf2dd30
eed1aa0
40bf61e
e5f06cb
1ff592c
7c002b6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
{ | ||
"packages": [ | ||
"packages/*" | ||
], | ||
"version": "0.7.0", | ||
"npmClient": "yarn" | ||
"version": "0.7.0", | ||
"npmClient": "yarn", | ||
"useWorkspaces": true | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
{ | ||
"name": "root", | ||
"private": true, | ||
"workspaces": [ | ||
"packages/*" | ||
], | ||
"scripts": { | ||
"lint": "eslint --ext .js,.ts,.jsx,.tsx packages", | ||
"release": "lerna publish" | ||
|
@@ -9,15 +12,9 @@ | |
"@guardian/eslint-config": "file:packages/eslint-config", | ||
"@guardian/eslint-config-typescript": "file:packages/eslint-config-typescript", | ||
"@guardian/prettier": "file:packages/prettier", | ||
"@typescript-eslint/eslint-plugin": "^4.26.0", | ||
"@typescript-eslint/parser": "^4.26.0", | ||
"eslint": "^7.28.0", | ||
"eslint-config-prettier": "^8.3.0", | ||
"eslint-plugin-eslint-comments": "^3.2.0", | ||
"eslint-plugin-import": "^2.23.4", | ||
"eslint-plugin-prettier": "^3.4.0", | ||
"eslint": "8.0.0", | ||
"lerna": "^4.0.0", | ||
"prettier": "^2.3.1", | ||
"typescript": "^4.3.2" | ||
"prettier": "2.4.0", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nit: is there a reason we must pin to this specific version of There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 2.4 has the new brackets flag config, so this becomes the minimum version the workspace should work with There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I get ya. So the general rule is:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. that's was the thinking yeah – make it as flexible as possible to consume, but make sure we develop with the smallest possible feature set we need. and then obvs if we need a feature from a later version that becomes the baseline |
||
"typescript": "4.0.2" | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,7 @@ | |
"url": "https://github.com/guardian/configs/issues" | ||
}, | ||
"peerDependencies": { | ||
"prettier": "^2.0.0" | ||
"prettier": "^2.4.0" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why force consumers to upgrade? Are we using features that were added after 2.0.0? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah the new new brackets config comes with 2.4 |
||
}, | ||
"publishConfig": { | ||
"access": "public" | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
8.4.1 is the latest, should we be using that instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The idea was to install the minimum possible version in the workspace that our packages should work with, to make using them as flexible as possible without accidentally using features added after the minimum version