Skip to content

Commit

Permalink
パッケージをアップデート, TypeScript 関連のパッケージを追加
Browse files Browse the repository at this point in the history
  • Loading branch information
nanasess committed Oct 1, 2021
1 parent 0d0f7a2 commit 81f2386
Show file tree
Hide file tree
Showing 7 changed files with 20,184 additions and 13,575 deletions.
21 changes: 12 additions & 9 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
{
"presets": [
[
"env",
{
"targets": {
"ie": 11
},
// 必要な分だけのpolyfillを自動でインポート
"useBuiltIns": "usage"
}
]
"@babel/preset-env",
{
"targets": {
"node": "current",
"ie": 11
},
// 必要な分だけのpolyfillを自動でインポート
"useBuiltIns": "usage",
"corejs": 2
}
],
"@babel/preset-typescript"
]
}
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ trim_trailing_whitespace = true
indent_style = space
indent_size = 4

[*.{yml,yaml,json,js}]
[*.{yml,yaml,json,js,ts}]
indent_style = space
indent_size = 2

Expand Down
17 changes: 15 additions & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,19 @@
"plugins": [
"import"
],
"parser": "babel-eslint",
"extends": "jquery"
"parser": "@typescript-eslint/parser",
"extends": [
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended",
"prettier/@typescript-eslint",
"jquery"
],
"rules": {
"prettier/prettier": [
"error",
{
"singleQuote": true
}
]
}
}
Loading

0 comments on commit 81f2386

Please sign in to comment.