mirror of
https://github.com/Llewellynvdm/nativefier.git
synced 2025-02-02 11:48:25 +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": {
|
"scripts": {
|
||||||
"dev-up": "npm install && (cd app && npm install) && npm run build",
|
"dev-up": "npm install && (cd app && npm install) && npm run build",
|
||||||
"test": "gulp test",
|
"test": "gulp test",
|
||||||
"lint": "gulp lint",
|
"lint": "eslint .",
|
||||||
"ci": "gulp ci",
|
"ci": "gulp test && npm run lint",
|
||||||
"clean": "gulp clean",
|
"clean": "gulp clean",
|
||||||
"build": "gulp build",
|
"build": "gulp build",
|
||||||
"watch": "while true ; do gulp watch ; done",
|
"watch": "while true ; do gulp watch ; done",
|
||||||
@ -69,10 +69,10 @@
|
|||||||
"babel-register": "^6.6.0",
|
"babel-register": "^6.6.0",
|
||||||
"chai": "^3.4.1",
|
"chai": "^3.4.1",
|
||||||
"del": "^2.2.0",
|
"del": "^2.2.0",
|
||||||
|
"eslint": "^2.10.2",
|
||||||
"eslint-config-google": "^0.5.0",
|
"eslint-config-google": "^0.5.0",
|
||||||
"gulp": "^3.9.0",
|
"gulp": "^3.9.0",
|
||||||
"gulp-babel": "^6.1.1",
|
"gulp-babel": "^6.1.1",
|
||||||
"gulp-eslint": "^2.0.0",
|
|
||||||
"gulp-istanbul": "^0.10.3",
|
"gulp-istanbul": "^0.10.3",
|
||||||
"gulp-mocha": "^2.2.0",
|
"gulp-mocha": "^2.2.0",
|
||||||
"gulp-sourcemaps": "^1.6.0",
|
"gulp-sourcemaps": "^1.6.0",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user