Add ESLint for JavaScript and Vue linting #920
Merged
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.
Summary
This PR adds ESLint to the project for linting JavaScript and Vue files. We were running an old version of ESLint that was removed in #909
Changes
New Dependencies
eslintv9.18.0 - Core ESLint package@eslint/js- ESLint recommended JavaScript ruleseslint-plugin-vuev9.32.0 - Vue 3 component lintingglobalsv15.14.0 - Environment globals definitionsNew Files
eslint.config.js- ESLint flat config with:dist/,output/,node_modules/,tmp/Modified Files
package.json:"type": "module"for ES modules supportlintandlint:fixscriptswebpack.config.js→webpack.config.cjs- Renamed for CommonJS compatibilitysrc/components/tabs.vue- Changedv-iftov-showto fix Vue best practice warning.github/scripts/validate-fixtures-json.js- Prefixed unused catch variable with underscoreUsage
Testing
yarn lintpasses with no errorsyarn buildworks correctly with renamed webpack config