Fail buids on linting errors

Silently failing only the first command with error code 0 through a single ampersand
is hardly intuitive. Our general line is that either you have linting and
enforce it (via build failures), or you might as well not bother since
it'll deteriorate quickly.
This commit is contained in:
Ingo Schommer 2017-01-09 23:46:28 +13:00
parent 3b4b35115a
commit c2bc0df92a
4 changed files with 2 additions and 10 deletions

View File

@ -27,7 +27,7 @@ function appBoot() {
shouldBatch: true,
addTypename: true,
dataIdFromObject: (o) => {
if(o.id >= 0 && o.__typename) {
if (o.id >= 0 && o.__typename) {
return `${o.__typename}:${o.id}`;
}
return null;

View File

@ -34,12 +34,6 @@ describe('FormBuilder', () => {
};
describe('mergeFieldData()', () => {
let formBuilder = null;
beforeEach(() => {
formBuilder = new FormBuilder(baseProps);
});
it('should deep merge properties on the originalobject', () => {
const fieldStructure = {
component: 'TextField',

View File

@ -10,7 +10,6 @@ import { decodeQuery } from '../DataFormat';
describe('DataFormat', () => {
describe('decodeQuery', () => {
it('should decode flat keys', () => {
expect(decodeQuery('?foo=1')).toEqual({ foo: '1' });
@ -19,5 +18,4 @@ describe('DataFormat', () => {
expect(decodeQuery('?foo[bar]=1')).toEqual({ foo: { bar: '1' } });
});
});
});

View File

@ -16,7 +16,7 @@
"lock": "npm-shrinkwrap --dev",
"test": "NODE_PATH=\"./client/src:./admin/client/src\" jest",
"coverage": "NODE_PATH=\"./client/src:./admin/client/src\" jest --coverage",
"lint": "eslint client/src & eslint admin/client/src & sass-lint -v"
"lint": "eslint client/src && eslint admin/client/src && sass-lint -v"
},
"repository": {
"type": "git",