Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
51 changed files
with
1,231 additions
and
236 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 |
---|---|---|
@@ -1,27 +1,137 @@ | ||
{ | ||
"parser": "@typescript-eslint/parser", | ||
"parserOptions": { | ||
"project": "tsconfig.json", | ||
"sourceType": "module" | ||
"root": true, | ||
"rules": { | ||
"@typescript-eslint/no-unused-vars": [ | ||
"warn", | ||
{ | ||
"args": "after-used", | ||
"argsIgnorePattern": "^_" | ||
} | ||
], | ||
"@typescript-eslint/keyword-spacing": [ | ||
"error", | ||
{ | ||
"after": true | ||
} | ||
], | ||
"@typescript-eslint/no-empty-function": [ | ||
"warn", | ||
{ | ||
"allow": [ | ||
"constructors", | ||
"decoratedFunctions" | ||
] | ||
} | ||
], | ||
"@typescript-eslint/explicit-member-accessibility": [ | ||
"warn", | ||
{ | ||
"accessibility": "explicit", | ||
"overrides": { | ||
"constructors": "no-public" | ||
} | ||
} | ||
], | ||
"@typescript-eslint/no-explicit-any": "off", | ||
"@typescript-eslint/no-inferrable-types": "off", | ||
"@typescript-eslint/no-non-null-assertion": "off", | ||
"@typescript-eslint/interface-name-prefix": "off", | ||
"@typescript-eslint/explicit-function-return-type": "off", | ||
"@typescript-eslint/explicit-module-boundary-types": "off" | ||
}, | ||
"parser": "@typescript-eslint/parser", | ||
"plugins": [ | ||
"@typescript-eslint/eslint-plugin" | ||
], | ||
"extends": [ | ||
"plugin:@typescript-eslint/recommended" | ||
], | ||
"root": true, | ||
"env": { | ||
"node": true, | ||
"jest": true | ||
}, | ||
"ignorePatterns": [ | ||
".eslintrc.js" | ||
], | ||
"rules": { | ||
"@typescript-eslint/interface-name-prefix": "off", | ||
"@typescript-eslint/explicit-function-return-type": "off", | ||
"@typescript-eslint/explicit-module-boundary-types": "off", | ||
"@typescript-eslint/no-explicit-any": "off" | ||
} | ||
"overrides": [ | ||
{ | ||
"env": { | ||
"node": true, | ||
"jest": true | ||
}, | ||
"files": [ | ||
"server/**/*.ts" | ||
], | ||
"rules": { | ||
"@typescript-eslint/indent": [ | ||
"error", | ||
2, | ||
{ | ||
"ignoredNodes": ["Decorator"], | ||
"FunctionDeclaration": { | ||
"parameters": 2 | ||
}, | ||
"FunctionExpression": { | ||
"parameters": 2 | ||
} | ||
} | ||
] | ||
}, | ||
"parserOptions": { | ||
"project": "tsconfig.server.json", | ||
"sourceType": "module" | ||
} | ||
}, | ||
{ | ||
"files": [ | ||
"webapp/**/*.ts" | ||
], | ||
"parserOptions": { | ||
"project": [ | ||
"tsconfig.webapp.json" | ||
], | ||
"createDefaultProgram": true | ||
}, | ||
"extends": [ | ||
"plugin:@angular-eslint/recommended", | ||
"plugin:@angular-eslint/template/process-inline-templates" | ||
], | ||
"rules": { | ||
"@typescript-eslint/indent": [ | ||
"error", | ||
2, | ||
{ | ||
"FunctionDeclaration": { | ||
"parameters": 2 | ||
}, | ||
"FunctionExpression": { | ||
"parameters": 2 | ||
} | ||
} | ||
], | ||
"@angular-eslint/directive-selector": [ | ||
"error", | ||
{ | ||
"type": "attribute", | ||
"prefix": "", | ||
"style": "camelCase" | ||
} | ||
], | ||
"@angular-eslint/component-selector": [ | ||
"error", | ||
{ | ||
"type": "element", | ||
"prefix": "app", | ||
"style": "kebab-case" | ||
} | ||
], | ||
"@angular-eslint/no-input-rename": "off", | ||
"@angular-eslint/no-output-rename": "off", | ||
"@angular-eslint/use-lifecycle-interface": "error", | ||
"@angular-eslint/no-empty-lifecycle-method": "off" | ||
} | ||
}, | ||
{ | ||
"files": [ | ||
"webapp/**/*.html" | ||
], | ||
"extends": [ | ||
"plugin:@angular-eslint/template/recommended" | ||
], | ||
"rules": {} | ||
} | ||
] | ||
} |
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,43 @@ | ||
name: Lint And Build Server And Webapp | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
node-version: | ||
- 14.x | ||
- 16.x | ||
|
||
steps: | ||
- name: Clone repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
|
||
- name: Install Dependencies | ||
run: npm ci | ||
|
||
- name: Lint Server | ||
run: npm run lint:server | ||
|
||
- name: Lint Webapp | ||
run: npm run lint:webapp | ||
|
||
- name: Build Server | ||
run: npm run build:server | ||
|
||
- name: Build Webapp | ||
run: npm run build:webapp |
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 |
---|---|---|
@@ -1,2 +1,4 @@ | ||
Dashboard | ||
==== | ||
|
||
![lint-build workflow](https://github.com/hungtcs/dashboard/actions/workflows/lint-build.yml/badge.svg) |
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 |
---|---|---|
|
@@ -8,6 +8,4 @@ class CurrentTime { | |
|
||
} | ||
|
||
export const a = 1; | ||
|
||
export default CurrentTime; |
Oops, something went wrong.