Skip to content

Commit

Permalink
Fix-deps (#87)
Browse files Browse the repository at this point in the history
* fix: merge script

Signed-off-by: Mirko Mollik <mirkomollik@gmail.com>

* fix: merge script

Signed-off-by: Mirko Mollik <mirkomollik@gmail.com>

* use hash based routing

Signed-off-by: Mirko Mollik <mirkomollik@gmail.com>

* add linting

Signed-off-by: Mirko Mollik <mirkomollik@gmail.com>

---------

Signed-off-by: Mirko Mollik <mirkomollik@gmail.com>
  • Loading branch information
cre8 authored Aug 25, 2024
1 parent 74dd8a8 commit 1219b05
Show file tree
Hide file tree
Showing 10 changed files with 3,555 additions and 1,624 deletions.
37 changes: 31 additions & 6 deletions viewer/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,18 @@
"outputPath": "dist",
"index": "src/index.html",
"browser": "src/main.ts",
"polyfills": ["zone.js"],
"polyfills": [
"zone.js"
],
"tsConfig": "tsconfig.app.json",
"inlineStyleLanguage": "scss",
"assets": ["src/assets"],
"styles": ["src/theme.scss", "src/styles.scss"],
"assets": [
"src/assets"
],
"styles": [
"src/theme.scss",
"src/styles.scss"
],
"scripts": []
},
"configurations": {
Expand Down Expand Up @@ -79,21 +86,39 @@
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"polyfills": ["zone.js", "zone.js/testing"],
"polyfills": [
"zone.js",
"zone.js/testing"
],
"tsConfig": "tsconfig.spec.json",
"inlineStyleLanguage": "scss",
"assets": ["src/favicon.ico", "src/assets"],
"assets": [
"src/favicon.ico",
"src/assets"
],
"styles": [
"@angular/material/prebuilt-themes/indigo-pink.css",
"src/styles.scss"
],
"scripts": []
}
},
"lint": {
"builder": "@angular-eslint/builder:lint",
"options": {
"lintFilePatterns": [
"src/**/*.ts",
"src/**/*.html"
]
}
}
}
}
},
"cli": {
"analytics": false
"analytics": false,
"schematicCollections": [
"@angular-eslint/schematics"
]
}
}
43 changes: 43 additions & 0 deletions viewer/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
// @ts-check
const eslint = require("@eslint/js");
const tseslint = require("typescript-eslint");
const angular = require("angular-eslint");

module.exports = tseslint.config(
{
files: ["**/*.ts"],
extends: [
eslint.configs.recommended,
...tseslint.configs.recommended,
...tseslint.configs.stylistic,
...angular.configs.tsRecommended,
],
processor: angular.processInlineTemplates,
rules: {
"@angular-eslint/directive-selector": [
"error",
{
type: "attribute",
prefix: "app",
style: "camelCase",
},
],
"@angular-eslint/component-selector": [
"error",
{
type: "element",
prefix: "app",
style: "kebab-case",
},
],
},
},
{
files: ["**/*.html"],
extends: [
...angular.configs.templateRecommended,
...angular.configs.templateAccessibility,
],
rules: {},
}
);
Loading

0 comments on commit 1219b05

Please sign in to comment.