Skip to content

Commit db3595c

Browse files
committed
style: fix lint error
1 parent 6089ce5 commit db3595c

File tree

3 files changed

+57
-56
lines changed

3 files changed

+57
-56
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
node_modules
1+
node_modules;

@angular-generic-table/core/interfaces/gt-config-field.ts

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import {GtRow} from './gt-row';
2-
import {Injector, Type} from '@angular/core';
3-
import {GtCustomComponent} from '../components/gt-custom-component-factory';
4-
import {Observable} from 'rxjs/Observable';
1+
import { GtRow } from './gt-row';
2+
import { Injector, Type } from '@angular/core';
3+
import { GtCustomComponent } from '../components/gt-custom-component-factory';
4+
import { Observable } from 'rxjs/Observable';
55

66
export type GtRenderFunc<R extends GtRow> = (row: R) => string;
77

@@ -16,8 +16,10 @@ export type GtClassFunc = (row: any, col: any) => string;
1616

1717
export type GtInlineEditFunc<R extends GtRow> = (row: any, col: any) => boolean;
1818

19-
export interface GtConfigField<R extends GtRow,
20-
C extends GtCustomComponent<any>> {
19+
export interface GtConfigField<
20+
R extends GtRow,
21+
C extends GtCustomComponent<any>
22+
> {
2123
/**
2224
* name or label of field
2325
* (will be displayed as heading for column)
@@ -80,15 +82,15 @@ export interface GtConfigField<R extends GtRow,
8082
search?: any;
8183
inlineEdit?:
8284
| {
83-
active: Observable<boolean> | GtInlineEditFunc<R>;
84-
type?:
85-
| Observable<any>
86-
| Array<any>
87-
| 'text'
88-
| 'number'
89-
| 'password'
90-
| 'email';
91-
}
85+
active: Observable<boolean> | GtInlineEditFunc<R>;
86+
type?:
87+
| Observable<any>
88+
| Array<any>
89+
| 'text'
90+
| 'number'
91+
| 'password'
92+
| 'email';
93+
}
9294
| boolean
9395
| Array<any>
9496
| 'number'

karma.conf.js

Lines changed: 39 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,43 @@
11
// Karma configuration file, see link for more information
22
// https://karma-runner.github.io/0.13/config/configuration-file.html
33

4-
module.exports = function (config) {
5-
config.set({
6-
basePath: '',
7-
frameworks: ['jasmine', '@angular/cli'],
8-
plugins: [
9-
require('karma-jasmine'),
10-
require('karma-chrome-launcher'),
11-
require('karma-jasmine-html-reporter'),
12-
require('karma-coverage-istanbul-reporter'),
13-
require('@angular/cli/plugins/karma')
14-
],
15-
client:{
16-
clearContext: false // leave Jasmine Spec Runner output visible in browser
17-
},
18-
files: [
19-
{ pattern: './src/test.ts', watched: false }
20-
],
21-
preprocessors: {
22-
'./src/test.ts': ['@angular/cli']
23-
},
24-
mime: {
25-
'text/x-typescript': ['ts','tsx']
26-
},
27-
coverageIstanbulReporter: {
28-
reports: [ 'html', 'lcovonly' ],
29-
fixWebpackSourcePaths: true
30-
},
31-
angularCli: {
32-
environment: 'dev'
33-
},
34-
reporters: config.angularCli && config.angularCli.codeCoverage
35-
? ['progress', 'coverage-istanbul']
36-
: ['progress', 'kjhtml'],
37-
port: 9876,
38-
colors: true,
39-
logLevel: config.LOG_INFO,
40-
autoWatch: true,
41-
browsers: ['Chrome'],
42-
singleRun: false
43-
});
4+
module.exports = function(config) {
5+
config.set({
6+
basePath: '',
7+
frameworks: ['jasmine', '@angular/cli'],
8+
plugins: [
9+
require('karma-jasmine'),
10+
require('karma-chrome-launcher'),
11+
require('karma-jasmine-html-reporter'),
12+
require('karma-coverage-istanbul-reporter'),
13+
require('@angular/cli/plugins/karma')
14+
],
15+
client: {
16+
clearContext: false // leave Jasmine Spec Runner output visible in browser
17+
},
18+
files: [{ pattern: './src/test.ts', watched: false }],
19+
preprocessors: {
20+
'./src/test.ts': ['@angular/cli']
21+
},
22+
mime: {
23+
'text/x-typescript': ['ts', 'tsx']
24+
},
25+
coverageIstanbulReporter: {
26+
reports: ['html', 'lcovonly'],
27+
fixWebpackSourcePaths: true
28+
},
29+
angularCli: {
30+
environment: 'dev'
31+
},
32+
reporters:
33+
config.angularCli && config.angularCli.codeCoverage
34+
? ['progress', 'coverage-istanbul']
35+
: ['progress', 'kjhtml'],
36+
port: 9876,
37+
colors: true,
38+
logLevel: config.LOG_INFO,
39+
autoWatch: true,
40+
browsers: ['Chrome'],
41+
singleRun: false
42+
});
4443
};

0 commit comments

Comments
 (0)