-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
feat: support TypeScript 4.8 #5551
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
676600f
d63d44f
fe5d77d
913d8d9
18d8bea
9871126
0fba063
e8d1185
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# https://docs.netlify.com/configure-builds/file-based-configuration/#build-settings | ||
[build] | ||
base = "" | ||
publish = "packages/website/build" | ||
command = "NX_VERBOSE_LOGGING=true yarn patch-package && yarn nx build website" | ||
[build.environment] | ||
NETLIFY_USE_YARN = "true" | ||
YARN_FLAGS = "--ignore-scripts" | ||
|
||
# https://docs.netlify.com/configure-builds/file-based-configuration/#redirects | ||
[[redirects]] | ||
from = "/docs/linting" | ||
to = "/docs" | ||
|
||
[[redirects]] | ||
from = "/docs/linting/type-linting" | ||
to = "/docs/linting/typed-linting" | ||
|
||
[[redirects]] | ||
from = "/docs/linting/monorepo" | ||
to = "/docs/linting/typed-linting/monorepos" | ||
|
||
[[redirects]] | ||
from = "/docs/linting/tslint" | ||
to = "/docs/linting/troubleshooting/tslint" |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -110,6 +110,7 @@ export default createRule<Options, MessageIds>({ | |
if ( | ||
prevToken && | ||
isTokenOnSameLine(prevToken, commaToken) && | ||
// eslint-disable-next-line deprecation/deprecation -- TODO - switch once our min ESLint version is 6.7.0 | ||
bradzacher marked this conversation as resolved.
Show resolved
Hide resolved
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. Sorry if I'm forgetting something obvious, what was the line in the sand on ESLint versions here? Is it documented somewhere else? 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. Oh I see I found it on eslint.org, 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 it's marked as deprecated in our types. |
||
spaceBefore !== sourceCode.isSpaceBetweenTokens(prevToken, commaToken) | ||
) { | ||
context.report({ | ||
|
@@ -139,6 +140,7 @@ export default createRule<Options, MessageIds>({ | |
if ( | ||
nextToken && | ||
isTokenOnSameLine(commaToken, nextToken) && | ||
// eslint-disable-next-line deprecation/deprecation -- TODO - switch once our min ESLint version is 6.7.0 | ||
spaceAfter !== sourceCode.isSpaceBetweenTokens(commaToken, nextToken) | ||
) { | ||
context.report({ | ||
|
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.
Non-blocking: We could potentially remove the opt-in verbose logging, it was only needed while troubleshooting something a long while back