From 8243735460ff9bd04761446c1effb7d99618f44a Mon Sep 17 00:00:00 2001 From: Kazuki Tobita Date: Tue, 5 Dec 2023 06:25:39 +0900 Subject: [PATCH 1/3] =?UTF-8?q?=F0=9F=8E=A8=20chore:=20Prettier=E3=81=AE?= =?UTF-8?q?=E8=A8=AD=E5=AE=9A=E3=82=92JSON=E3=81=8B=E3=82=89YAML=E3=81=AB?= =?UTF-8?q?=E5=A4=89=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .prettierrc.json | 6 ------ .prettierrc.yml | 4 ++++ 2 files changed, 4 insertions(+), 6 deletions(-) delete mode 100644 .prettierrc.json create mode 100644 .prettierrc.yml diff --git a/.prettierrc.json b/.prettierrc.json deleted file mode 100644 index bc3336fb..00000000 --- a/.prettierrc.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "printWidth": 100, - "tabWidth": 2, - "singleQuote": true, - "semi": true -} diff --git a/.prettierrc.yml b/.prettierrc.yml new file mode 100644 index 00000000..74c99a6e --- /dev/null +++ b/.prettierrc.yml @@ -0,0 +1,4 @@ +'printWidth': 100 +'tabWidth': 2 +'singleQuote': true +'semi': true From 97f11e69bd137106accc7ec70044e5ed08ba7a30 Mon Sep 17 00:00:00 2001 From: Kazuki Tobita Date: Tue, 5 Dec 2023 06:32:22 +0900 Subject: [PATCH 2/3] =?UTF-8?q?=F0=9F=8E=A8=20chore:=20ESLint=E3=81=AE?= =?UTF-8?q?=E8=A8=AD=E5=AE=9A=E3=82=92JSON=E3=81=8B=E3=82=89YAML=E3=81=AB?= =?UTF-8?q?=E5=A4=89=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .cspell.json | 3 ++- .eslintrc.json | 54 -------------------------------------------------- .eslintrc.yml | 49 +++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 51 insertions(+), 55 deletions(-) delete mode 100644 .eslintrc.json create mode 100644 .eslintrc.yml diff --git a/.cspell.json b/.cspell.json index dd436678..bcaa713c 100644 --- a/.cspell.json +++ b/.cspell.json @@ -44,7 +44,8 @@ "tyokinuhata", "uyupunpopunpo", "webp", - "vercel" + "vercel", + "eqeqeq" ] } ] diff --git a/.eslintrc.json b/.eslintrc.json deleted file mode 100644 index 2ef737c2..00000000 --- a/.eslintrc.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "env": { - "browser": true, - "node": true, - "es2021": true - }, - "extends": ["standard-with-typescript", "next/core-web-vitals", "prettier"], - "parser": "@typescript-eslint/parser", - "parserOptions": { - "ecmaVersion": "latest", - "sourceType": "module", - "project": "./tsconfig.eslint.json", - "jsx": true - }, - "rules": { - "import/order": [ - "warn", - { - "groups": [ - "builtin", - "external", - "internal", - "parent", - "sibling", - "index", - "object", - "type" - ], - "newlines-between": "always", - "pathGroupsExcludedImportTypes": ["builtin"], - "alphabetize": { "order": "asc", "caseInsensitive": true } - } - ], - "eqeqeq": "error", - "@typescript-eslint/no-misused-promises": [ - "error", - { - "checksVoidReturn": { - "attributes": false - } - } - ], - "@typescript-eslint/consistent-type-definitions": ["error", "type"], - "react/jsx-sort-props": "warn" - }, - "overrides": [ - { - "files": ["next-env.d.ts"], - "rules": { - "@typescript-eslint/triple-slash-reference": "off" - } - } - ] -} diff --git a/.eslintrc.yml b/.eslintrc.yml new file mode 100644 index 00000000..5c0e4c65 --- /dev/null +++ b/.eslintrc.yml @@ -0,0 +1,49 @@ +env: + browser: true + node: true + es2021: true + +extends: + - standard-with-typescript + - next/core-web-vitals + - prettier + +parser: '@typescript-eslint/parser' + +parserOptions: + ecmaVersion: 'latest' + sourceType: 'module' + project: './tsconfig.eslint.json' + jsx: true + +rules: + import/order: + - 'warn' + - groups: + - 'builtin' + - 'external' + - 'internal' + - 'parent' + - 'sibling' + - 'index' + - 'object' + - 'type' + newlines-between: 'always' + pathGroupsExcludedImportTypes: ['builtin'] + alphabetize: + order: 'asc' + caseInsensitive: true + eqeqeq: 'error' + '@typescript-eslint/no-misused-promises': + - 'error' + - checksVoidReturn: + attributes: false + '@typescript-eslint/consistent-type-definitions': + - 'error' + - 'type' + react/jsx-sort-props: 'warn' + +overrides: + - files: ['next-env.d.ts'] + rules: + '@typescript-eslint/triple-slash-reference': 'off' From 0310eb1d5a2667d1317822fe0ac9ded4b35a6913 Mon Sep 17 00:00:00 2001 From: Kazuki Tobita Date: Tue, 5 Dec 2023 07:32:26 +0900 Subject: [PATCH 3/3] =?UTF-8?q?=F0=9F=8E=A8=20chore:=20=E3=82=AF=E3=82=A9?= =?UTF-8?q?=E3=83=BC=E3=83=86=E3=83=BC=E3=82=B7=E3=83=A7=E3=83=B3=E3=82=92?= =?UTF-8?q?=E5=8F=AF=E8=83=BD=E3=81=AA=E9=99=90=E3=82=8A=E5=89=8A=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .eslintrc.yml | 46 ++++++++++++++++++++++++---------------------- .prettierrc.yml | 8 ++++---- 2 files changed, 28 insertions(+), 26 deletions(-) diff --git a/.eslintrc.yml b/.eslintrc.yml index 5c0e4c65..5ceda85d 100644 --- a/.eslintrc.yml +++ b/.eslintrc.yml @@ -11,39 +11,41 @@ extends: parser: '@typescript-eslint/parser' parserOptions: - ecmaVersion: 'latest' - sourceType: 'module' - project: './tsconfig.eslint.json' + ecmaVersion: latest + sourceType: module + project: ./tsconfig.eslint.json jsx: true rules: import/order: - - 'warn' + - warn - groups: - - 'builtin' - - 'external' - - 'internal' - - 'parent' - - 'sibling' - - 'index' - - 'object' - - 'type' - newlines-between: 'always' - pathGroupsExcludedImportTypes: ['builtin'] + - builtin + - external + - internal + - parent + - sibling + - index + - object + - type + newlines-between: always + pathGroupsExcludedImportTypes: + - builtin alphabetize: - order: 'asc' + order: asc caseInsensitive: true - eqeqeq: 'error' + eqeqeq: error '@typescript-eslint/no-misused-promises': - - 'error' + - error - checksVoidReturn: attributes: false '@typescript-eslint/consistent-type-definitions': - - 'error' - - 'type' - react/jsx-sort-props: 'warn' + - error + - type + react/jsx-sort-props: warn overrides: - - files: ['next-env.d.ts'] + - files: + - next-env.d.ts rules: - '@typescript-eslint/triple-slash-reference': 'off' + '@typescript-eslint/triple-slash-reference': off diff --git a/.prettierrc.yml b/.prettierrc.yml index 74c99a6e..57a2ce3c 100644 --- a/.prettierrc.yml +++ b/.prettierrc.yml @@ -1,4 +1,4 @@ -'printWidth': 100 -'tabWidth': 2 -'singleQuote': true -'semi': true +printWidth: 100 +tabWidth: 2 +singleQuote: true +semi: true