Skip to content

Commit

Permalink
🎨 chore: ESLintの設定をJSONからYAMLに変更
Browse files Browse the repository at this point in the history
  • Loading branch information
tyokinuhata committed Dec 4, 2023
1 parent 8243735 commit 97f11e6
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 55 deletions.
3 changes: 2 additions & 1 deletion .cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@
"tyokinuhata",
"uyupunpopunpo",
"webp",
"vercel"
"vercel",
"eqeqeq"
]
}
]
Expand Down
54 changes: 0 additions & 54 deletions .eslintrc.json

This file was deleted.

49 changes: 49 additions & 0 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
@@ -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'

0 comments on commit 97f11e6

Please sign in to comment.