Skip to content

Commit

Permalink
chore: eslint & prettier でコード整形・ルールの追加
Browse files Browse the repository at this point in the history
  • Loading branch information
Nave-wata committed Aug 27, 2023
1 parent c0f78df commit 5781d3d
Show file tree
Hide file tree
Showing 38 changed files with 4,437 additions and 815 deletions.
27 changes: 27 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"env": {
"es2021": true,
"browser": true,
"node": true
},
"extends": [
"eslint:recommended",
"standard-with-typescript",
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended",
"prettier"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module",
"project": "./tsconfig.json"
},
"plugins": [
"@typescript-eslint",
"react"
],
"rules": {
},
"root": true
}
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,3 @@ npm-debug.log
yarn-error.log
/.fleet
/.idea
/.vscode
20 changes: 20 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"printWidth": 120,
"tabWidth": 4,
"useTabs": false,
"semi": true,
"singleQuote": false,
"quoteProps": "as-needed",
"jsxSingleQuote": false,
"trailingComma": "all",
"bracketSpacing": true,
"bracketSameLine": false,
"arrowParens": "always",
"requirePragma": false,
"insertPragma": false,
"proseWrap": "preserve",
"htmlWhitespaceSensitivity": "css",
"endOfLine": "lf",
"embeddedLanguageFormatting ": "auto",
"singleAttributePerLine": false
}
4 changes: 3 additions & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
"amiralizadeh9480.laravel-extra-intellisense",
"naoray.laravel-goto-components",
"codingyu.laravel-goto-view",
"mikestead.dotenv"
"mikestead.dotenv",
"dsznajder.es7-react-js-snippets",
"dbaeumer.vscode-eslint",
]
}
14 changes: 11 additions & 3 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,16 @@
},
"[typescriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescript]": {
},
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
},
"cSpell.userWords": [
"Csvg",
"Envoyer",
"headlessui",
"inertiajs",
"Laracasts",
"laravel"
],
}
Loading

0 comments on commit 5781d3d

Please sign in to comment.