Skip to content
This repository was archived by the owner on Sep 10, 2021. It is now read-only.

Commit

Permalink
Merge pull request #34 from qri-io/lint
Browse files Browse the repository at this point in the history
Linted codebase to meet StandardJS formatting
  • Loading branch information
ramfox authored Sep 19, 2017
2 parents 8bb127e + 394dc72 commit 0d18dda
Show file tree
Hide file tree
Showing 179 changed files with 24,956 additions and 18,007 deletions.
11 changes: 11 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/server.js
/src/routes.js
/css
/dist
/scripts
/src/scss/*
/src/js/ace
/src/js/__mocks__
/src/js/utils/__mocks__
/src/js/components/__tests__
/src/js/selectors/__tests__
16 changes: 16 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"env": {
"browser": true,
"node": true
},
"parser": "babel-eslint",
"plugins": [
"react"
],
"extends":"standard",
"rules": {
"react/jsx-uses-react": 2,
"react/jsx-uses-vars": 2,
"react/react-in-jsx-scope": 2
}
}
22 changes: 11 additions & 11 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
'use strict';
var gulp = require('gulp');
var sass = require('gulp-sass');
'use strict'

var gulp = require('gulp')
var sass = require('gulp-sass')

gulp.task('static', function () {
return gulp.src('./src/scss/static.scss')
.pipe(sass({ outputStyle : 'compressed' }).on('error', sass.logError))
.pipe(gulp.dest('./css'));
});
.pipe(sass({ outputStyle: 'compressed' }).on('error', sass.logError))
.pipe(gulp.dest('./css'))
})

gulp.task('sass:watch', function () {
gulp.watch('./sass/**/*.scss', ['sass']);
});
gulp.watch('./sass/**/*.scss', ['sass'])
})
Loading

0 comments on commit 0d18dda

Please sign in to comment.