Skip to content

Commit

Permalink
Merge pull request #27 from Next2D/main
Browse files Browse the repository at this point in the history
publish
  • Loading branch information
ienaga authored Nov 12, 2023
2 parents aa25fe8 + 4de0a33 commit 7bbb143
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 18 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
15 changes: 8 additions & 7 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ name: "CodeQL"

on:
push:
branches: [ main, develop ]
branches: [ "main", "develop" ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ main, develop ]
branches: [ "main", "develop" ]
schedule:
- cron: '38 23 * * 1'
- cron: '44 22 * * 5'

jobs:
analyze:
Expand All @@ -32,10 +32,11 @@ jobs:
strategy:
fail-fast: false
matrix:
language: [ 'javascript' ]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
# Learn more:
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed
language: [ 'javascript-typescript' ]
# CodeQL supports [ 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'swift' ]
# Use only 'java-kotlin' to analyze code written in Java, Kotlin or both
# Use only 'javascript-typescript' to analyze code written in JavaScript, TypeScript or both
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support

steps:
- name: Checkout repository
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 7bbb143

Please sign in to comment.