chore: improve interop between prettier and eslint #29
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
quoteProps
to"consistent"
to match ESLint'squote-props
rule.avoidEscape
totrue
for ESLint's@stylistic/quotes
rule to match Prettier's formatting behavior when dealing with strings with double quote characters inside (e.g.,'"foo"="bar"'
).Other changes:
ignoreRestSiblings
totrue
for ESLint's@typescript-eslint/no-unused-vars
rule to prevent false positives in situations like this:foo
would affect the behavior.eslint-config-preact
and../../.eslintrc.cjs
extend entries in the ESLint config ofweb-awesome
to prioritize the project settings over the ones in the preact preset. Otherwise, the plainno-unused-vars
rule would be used instead of the TypeScript version. Some other rules like@stylistic/quotes
would also be misconfigured with regard to the project scope.