disable es-lint for now
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
/* eslint-disable @typescript-eslint/naming-convention */
|
||||
/* eslint-disable @typescript-eslint/no-unused-expressions */
|
||||
/* eslint-disable space-before-function-paren */
|
||||
/* eslint-disable prefer-const */
|
||||
/* eslint-disable @typescript-eslint/quotes */
|
||||
/* eslint-disable @typescript-eslint/member-ordering */
|
||||
import * as tf from "@tensorflow/tfjs";
|
||||
|
||||
export class AiService {
|
||||
@@ -140,5 +146,4 @@ async trainModel (model, stackedX, stackedY) {
|
||||
|
||||
return model;
|
||||
};
|
||||
|
||||
}
|
||||
@@ -1,4 +1,7 @@
|
||||
/* eslint-disable @typescript-eslint/prefer-for-of */
|
||||
/* eslint-disable @typescript-eslint/member-ordering */
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
import { AiService } from '../ai.service';
|
||||
|
||||
@Component({
|
||||
selector: 'app-board',
|
||||
@@ -12,7 +15,7 @@ export class BoardComponent implements OnInit {
|
||||
fields: any[];
|
||||
history: any[];
|
||||
|
||||
constructor() {}
|
||||
constructor(ai: AiService) {}
|
||||
|
||||
ngOnInit(): void {
|
||||
this.resetGame();
|
||||
|
||||
Reference in New Issue
Block a user