mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
parent
3b4b35115a
commit
c2bc0df92a
@ -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;
|
||||
|
@ -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',
|
||||
|
@ -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' } });
|
||||
});
|
||||
});
|
||||
|
||||
});
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user