Skip to content

Commit

Permalink
Merge pull request #26 from Next2D/develop
Browse files Browse the repository at this point in the history
TypeScriptのファイル生成時の型表記を追加
  • Loading branch information
ienaga committed Nov 12, 2023
2 parents 663d215 + 25131b9 commit 4de0a33
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 11 deletions.
5 changes: 4 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@
"sourceType": "module",
"ecmaVersion": "latest"
},
"extends": "plugin:@typescript-eslint/eslint-recommended",
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended"
],
"parser": "@typescript-eslint/parser",
"rules": {
"no-var": "error",
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- run: npm install
- run: npm run lint
- run: npx eslint ./src/**/*.ts

windows-browser-test:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- run: npm install
- run: npm run lint
- run: npx eslint ./src/**/*.ts
1 change: 0 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
.github
node_modules
.eslintignore
.eslintrc.json
.gitattributes
Expand Down
11 changes: 5 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@next2d/view-generator",
"version": "2.0.0",
"version": "2.0.1",
"description": "Generate the View class required for routing.",
"author": "Toshiyuki Ienaga<ienaga@next2d.app>",
"license": "MIT",
Expand All @@ -14,7 +14,6 @@
"view-generator"
],
"scripts": {
"lint": "eslint src/index.ts",
"publish": "tsc"
},
"files": [
Expand All @@ -28,13 +27,13 @@
"@next2d/view-generator": "dist/index.js"
},
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^6.9.1",
"@typescript-eslint/parser": "^6.9.1",
"eslint": "^8.22.0",
"@typescript-eslint/eslint-plugin": "^6.10.0",
"@typescript-eslint/parser": "^6.10.0",
"eslint": "^8.53.0",
"typescript": "^5.2.2"
},
"dependencies": {
"@types/node": "^20.8.10",
"@types/node": "^20.9.0",
"picocolors": "^1.0.0"
}
}
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ export class ${name}ViewModel extends ViewModel
{
return this
.factory(view)
.then((view): Promise<View> =>
.then((view: View): Promise<View> =>
{
return Promise.resolve(view);
});
Expand Down

0 comments on commit 4de0a33

Please sign in to comment.