Skip to content
This repository has been archived by the owner on Aug 18, 2020. It is now read-only.

Revert Typescript update to fix prettier #249

Merged
merged 2 commits into from
Apr 26, 2019
Merged

Revert Typescript update to fix prettier #249

merged 2 commits into from
Apr 26, 2019

Conversation

cartogram
Copy link
Contributor

@cartogram cartogram commented Apr 26, 2019

This PR reverts the typescript updates from #233 because they break the vscode prettier plugin. Without these changes, vscode will not format code using prettier-eslint. The following error will display in the output:

Error while loading rule '@typescript-eslint/no-unnecessary-qualifier'/Users/mattseccafien/src/github.com/Shopify/graphql-tools-web/src/utilities.ts:: You have used a rule which requires parserServices to be generated. You must therefore provide a value for the "parserOptions.project" property for @typescript-eslint/parser.
Occurred while linting /Users/mattseccafien/src/github.com/Shopify/graphql-tools-web/src/utilities.ts

@cartogram cartogram changed the title Testing a fix [wip] Testing a fix Apr 26, 2019
@cartogram cartogram changed the title [wip] Testing a fix Prettier auto-format fix Apr 26, 2019
@cartogram cartogram changed the title Prettier auto-format fix Revert Typescript update to fix prettier Apr 26, 2019
@cartogram cartogram requested review from lemonmade and amrocha April 26, 2019 05:58
"merge": "1.2.1",
"pascal-case": "^2.0.1",
"pkg-dir": "4.1.0",
"pluralize": "^7.0.0"
"pluralize": "^7.0.0",
"typescript-eslint-parser": "20.0.0"
Copy link
Member

Choose a reason for hiding this comment

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

Do you know what versions of TypeScript this supports?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah it should be on ~3.2.1, thanks for catching that.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Actually, what I had was right. typescript-estree doesn't support past ~3.1.1.

// parserOptions: {
// project: 'tsconfig.json',
// tsconfigRootDir: __dirname,
// },
Copy link
Member

Choose a reason for hiding this comment

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

🔥

@cartogram cartogram merged commit 233a6be into master Apr 26, 2019
cartogram pushed a commit that referenced this pull request Apr 26, 2019
* 'master' of github.com:Shopify/eslint-plugin-shopify:
  Revert Typescript update to fix prettier (#249)
@alexandcote alexandcote deleted the fix-prettier branch March 27, 2020 23:51
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants