Upgrade eslint 8 > 9#5777
Conversation
115a182 to
c4d6ea2
Compare
|
Since we can switch from |
ChunkyProgrammer
left a comment
There was a problem hiding this comment.
We should definitely try to fix: Separate config files for json/yaml files due to I can't avoid recommended config from being applied on them
Since IDEs/code editors wont be able to highlight the issues
eslint.config.mjs
Outdated
|
|
||
| settings: { | ||
| 'vue-i18n': { | ||
| localeDir: './static/locales/{en-US,en-GB,ar,bg,ca,cs,da,de-DE,el,es,es-AR,es-MX,et,eu,fa,fi,fr-FR,gl,he,hu,hr,id,is,it,ja,ko,lt,nb-NO,nl,nn,pl,pt,pt-BR,pt-PT,ro,ru,sk,sl,sr,sv,tr,uk,vi,zh-CN,zh-TW}.yaml', |
There was a problem hiding this comment.
Please import the list instead of hardcoding it, so that we don't have to maintain it in multiple places. Using import activeLocales from './static/locales/activeLocales.json' with { type: 'json' } and then calling .join(',') on the imported array should work.
According to the history drop down on https://nodejs.org/api/esm.html#import-attributes the with keyword is supported in Node 21+ and in the LTS versions 18.20+ and 20.10+, so we should be fine using it.
There was a problem hiding this comment.
There was a problem hiding this comment.
The reason it didn't work with the static import is because of the missing : between type and 'json'.
|
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
c4d6ea2 to
2106782
Compare
|
Conflicts have been resolved. A maintainer will review the pull request shortly. |
|
@ChunkyProgrammer config files merged |
absidue
left a comment
There was a problem hiding this comment.
Windows CMD doesn't interpret single quotes, so it passes them through to eslint and then eslint fails to find files that start and end with single quotes. I've suggested changes to switch to double quotes instead.
|
Updated~ |
* development: (55 commits) Translated using Weblate (Russian) Translated using Weblate (Japanese) fix cmd+m shortcut to minimize the window on macos and not mute the video (FreeTubeApp#5828) (FreeTubeApp#5829) Update dependabot.yml to add new eslint packages into the eslint group (FreeTubeApp#5837) Bump the babel group with 4 updates (FreeTubeApp#5831) Bump globals from 15.9.0 to 15.10.0 (FreeTubeApp#5835) Bump lefthook from 1.7.17 to 1.7.18 (FreeTubeApp#5836) Bump the eslint group with 2 updates (FreeTubeApp#5832) Bump @eslint/js from 9.11.1 to 9.12.0 (FreeTubeApp#5833) Bump @eslint/compat from 1.1.1 to 1.2.0 (FreeTubeApp#5834) Translated using Weblate (Belarusian) Translated using Weblate (Hebrew) Translated using Weblate (Chinese (Traditional Han script)) Turn `vue/no-useless-template-attributes` eslint rule back on (FreeTubeApp#5830) Translated using Weblate (Serbian) Translated using Weblate (Belarusian) Translated using Weblate (Belarusian) Translated using Weblate (Belarusian) Upgrade eslint 8 > 9 (FreeTubeApp#5777) Translated using Weblate (Belarusian) ...



Pull Request Type
Related issue
Description
--extanymore, and using blob like./**/*.jsis very slow compared to specific folders, so only 2 folders are specified for js/vue filesScreenshots
Testing
yarn run lintyarn run lint-jsonyarn run lint-ymlDesktop
Additional context