-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #26 from nemuvski/use-biome
Biomeの導入, 導入に伴い警告箇所を修正
- Loading branch information
Showing
36 changed files
with
265 additions
and
929 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ node_modules/ | |
|
||
# Editor/IDE | ||
.idea/ | ||
.vscode/ | ||
#.vscode/ | ||
|
||
# Logs | ||
*.log | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"recommendations": ["biomejs.biome"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"editor.formatOnSave": true, | ||
"editor.defaultFormatter": "esbenp.prettier-vscode", | ||
"[javascript]": { | ||
"editor.defaultFormatter": "biomejs.biome" | ||
}, | ||
"[javascriptreact]": { | ||
"editor.defaultFormatter": "biomejs.biome" | ||
}, | ||
"[typescript]": { | ||
"editor.defaultFormatter": "biomejs.biome" | ||
}, | ||
"[typescriptreact]": { | ||
"editor.defaultFormatter": "biomejs.biome" | ||
}, | ||
"editor.codeActionsOnSave": { | ||
"quickfix.biome": "explicit", | ||
"source.organizeImports.biome": "explicit" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
{ | ||
"$schema": "https://biomejs.dev/schemas/1.5.3/schema.json", | ||
"organizeImports": { | ||
"enabled": true | ||
}, | ||
"linter": { | ||
"enabled": true, | ||
"ignore": [ | ||
".turbo/**", | ||
".idea/**", | ||
".coverage/**", | ||
"packages/**/dist/**", | ||
"website/.docusaurus/**", | ||
"website/.typedoc/**", | ||
"website/build/**" | ||
], | ||
"rules": { | ||
"recommended": true, | ||
"correctness": { | ||
"useExhaustiveDependencies": "warn", | ||
"noUnusedVariables": "warn" | ||
}, | ||
"style": { | ||
"noDefaultExport": "off", | ||
"noUnusedTemplateLiteral": "off" | ||
}, | ||
"nursery": { | ||
"useExportType": "error", | ||
"useImportType": "error", | ||
"noUnusedImports": "warn", | ||
"noGlobalEval": "error", | ||
"noGlobalAssign": "error", | ||
"useNodejsImportProtocol": "warn" | ||
} | ||
} | ||
}, | ||
"formatter": { | ||
"enabled": true, | ||
"ignore": [ | ||
".turbo/", | ||
".idea/**", | ||
".coverage/**", | ||
"packages/**/dist/**", | ||
"website/.docusaurus/**", | ||
"website/.typedoc/**", | ||
"website/build/**" | ||
], | ||
"lineEnding": "lf", | ||
"lineWidth": 120, | ||
"indentStyle": "space", | ||
"indentWidth": 2 | ||
}, | ||
"javascript": { | ||
"formatter": { | ||
"trailingComma": "es5", | ||
"quoteStyle": "single", | ||
"semicolons": "asNeeded", | ||
"jsxQuoteStyle": "single", | ||
"arrowParentheses": "always" | ||
} | ||
}, | ||
"overrides": [ | ||
{ | ||
"include": [".vscode/**"], | ||
"json": { | ||
"parser": { | ||
"allowComments": true, | ||
"allowTrailingCommas": true | ||
} | ||
} | ||
}, | ||
{ | ||
"include": ["website/**"], | ||
"linter": { | ||
"rules": { | ||
"suspicious": { | ||
"noArrayIndexKey": "off" | ||
} | ||
} | ||
} | ||
} | ||
] | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,5 @@ | |
.turbo/ | ||
src/ | ||
tests/ | ||
.eslintrc.js | ||
tsconfig.json | ||
vitest.config.ts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import { RC } from '../types/rc' | ||
import type { RC } from '../types/rc' | ||
|
||
/** | ||
* 条件式がtrue/falseで出力する内容を切り替えるコンポーネント | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import { RC } from '../types/rc' | ||
import type { RC } from '../types/rc' | ||
|
||
/** | ||
* 条件式がtrueになった場合のみ子要素を出力するコンポーネント | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,5 @@ | |
.turbo/ | ||
src/ | ||
tests/ | ||
.eslintrc.js | ||
tsconfig.json | ||
vitest.config.ts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.