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

Correct file extensions/names/patterns: ESLint, TypeScript config/lint #810

Merged
merged 1 commit into from
Apr 3, 2022

Conversation

howlger
Copy link
Contributor

@howlger howlger commented Apr 3, 2022

In the org.eclipse.core.contenttype.contentTypes extension point, the file-extensions attribute must not contain . and * since extension means here the string after the last . and the file-names attribute does not support the * wildcard in contrast to the file-patterns attribute.

Examples:

  • file-extensions="eslintrc" matches the following file names: .eslintrc, foo.eslintrc, etc.
  • file-patterns="*.eslintrc.json" matches the following file names: .eslintrc.json, foo.eslintrc.json, etc.
  • file-extensions="eslintrc.json" does not match any filename

In the "org.eclipse.core.contenttype.contentTypes" extension point
(<https://help.eclipse.org/latest/topic/org.eclipse.platform.doc.isv/reference/extension-points/org_eclipse_core_contenttype_contentTypes.html>),
the "file-extensions" attribute must not contain '.' and '*' since
extension means here the string after the last '.' and the "file-names"
attribute does not support the '*' wildcard in contrast to the
"file-patterns" attribute.

Examples:
- file-extensions="eslintrc" matches the following file names:
  ".eslintrc", "foo.eslintrc", etc.
- file-patterns="*.eslintrc.json" matches the following file names:
  ".eslintrc.json", "foo.eslintrc.json", etc.
- file-extensions="eslintrc.json" does not match any filename
@mickaelistria mickaelistria merged commit d307a8f into eclipse-wildwebdeveloper:master Apr 3, 2022
@mickaelistria
Copy link
Contributor

Thanks!

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.

2 participants