Skip to content

Commit

Permalink
Merge pull request #203 from nekochans/feature/issue196
Browse files Browse the repository at this point in the history
ESLint, Prettierの設定を変更
  • Loading branch information
keitakn authored Oct 1, 2022
2 parents 0c4b784 + e19d88f commit 9047b11
Show file tree
Hide file tree
Showing 72 changed files with 2,049 additions and 1,975 deletions.
2 changes: 1 addition & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ node_modules/
.next/
build/
coverage/
.eslintrc.js
.eslintrc.json
next-env.d.ts
test/setupTests.ts
*.config.js
Expand Down
155 changes: 0 additions & 155 deletions .eslintrc.js

This file was deleted.

136 changes: 136 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,136 @@
{
"env": {
"browser": true,
"es2022": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"standard-with-typescript",
"plugin:jsx-a11y/recommended",
"plugin:react/recommended",
"plugin:react/jsx-runtime",
"plugin:react-hooks/recommended",
"plugin:jest/recommended",
"plugin:storybook/recommended",
"next/core-web-vitals",
"prettier"
],
"parserOptions": {
"ecmaVersion": "latest",
"tsconfigRootDir": ".",
"project": ["./tsconfig.json"],
"sourceType": "module"
},
"plugins": ["@typescript-eslint", "jsx-a11y", "react", "react-hooks"],
"rules": {
"padding-line-between-statements": [
"error",
{
"blankLine": "always",
"prev": "*",
"next": "return"
}
],
"@typescript-eslint/consistent-type-definitions": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/explicit-module-boundary-types": ["error"],
"@typescript-eslint/no-misused-promises": [
"error",
{
"checksVoidReturn": false
}
],
"@typescript-eslint/no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_"
}
],
"@typescript-eslint/strict-boolean-expressions": [
"error",
{
"allowNullableObject": true
}
],
"@typescript-eslint/triple-slash-reference": [
"error",
{
"types": "always"
}
],
"import/extensions": [
"error",
{
"ignorePackages": true,
"pattern": {
"js": "never",
"jsx": "never",
"ts": "never",
"tsx": "never"
}
}
],
"import/order": [
"error",
{
"groups": [
"builtin",
"external",
"internal",
"parent",
"sibling",
"object",
"index"
],
"pathGroups": [
{
"pattern": "{react,react-dom/**,react-router*}",
"group": "builtin",
"position": "before"
},
{
"pattern": "{routes/**,stores/**,utils/**,hooks/**,domains/**}",
"group": "internal",
"position": "after"
},
{
"pattern": "{A-Z]*,**/[A-Z]*}",
"group": "internal",
"position": "after"
},
{
"pattern": "assets/**}",
"group": "internal",
"position": "after"
},
{
"pattern": "./*.{css,scss,sass,less}",
"group": "index",
"position": "after"
}
],
"pathGroupsExcludedImportTypes": ["builtin"],
"alphabetize": {
"order": "asc"
}
}
],
"react/display-name": "off"
},
"overrides": [
{
"files": ["*.tsx"],
"rules": {
"react/prop-types": "off"
}
}
],
"settings": {
"react": {
"version": "detect"
}
}
}
8 changes: 0 additions & 8 deletions .prettierrc

This file was deleted.

4 changes: 4 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"singleQuote": true,
"endOfLine": "auto"
}
Loading

1 comment on commit 9047b11

@vercel
Copy link

@vercel vercel bot commented on 9047b11 Oct 1, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.