Skip to content
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

Default-rule implemented with parsers.all #2491

Draft
wants to merge 14 commits into
base: parsers
Choose a base branch
from

Conversation

greatsage-raphael
Copy link

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

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
Copy link
Member

ljharb commented Jul 7, 2022

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.

tests/src/rules/default.js Outdated Show resolved Hide resolved
tests/src/rules/default.js Outdated Show resolved Hide resolved
tests/src/rules/default.js Outdated Show resolved Hide resolved
tests/src/rules/default.js Outdated Show resolved Hide resolved
tests/src/rules/default.js Outdated Show resolved Hide resolved
tests/src/rules/default.js Outdated Show resolved Hide resolved
code: `import foobar from "./typescript"`,
parser,

Copy link
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
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
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
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
Author

Choose a reason for hiding this comment

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

okay

tests/src/rules/default.js Outdated Show resolved Hide resolved
tests/src/rules/default.js Show resolved Hide resolved
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