Skip to content
This repository has been archived by the owner on Jun 1, 2022. It is now read-only.

Commit

Permalink
chore(tslint): update lint rules
Browse files Browse the repository at this point in the history
* chore(tslint): update lint rules

Before no lint rules were being enforced.  Fixes #646.

* chore(tslint): clean up lint errors

Adjusted rules to not force trailing commas and not force sorting
objects by the name property, which in our case is not ideal since the
route is more important.

* chore(tslint): fix broken tslint configuration

- tslint v6.0.0 requires a different lint configuration (was currently
broken).  Fixed by moving options out of reporter for both skeletons.
- Updated typescript-aspnetcore to clean linting errors
- Added tslint.json to typescript-aspnetcore
  • Loading branch information
plwalters authored and EisenbergEffect committed Sep 29, 2016
1 parent e909bc3 commit cf84661
Show file tree
Hide file tree
Showing 16 changed files with 350 additions and 339 deletions.
10 changes: 5 additions & 5 deletions skeleton-typescript-aspnetcore/src/skeleton/build/tasks/lint.js
@@ -1,11 +1,11 @@
var gulp = require('gulp');
var paths = require('../paths');
var tslint = require('gulp-tslint');

gulp.task('lint', function() {
return gulp.src(paths.source)
.pipe(tslint())
.pipe(tslint.report('prose', {
.pipe(tslint({
emitError: false
}));
});
}))
.pipe(tslint.report());
});
8 changes: 4 additions & 4 deletions skeleton-typescript-aspnetcore/src/skeleton/src/app.ts
@@ -1,9 +1,9 @@
import {Router, RouterConfiguration} from 'aurelia-router'
import {Router, RouterConfiguration} from 'aurelia-router';

export class App {
router: Router;
configureRouter(config: RouterConfiguration, router: Router) {
public router: Router;

public configureRouter(config: RouterConfiguration, router: Router) {
config.title = 'Aurelia';
config.map([
{ route: ['', 'welcome'], name: 'welcome', moduleId: 'welcome', nav: true, title: 'Welcome' },
Expand Down

0 comments on commit cf84661

Please sign in to comment.