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

build: lint JS configuration files #869

Merged
merged 1 commit into from
Nov 27, 2024

Conversation

davidlj95
Copy link
Owner

@davidlj95 davidlj95 commented Nov 27, 2024

Moar linter additions. In this case, adding JavaScript configuration files (ESLint config file (:inception:) and Karma configuration files) as files to lint.

To achieve that, ESLint recommended rules are applied to JS files in root of repo.

Fixes issues about __dirname and __filename. Adds Node.js globals.

Renames boolean constant about using typed rules or not. This wasn't linter-triggered, as there are no types in the ESLint config file as it is a *.mjs, not TS file. Using TypeScript for ESLint configuration files is enabled behind a flag + requires an extra dependency. So keeping that file as JavaScript to avoid introducing complexity.

Copy link
Owner Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

Copy link

codecov bot commented Nov 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.98%. Comparing base (e79220c) to head (a07ab12).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #869   +/-   ##
=======================================
  Coverage   95.98%   95.98%           
=======================================
  Files         122      122           
  Lines         623      623           
  Branches       76       76           
=======================================
  Hits          598      598           
  Misses         19       19           
  Partials        6        6           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@davidlj95 davidlj95 merged commit 36e5110 into main Nov 27, 2024
15 checks passed
@davidlj95 davidlj95 deleted the stacked/build-lint-configuration-files branch November 27, 2024 15:33
Copy link

🚀 This pull request is included in v2.63.2. See v2.63.2 for release notes.

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.

1 participant