Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
seiyria committed Aug 3, 2024
1 parent 1a756cb commit 72b197c
Show file tree
Hide file tree
Showing 8 changed files with 27 additions and 100 deletions.
24 changes: 6 additions & 18 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,9 @@
],
"overrides": [
{
"files": [
"*.ts"
],
"files": ["*.ts"],
"parserOptions": {
"project": [
"./tsconfig.serve.json",
"./src/tsconfig.app.json",
"./src/tsconfig.spec.json",
"./e2e/tsconfig.e2e.json"
],
"project": ["./tsconfig.serve.json", "./src/tsconfig.app.json"],
"createDefaultProgram": true
},
"extends": [
Expand All @@ -33,7 +26,7 @@
"@typescript-eslint/no-unsafe-call": 0,
"@typescript-eslint/no-unsafe-member-access": 0,
"prefer-arrow/prefer-arrow-functions": 0,
"@angular-eslint/directive-selector": 0,
"@angular-eslint/directive-selector": 0,
"@angular-eslint/component-selector": [
"error",
{
Expand All @@ -46,14 +39,9 @@
}
},
{
"files": [
"*.html"
],
"extends": [
"plugin:@angular-eslint/template/recommended"
],
"rules": {
}
"files": ["*.html"],
"extends": ["plugin:@angular-eslint/template/recommended"],
"rules": {}
}
]
}
34 changes: 5 additions & 29 deletions angular.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
{
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"cli": {
"schematicCollections": [
"@angular-eslint/schematics"
]
"schematicCollections": ["@angular-eslint/schematics"]
},
"version": 1,
"newProjectRoot": "projects",
Expand Down Expand Up @@ -31,13 +29,8 @@
"tsConfig": "src/tsconfig.app.json",
"polyfills": "src/polyfills.ts",
"inlineStyleLanguage": "scss",
"assets": [
"src/favicon.ico",
"src/assets"
],
"styles": [
"src/styles.scss"
],
"assets": ["src/favicon.ico", "src/assets"],
"styles": ["src/styles.scss"],
"scripts": [],
"customWebpackConfig": {
"path": "./angular.webpack.js",
Expand Down Expand Up @@ -142,30 +135,13 @@
"options": {
"polyfills": ["src/polyfills-test.ts"],
"tsConfig": "src/tsconfig.spec.json",
"globalMocks": ["styleTransform", "matchMedia", "getComputedStyle"],
"globalMocks": ["styleTransform", "matchMedia", "getComputedStyle"]
}
},
"lint": {
"builder": "@angular-eslint/builder:lint",
"options": {
"lintFilePatterns": [
"src/**/*.ts",
"src/**/*.html"
]
}
}
}
},
"angular-electron-e2e": {
"root": "e2e",
"projectType": "application",
"architect": {
"lint": {
"builder": "@angular-eslint/builder:lint",
"options": {
"lintFilePatterns": [
"e2e/**/*.ts"
]
"lintFilePatterns": ["src/**/*.ts", "src/**/*.html"]
}
}
}
Expand Down
18 changes: 9 additions & 9 deletions src/app/app-routing.module.ts
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { PageNotFoundComponent } from './shared/components';
import { RouterModule, Routes } from '@angular/router';
import { PageNotFoundComponent } from './shared/components/page-not-found';

Check failure on line 3 in src/app/app-routing.module.ts

View workflow job for this annotation

GitHub Actions / build (20)

Cannot find module './shared/components/page-not-found' or its corresponding type declarations.

Check failure on line 3 in src/app/app-routing.module.ts

View workflow job for this annotation

GitHub Actions / build (20)

Cannot find module './shared/components/page-not-found' or its corresponding type declarations.

Check failure on line 3 in src/app/app-routing.module.ts

View workflow job for this annotation

GitHub Actions / build (20)

Cannot find module './shared/components/page-not-found' or its corresponding type declarations.

import { HomeRoutingModule } from './home/home-routing.module';
import { DetailRoutingModule } from './detail/detail-routing.module';
import { HomeRoutingModule } from './home/home-routing.module';

const routes: Routes = [
{
path: '',
redirectTo: 'home',
pathMatch: 'full'
pathMatch: 'full',
},
{
path: '**',
component: PageNotFoundComponent
}
component: PageNotFoundComponent,
},
];

@NgModule({
imports: [
RouterModule.forRoot(routes, {}),
HomeRoutingModule,
DetailRoutingModule
DetailRoutingModule,
],
exports: [RouterModule]
exports: [RouterModule],
})
export class AppRoutingModule { }
export class AppRoutingModule {}
1 change: 0 additions & 1 deletion src/app/shared/components/index.ts

This file was deleted.

5 changes: 2 additions & 3 deletions src/app/shared/shared.module.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';


import { FormsModule } from '@angular/forms';
import { PageNotFoundComponent } from './components/';
import { PageNotFoundComponent } from './components/page-not-found';

Check failure on line 5 in src/app/shared/shared.module.ts

View workflow job for this annotation

GitHub Actions / build (20)

Cannot find module './components/page-not-found' or its corresponding type declarations.

Check failure on line 5 in src/app/shared/shared.module.ts

View workflow job for this annotation

GitHub Actions / build (20)

Cannot find module './components/page-not-found' or its corresponding type declarations.

Check failure on line 5 in src/app/shared/shared.module.ts

View workflow job for this annotation

GitHub Actions / build (20)

Cannot find module './components/page-not-found' or its corresponding type declarations.
import { WebviewDirective } from './directives/';

@NgModule({
declarations: [PageNotFoundComponent, WebviewDirective],
imports: [CommonModule, FormsModule],
exports: [WebviewDirective, FormsModule]
exports: [WebviewDirective, FormsModule],
})
export class SharedModule {}
1 change: 0 additions & 1 deletion src/polyfills-test.ts

This file was deleted.

23 changes: 0 additions & 23 deletions src/tsconfig.spec.json

This file was deleted.

21 changes: 5 additions & 16 deletions tsconfig.serve.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,10 @@
"experimentalDecorators": true,
"module": "commonjs",
"target": "es2015",
"types": [
"node"
],
"lib": [
"es2017",
"es2016",
"es2015",
"dom"
]
"types": ["node"],
"lib": ["es2017", "es2016", "es2015", "dom"]
},
"files": [
"app/main.ts"
],
"exclude": [
"node_modules",
"**/*.spec.ts"
]
"files": ["app/main.ts"],
"include": ["src/**/*.ts"],
"exclude": ["node_modules", "**/*.spec.ts"]
}

0 comments on commit 72b197c

Please sign in to comment.