Skip to content
Snippets Groups Projects
Commit a579cfc0 authored by Homada.Boumedane's avatar Homada.Boumedane
Browse files

chore(solidify-frontend): lint

fix some lit error and exclude schematics folders from lint
parent 3619a6e6
No related branches found
No related tags found
No related merge requests found
...@@ -13,7 +13,7 @@ export class SolidifyFrontendComponent implements OnInit { ...@@ -13,7 +13,7 @@ export class SolidifyFrontendComponent implements OnInit {
constructor() { } constructor() { }
ngOnInit() { ngOnInit(): void {
} }
} }
...@@ -2,6 +2,7 @@ import {AbstractControl, ValidationErrors, ValidatorFn} from "@angular/forms"; ...@@ -2,6 +2,7 @@ import {AbstractControl, ValidationErrors, ValidatorFn} from "@angular/forms";
export const SOLIDFIY_ERRORS: string = "SOLIDFIY_META_ERRORS"; export const SOLIDFIY_ERRORS: string = "SOLIDFIY_META_ERRORS";
// tslint:disable-next-line:variable-name
export const SolidifyValidator: ValidatorFn = (control: AbstractControl): ValidationErrors | null => { export const SolidifyValidator: ValidatorFn = (control: AbstractControl): ValidationErrors | null => {
const result = control[SOLIDFIY_ERRORS]; const result = control[SOLIDFIY_ERRORS];
delete control[SOLIDFIY_ERRORS]; delete control[SOLIDFIY_ERRORS];
......
...@@ -35,14 +35,10 @@ ...@@ -35,14 +35,10 @@
"comment-format": [ "comment-format": [
true true
], ],
"component-class-suffix": [ /* "component-class-suffix": [
true, true,
"AppComponent", "Component",
"Routable", ],*/
"Presentational",
"Container",
"Dialog"
],
"component-selector": [ "component-selector": [
true, true,
"element", "element",
...@@ -199,5 +195,11 @@ ...@@ -199,5 +195,11 @@
}, },
"rulesDirectory": [ "rulesDirectory": [
"node_modules/codelyzer" "node_modules/codelyzer"
] ],
"linterOptions": {
"exclude": [
"projects/solidify-frontend/schematics/**/*.ts",
"projects/solidify-frontend/schematics/**/*.json"
]
}
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment