timetable-app

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 753c0bcfb7089102fd85093aeab04ea059c958e4
parent 1a77cbf571766c4f6e1d66c629e5ce84f0d6b2e2
Author: Yuukin256 <Yuukin256@gmail.com>
Date:   Thu,  3 Nov 2022 23:42:56 +0900

eslint設定変更

Diffstat:
A.eslintignore | 6++++++
M.eslintrc.yml | 10+++++++++-
Mpackage.json | 1+
3 files changed, 16 insertions(+), 1 deletion(-)

diff --git a/.eslintignore b/.eslintignore @@ -0,0 +1,6 @@ +node_modules/ +.next/ +.yarn/ +*config.js +*.validator.ts +$api.ts diff --git a/.eslintrc.yml b/.eslintrc.yml @@ -4,7 +4,8 @@ env: extends: - eslint:recommended - - plugin:@next/next/recommended + - next + - next/core-web-vitals - plugin:@typescript-eslint/recommended - plugin:import/recommended - plugin:import/typescript @@ -34,8 +35,15 @@ rules: alphabetize: order: asc newlines-between: always + '@typescript-eslint/consistent-type-imports': error + unused-imports/no-unused-imports: warn + react/jsx-key: + - error + - checkFragmentShorthand: true + warnOnDuplicates: true + settings: import/resolver: typescript diff --git a/package.json b/package.json @@ -43,6 +43,7 @@ "@typescript-eslint/eslint-plugin": "^5.17.0", "@typescript-eslint/parser": "^5.17.0", "eslint": "^8.12.0", + "eslint-config-next": "^13.0.1", "eslint-config-prettier": "^8.5.0", "eslint-import-resolver-typescript": "^2.7.0", "eslint-plugin-import": "^2.25.4",