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'