Skip to content

Commit ed65edc

Browse files
fix(build): update linting, testing and tools
1 parent b07c481 commit ed65edc

File tree

6 files changed

+30
-32986
lines changed

6 files changed

+30
-32986
lines changed

.eslintrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "./node_modules/aurelia-tools/.eslintrc"
3+
}

.jshintrc

Lines changed: 0 additions & 3 deletions
This file was deleted.

build/tasks/lint.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
var gulp = require('gulp');
22
var paths = require('../paths');
3-
var jshint = require('gulp-jshint');
4-
var stylish = require('jshint-stylish');
3+
var eslint = require('gulp-eslint');
54

65
gulp.task('lint', function() {
76
return gulp.src(paths.source)
8-
.pipe(jshint())
9-
.pipe(jshint.reporter(stylish));
7+
.pipe(eslint())
8+
.pipe(eslint.format())
9+
.pipe(eslint.failOnError());
1010
});

config.js

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,19 @@
11
System.config({
2-
"transpiler": "babel",
3-
"babelOptions": {
2+
defaultJSExtensions: true,
3+
transpiler: "babel",
4+
babelOptions: {
45
"optional": [
56
"runtime",
67
"es7.decorators"
78
]
89
},
9-
"paths": {
10-
"*": "*.js",
11-
"github:*": "jspm_packages/github/*.js",
12-
"aurelia-framework/*": "dist/*.js",
13-
"npm:*": "jspm_packages/npm/*.js"
14-
}
15-
});
10+
paths: {
11+
"github:*": "jspm_packages/github/*",
12+
"aurelia-framework/*": "dist/*",
13+
"npm:*": "jspm_packages/npm/*"
14+
},
1615

17-
System.config({
18-
"map": {
16+
map: {
1917
"aurelia-binding": "github:aurelia/[email protected]",
2018
"aurelia-dependency-injection": "github:aurelia/[email protected]",
2119
"aurelia-loader": "github:aurelia/[email protected]",
@@ -26,7 +24,7 @@ System.config({
2624
"aurelia-templating": "github:aurelia/[email protected]",
2725
"babel": "npm:[email protected]",
2826
"babel-runtime": "npm:[email protected]",
29-
"core-js": "npm:core-js@0.9.18",
27+
"core-js": "npm:core-js@1.1.3",
3028
"github:aurelia/[email protected]": {
3129
"aurelia-dependency-injection": "github:aurelia/[email protected]",
3230
"aurelia-metadata": "github:aurelia/[email protected]",
@@ -66,7 +64,11 @@ System.config({
6664
"fs": "github:jspm/[email protected]",
6765
"process": "github:jspm/[email protected]",
6866
"systemjs-json": "github:systemjs/[email protected]"
67+
},
68+
69+
"fs": "github:jspm/[email protected]",
70+
"process": "github:jspm/[email protected]",
71+
"systemjs-json": "github:systemjs/[email protected]"
6972
}
7073
}
7174
});
72-

0 commit comments

Comments
 (0)