-
Notifications
You must be signed in to change notification settings - Fork 1
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
ESLint v9 に対応 #232
ESLint v9 に対応 #232
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
というおすすめが入ってますが、これは ESLint v9 になった段階で廃止されたコマンドライン引数なので使えません |
eslint.config.js
Outdated
const vueLint = { | ||
files: ['*.vue', '**/*.vue'], | ||
languageOptions: { | ||
parser: vueParser, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
parser: vueParser, | |
"parser": "vue-eslint-parser" |
公式サイトだとこういう風になっているサイトしか見つからなかったので、こうしておくのが無難かなと思います。
https://eslint.vuejs.org/user-guide/#how-to-use-a-custom-parser
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
あれ、これその後のコミットで直しております
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
あ、ほんとだ
@@ -15,7 +15,9 @@ defineProps<{ | |||
> | |||
<user-icon :class="$style.icon" :user-name="hostname.name" :size="128" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ここら辺warnが出てたりするので、fixかけるといいのかなと思います。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
これ linter と formatter が競合している編集箇所っぽいのでちょっと後回しにします
とりあえず v9 対応したかったって感じなので
こっちの話どうなってますか? |
User description
v9 に対応させるとともに、flat config への移行が完了
参考にしたサイトの URL を以下に示すので、これをもとに確認していただければと思います
ESLint 全体の移行: https://eslint.org/docs/latest/use/configure/migration-guide
Vue プラグインの移行: https://eslint.vuejs.org/user-guide/
TypeScript プラグインの移行: https://typescript-eslint.io/getting-started
Vue プラグイン移行だけこれでも不整合が起きたので、追加で以下のサイトも参考にした
https://zenn.dev/shun91/articles/min-eslint-flat-config-for-vue3-ts-prettier
PR Type
enhancement, configuration changes
Description
Changes walkthrough 📝
38 files
IndexPage.vue
コードの可読性向上のための改行追加
src/pages/IndexPage.vue
<h1>
や<h2>
タグの中に改行を追加ContestsContainer.vue
コードの可読性向上のための改行追加
src/components/User/ContestsContainer.vue
<h2>
タグや<li>
タグの中に改行を追加TopSection.vue
コードの可読性向上のための改行追加
src/components/Index/TopSection.vue
<h2>
タグや<router-link>
タグの中に改行を追加BreadCrumbTrail.vue
コードの可読性向上のための改行追加
src/components/Layout/BreadCrumbTrail.vue
<template>
タグや<span>
タグの中に改行を追加EventPage.vue
コードの可読性向上のための改行追加
src/pages/EventPage.vue
<page-title>
タグや<p>
タグの中に改行を追加ProjectsContainer.vue
コードの可読性向上のための改行追加
src/components/User/ProjectsContainer.vue
<h2>
タグや<project-list>
タグの中に改行を追加HostnameListItem.vue
コードの可読性向上のための改行追加
src/components/Event/HostnameListItem.vue
<user-icon>
タグや<div>
タグの中に改行を追加ContestPage.vue
コードの可読性向上のための改行追加
src/pages/ContestPage.vue
<external-link>
タグの中に改行を追加MemberListItem.vue
コードの可読性向上のための改行追加
src/components/Group/MemberListItem.vue
<user-icon>
タグや<p>
タグの中に改行を追加UserDetailContainer.vue
コードの可読性向上のための改行追加
src/components/User/UserDetailContainer.vue
<user-icon>
タグや<div>
タグの中に改行を追加MemberListItem.vue
コードの可読性向上のための改行追加
src/components/ContestTeam/MemberListItem.vue
<user-icon>
タグや<p>
タグの中に改行を追加SearchInput.vue
コードの可読性向上のための改行追加
src/components/UI/SearchInput.vue
<a-icon>
タグや<input>
タグの中に改行を追加UserListItem.vue
コードの可読性向上のための改行追加
src/components/Search/UserListItem.vue
<user-icon>
タグや<p>
タグの中に改行を追加MemberListItem.vue
コードの可読性向上のための改行追加
src/components/Project/MemberListItem.vue
<user-icon>
タグの中に改行を追加AdminListItem.vue
コードの可読性向上のための改行追加
src/components/Group/AdminListItem.vue
<user-icon>
タグの中に改行を追加EventsContainer.vue
コードの可読性向上のための改行追加
src/components/User/EventsContainer.vue
<div>
タグや<p>
タグの中に改行を追加ContestTeamListItem.vue
コードの可読性向上のための改行追加
src/components/Contest/ContestTeamListItem.vue
<span>
タグの中に改行を追加PageFooter.vue
コードの可読性向上のための改行追加
src/components/Layout/PageFooter.vue
<img>
タグや<div>
タグの中に改行を追加SearchPage.vue
コードの可読性向上のための改行追加
src/pages/SearchPage.vue
<template>
タグの中に改行を追加GroupsContainer.vue
コードの可読性向上のための改行追加
src/components/User/GroupsContainer.vue
<h2>
タグの中に改行を追加ExternalLink.vue
コードの可読性向上のための改行追加
src/components/UI/ExternalLink.vue
<a>
タグや<a-icon>
タグの中に改行を追加AccountList.vue
コードの可読性向上のための改行追加
src/components/User/AccountList.vue
<img>
タグの中に改行を追加ProjectPage.vue
コードの可読性向上のための改行追加
src/pages/ProjectPage.vue
<external-link>
タグの中に改行を追加AdminList.vue
コードの可読性向上のための改行追加
src/components/Group/AdminList.vue
<admin-list-item>
タグの中に改行を追加GroupPage.vue
コードの可読性向上のための改行追加
src/pages/GroupPage.vue
<external-link>
タグの中に改行を追加AccountListItem.vue
コードの可読性向上のための改行追加
src/components/User/AccountListItem.vue
<a-icon>
タグの中に改行を追加PageHeader.vue
コードの可読性向上のための改行追加
src/components/Layout/PageHeader.vue
<img>
タグの中に改行を追加EventsPage.vue
コードの可読性向上のための改行追加
src/pages/EventsPage.vue
<page-title>
タグの中に改行を追加AIcon.vue
コードの可読性向上のための改行追加
src/components/UI/AIcon.vue
<Icon>
タグの中に改行を追加ContestListItem.vue
コードの可読性向上のための改行追加
src/components/Contests/ContestListItem.vue
getFullDayWithTimeString
関数の呼び出しに改行を追加EventList.vue
コードの可読性向上のための改行追加
src/components/Events/EventList.vue
<event-list-item>
タグの中に改行を追加GroupList.vue
コードの可読性向上のための改行追加
src/components/Groups/GroupList.vue
<group-list-item>
タグの中に改行を追加App.vue
コードの可読性向上のための改行追加
src/App.vue
<router-view>
タグの中に改行を追加PageContainer.vue
コードの可読性向上のための改行追加
src/components/Layout/PageContainer.vue
<bread-crumb-trail>
タグの中に改行を追加GroupList.vue
コードの可読性向上のための改行追加
src/components/Index/GroupList.vue
<img>
タグの中に改行を追加UserIcon.vue
コードの可読性向上のための改行追加
src/components/UI/UserIcon.vue
<img>
タグの中に改行を追加LoadingPage.vue
コードの可読性向上のための改行追加
src/pages/LoadingPage.vue
<main>
タグの中に改行を追加index.ts
不要なESLintディレクティブの削除
src/lib/apis/index.ts
1 files
eslint.config.js
ESLint v9対応のための設定ファイル追加
eslint.config.js
1 files
package.json
ESLint関連パッケージとスクリプトの更新
package.json
1 files
package-lock.json
...
package-lock.json
...