Skip to content

Default-rule implemented with parsers.all#2491

Draft
greatsage-raphael wants to merge 14 commits into
import-js:parsersfrom
greatsage-raphael:main
Draft

Default-rule implemented with parsers.all#2491
greatsage-raphael wants to merge 14 commits into
import-js:parsersfrom
greatsage-raphael:main

Conversation

@greatsage-raphael

@greatsage-raphael greatsage-raphael commented Jul 7, 2022

Copy link
Copy Markdown

Closes #2482.

@greatsage-raphael greatsage-raphael changed the title Parsers.all used on the default rule Default-rule implemented with parsers.all Jul 7, 2022
@greatsage-raphael greatsage-raphael changed the base branch from main to parsers July 7, 2022 12:43
@ljharb ljharb marked this pull request as draft July 7, 2022 18:13
@ljharb

ljharb commented Jul 7, 2022

Copy link
Copy Markdown
Member

Ideally this would have updated the default-rule branch instead of main; I'll keep this in sync with #2482. Please try to leave both branches undeleted and both PRs open.

Comment thread tests/src/rules/default.js Outdated
Comment thread tests/src/rules/default.js Outdated
Comment thread tests/src/rules/default.js Outdated
Comment thread tests/src/rules/default.js Outdated
Comment thread tests/src/rules/default.js Outdated
Comment thread tests/src/rules/default.js Outdated
Comment thread tests/src/rules/default.js Outdated
test({
code: `import foobar from "./typescript"`,
parser,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
features: ['ts'],

and same for all the TS cases

Comment on lines -300 to -302
parserOptions: {
tsconfigRootDir: path.resolve(__dirname, '../../files/typescript-no-compiler-options/'),
},

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

i think we still need this one

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Just that one or should it be all the parserOptions should be re-added

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We should be keeping any parserOptions that are specific to the test case and can't be generically inferred from features

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

okay

Comment thread tests/src/rules/default.js Outdated
Comment thread tests/src/rules/default.js
greatsage-raphael and others added 9 commits July 8, 2022 18:29
Co-authored-by: Jordan Harband <ljharb@gmail.com>
Co-authored-by: Jordan Harband <ljharb@gmail.com>
Co-authored-by: Jordan Harband <ljharb@gmail.com>
Co-authored-by: Jordan Harband <ljharb@gmail.com>
Co-authored-by: Jordan Harband <ljharb@gmail.com>
Co-authored-by: Jordan Harband <ljharb@gmail.com>
Co-authored-by: Jordan Harband <ljharb@gmail.com>
Co-authored-by: Jordan Harband <ljharb@gmail.com>
Co-authored-by: Jordan Harband <ljharb@gmail.com>
@ljharb ljharb force-pushed the parsers branch 3 times, most recently from 11b90b1 to e96dbc1 Compare July 19, 2022 18:49
@ljharb ljharb force-pushed the parsers branch 2 times, most recently from e81ddfd to dd74311 Compare August 23, 2022 22:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants