TSK-1048: expanded eslint to scan every *.ts file (instead of src/*.ts)

This commit is contained in:
Mustapha Zorgati 2020-03-18 06:32:22 +01:00
parent 5cac3442be
commit 4d0d577ed0
3 changed files with 8 additions and 10 deletions

View File

@ -10,7 +10,7 @@
"build:prod-silent": "ng build --prod=true --no-progress", "build:prod-silent": "ng build --prod=true --no-progress",
"test": "ng test --karma-config karma.conf.js --watch=false --browsers Firefox", "test": "ng test --karma-config karma.conf.js --watch=false --browsers Firefox",
"test:watch": "ng test --karma-config karma.conf.js --browsers Chrome", "test:watch": "ng test --karma-config karma.conf.js --browsers Chrome",
"lint": "eslint src/app/**/*.ts" "lint": "eslint --ext .ts src"
}, },
"private": true, "private": true,
"dependencies": { "dependencies": {

View File

@ -1,4 +1,4 @@
import {Component, EventEmitter, Input, OnInit, Output} from '@angular/core'; import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';
import { Task } from 'app/workplace/models/task'; import { Task } from 'app/workplace/models/task';
import { Workbasket } from 'app/models/workbasket'; import { Workbasket } from 'app/models/workbasket';
import { TaskService } from 'app/workplace/services/task.service'; import { TaskService } from 'app/workplace/services/task.service';

View File

@ -14,7 +14,7 @@
* Learn more in https://angular.io/guide/browser-support * Learn more in https://angular.io/guide/browser-support
*/ */
/*************************************************************************************************** /** *************************************************************************************************
* BROWSER POLYFILLS * BROWSER POLYFILLS
*/ */
@ -26,24 +26,22 @@
// import 'web-animations-js'; // Run `npm install --save web-animations-js`. // import 'web-animations-js'; // Run `npm install --save web-animations-js`.
/** Evergreen browsers require these. **/ /** Evergreen browsers require these. */
import 'core-js/es6/reflect'; import 'core-js/es6/reflect';
import 'core-js/es7/reflect'; import 'core-js/es7/reflect';
/** ALL Firefox browsers require the following to support `@angular/animation`. **/ /** ALL Firefox browsers require the following to support `@angular/animation`. */
// import 'web-animations-js'; // Run `npm install --save web-animations-js`. // import 'web-animations-js'; // Run `npm install --save web-animations-js`.
/** *************************************************************************************************
/***************************************************************************************************
* Zone JS is required by Angular itself. * Zone JS is required by Angular itself.
*/ */
import 'zone.js/dist/zone'; // Included with Angular CLI. import 'zone.js/dist/zone'; // Included with Angular CLI.
/** *************************************************************************************************
/***************************************************************************************************
* APPLICATION IMPORTS * APPLICATION IMPORTS
*/ */