mirror of
https://github.com/Llewellynvdm/nativefier.git
synced 2025-01-22 22:58:33 +00:00
Use original eslint module for linting instead of gulp
- Workaround for google/eslint-config-google#10
This commit is contained in:
parent
2c4aa548b3
commit
6fccbbfaa5
6
.eslintignore
Normal file
6
.eslintignore
Normal file
@ -0,0 +1,6 @@
|
||||
node_modules/**
|
||||
app/node_modules/**
|
||||
app/lib/**
|
||||
lib/**
|
||||
built-tests/**
|
||||
coverage/**
|
@ -1,6 +0,0 @@
|
||||
import gulp from 'gulp';
|
||||
import runSequence from 'run-sequence';
|
||||
|
||||
gulp.task('ci', callback => {
|
||||
return runSequence('test', 'lint', callback);
|
||||
});
|
@ -1,9 +0,0 @@
|
||||
import gulp from 'gulp';
|
||||
import eslint from 'gulp-eslint';
|
||||
|
||||
gulp.task('lint', () => {
|
||||
return gulp.src(['**/*.js', '!node_modules/**', '!app/node_modules/**', '!app/lib/**', '!lib/**', '!built-tests/**', '!coverage/**'])
|
||||
.pipe(eslint())
|
||||
.pipe(eslint.format())
|
||||
.pipe(eslint.failAfterError());
|
||||
});
|
@ -13,8 +13,8 @@
|
||||
"scripts": {
|
||||
"dev-up": "npm install && (cd app && npm install) && npm run build",
|
||||
"test": "gulp test",
|
||||
"lint": "gulp lint",
|
||||
"ci": "gulp ci",
|
||||
"lint": "eslint .",
|
||||
"ci": "gulp test && npm run lint",
|
||||
"clean": "gulp clean",
|
||||
"build": "gulp build",
|
||||
"watch": "while true ; do gulp watch ; done",
|
||||
@ -69,10 +69,10 @@
|
||||
"babel-register": "^6.6.0",
|
||||
"chai": "^3.4.1",
|
||||
"del": "^2.2.0",
|
||||
"eslint": "^2.10.2",
|
||||
"eslint-config-google": "^0.5.0",
|
||||
"gulp": "^3.9.0",
|
||||
"gulp-babel": "^6.1.1",
|
||||
"gulp-eslint": "^2.0.0",
|
||||
"gulp-istanbul": "^0.10.3",
|
||||
"gulp-mocha": "^2.2.0",
|
||||
"gulp-sourcemaps": "^1.6.0",
|
||||
|
Loading…
x
Reference in New Issue
Block a user