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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
@babel/eslint-plugin: Update rules/tests to use @babel/eslint-parser #10977
Conversation
781a102
to
d89cf03
Compare
6f2e00d
to
994fa62
Compare
if ( | ||
node.type === "ExportNamedDeclaration" && | ||
node.specifiers.length === 1 && | ||
node.specifiers[0].type === "ExportDefaultSpecifier" |
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.
This code change is to allow the core rule to handle exportNamespaceFrom
, since it's stage 4.
@@ -102,21 +103,3 @@ const semiRuleWithClassProperty = ruleComposer.joinReports([ | |||
}, | |||
}), | |||
]); | |||
|
|||
export default ruleComposer.filterReports( |
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.
Async iterators should be handled by ESLint core
"description": "Shared fixtures for testing @babel/eslint-* packages", | ||
"license": "MIT", | ||
"private": true, | ||
"dependencies": { |
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.
Wanted to check to make sure this seemed like the best way to share these configs.
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.
We don't do anything like this currently, but I think that it's ok.
7aa4dba
to
5292fd9
Compare
|
||
const isUnnecessarySemicolon = (context, lastToken) => { | ||
function isUnnecessarySemicolon(context, lastToken) { |
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.
Fwiw, I love this change 馃槀
@@ -29,22 +29,8 @@ | |||
"semver": "^6.3.0" | |||
}, | |||
"devDependencies": { | |||
"@babel/eslint-shared-fixtures": "0.0.0", |
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.
I think that lerna will update 0.0.0
. Maybe we could use *
instead?
Should we also update the |
Thanks for the reviews!
I thought I did this, but maybe I'm misunderstanding. Mind pointing me to which lines you're talking about? |
5292fd9
to
2db04ba
Compare
Nevermind, I missed it somehow 馃槄 |
Thanks again for the reviews! Any other concerns with this? |
This PR builds on #10975 (we should land that first or, if folks prefer, this PR can supersede that one) and does the following:
@babel/eslint-plugin
@babel/eslint-parser
for@babel/eslint-plugin
's testseslint/babel-eslint-shared-fixtures
so that we can centralize shared fixtures for the ESLint packagesThis should get us back to a pretty sane state that we can use as a foundation to figure out what our maintenance strategy will be here. Excited to start figuring that stuff out!