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

feat: use eslint-compat-utils #605

Merged
merged 4 commits into from
Nov 6, 2023
Merged

feat: use eslint-compat-utils #605

merged 4 commits into from
Nov 6, 2023

Conversation

ota-meshi
Copy link
Member

See https://eslint.org/blog/2023/09/preparing-custom-rules-eslint-v9/

We support older versions of ESLint and cannot be replaced directly. So this PR will be changed to use eslint-compat-utils.

Copy link

changeset-bot bot commented Nov 3, 2023

🦋 Changeset detected

Latest commit: 3a27f6e

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
eslint-plugin-svelte Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Comment on lines +137 to +148
'no-restricted-properties': [
'error',
{ object: 'context', property: 'getSourceCode', message: 'Use src/utils/compat.ts' },
{ object: 'context', property: 'getFilename', message: 'Use src/utils/compat.ts' },
{
object: 'context',
property: 'getPhysicalFilename',
message: 'Use src/utils/compat.ts'
},
{ object: 'context', property: 'getCwd', message: 'Use src/utils/compat.ts' },
{ object: 'context', property: 'getScope', message: 'Use src/utils/compat.ts' },
{ object: 'context', property: 'parserServices', message: 'Use src/utils/compat.ts' }
Copy link
Member

Choose a reason for hiding this comment

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

👍

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
@ota-meshi ota-meshi merged commit ef5f965 into main Nov 6, 2023
@ota-meshi ota-meshi deleted the eslint-compat-utils branch November 6, 2023 14:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants